Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport multiple schemas in diesel.toml #1728
Comments
sgrif
added
the
accepted
label
May 23, 2018
This comment has been minimized.
|
I'm not sure that multiple |
This comment has been minimized.
|
That sounds better to me because, looking again, |
This comment has been minimized.
|
I don't think we need |
This comment has been minimized.
trsh
commented
May 24, 2018
|
I like to keep my structure like /models/table1/model.rs, schema.rs, /models/table2/model.rs,schema.rs. So yes I would also appreciate some scenario, where I can split Large single schema.rs in to multiple ones. |
This comment has been minimized.
tcmal
commented
Jun 16, 2018
|
Something like |
compressed commentedMay 23, 2018
Versions
What are you trying to accomplish?
In 1.3, the
diesel.tomlfile has been introduced. In the current form, you can only read tables from one schema. I'd like a way to specify multiple schemas that can all be generated into a singleschema.rsfile.Perhaps you could have multiple
[print-schema]sections, each one belonging to a different schema, since you may want to apply different filtering depending on the schema. I think all the existing options are good to have available for each schema you want to load from, except probablypatch_filesince it applies to the whole file.