Skip to content

Multiple DB support #3030

Answered by weiznich
crusty-dave asked this question in Q&A
Jan 26, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

but diesel.toml seems to be restricted to a single DB in a project

That's literally the only place where there is an assumption about a single database connection and that's the only place where it's reasonable to assume such thing.

Generally speaking: If you use diesel-cli for managing stuff, you just want to use the command line options to set different connections/migration dirs. If you use diesel, it's even easier as different connections can point to different databases. How you actually setup and manage them, that's part of your implementation.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@crusty-dave
Comment options

@crusty-dave
Comment options

Answer selected by crusty-dave
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