Closed srapport closed 6 months ago
We have multiple databases in the same project that have different connection strings. Is there a way to specify the .env variable to use in the kysely-codegen command line?
.env
kysely-codegen
For example:
kysely-codegen --env-var CORE_PRODUCT_DB_URL ... kysely-codegen --env-var LICENSING_DB_URL ...
kysely-codegen --env-var CORE_PRODUCT_DB_URL ...
kysely-codegen --env-var LICENSING_DB_URL ...
Hey!
You can use kysely-codegen --url=env(CORE_PRODUCT_DB_URL). 😊
kysely-codegen --url=env(CORE_PRODUCT_DB_URL)
If you need to specify the environment file, you can use --env-file as well.
--env-file
Hope that helps!
We have multiple databases in the same project that have different connection strings. Is there a way to specify the
.env
variable to use in thekysely-codegen
command line?For example:
kysely-codegen --env-var CORE_PRODUCT_DB_URL ...
kysely-codegen --env-var LICENSING_DB_URL ...
Upvote & Fund