Managing Multiple Databases in a Project #2241
Unanswered
kennetpostigo
asked this question in
Q&A
Replies: 1 comment
-
Hey @kennetpostigo - did you make any headway with this design? I think I'm in a similar scenario, except with different adapters and I'm looking for leads on good workarounds or advice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with multiple postgres databases in one project both of which use sqlx. I have a few questions about managing configuration, macros, offline support when working with multiple databases with sqlx in a project.
Configuration:
I have the multiple database url variables inside of my .env file as app_database_url , chat_database_url, etc. I'm not sure how to specify the variable to sqlx-cli that should be used when commands are run, is there a way to specify the env_var sqlx-cli should use?
Is there a config that sqlx-cli reads from for it to understand what to use for each database as far as environment variables, migrations folders, and offline?
Macros
query!
andquery_as!
:failed to find data for query
Offline
Beta Was this translation helpful? Give feedback.
All reactions