Temporary Tables? #4885
-
BackendPostgreSQL Diesel version2.3.0 What do you want to do?Does the diesel dsl/etc. have any support for generating or interacting with temporary tables? It would be nice to use little to no raw SQL. I'd be happy to put a 'bogus' table entry in To be honest I haven't experimented with this at all, so for all I know it might be no different the working with a regular table. (the intent being to do something like a Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The DSL provided by diesel just works with a temporary table if you manually write the corresponding Creating and deleting such tables is not supported by the built-in DSL, but you can extend it to support that as well. The internal |
Beta Was this translation helpful? Give feedback.
The DSL provided by diesel just works with a temporary table if you manually write the corresponding
diesel::table! {}call somewhere.Creating and deleting such tables is not supported by the built-in DSL, but you can extend it to support that as well. The internal
diesel_testscrate contains a basic DSL for this that can be used as starting point: https://github.com/diesel-rs/diesel/blob/main/diesel_tests/tests/schema_dsl/structures.rs