Skip to content
Discussion options

You must be logged in to vote

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_tests crate 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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kairoswater-jason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants