sqls
sqls copied to clipboard
DATABASE_URL env variable as source of database connection info
Is your feature request related to a problem? Please describe.
The DATABASE_URL
environment variable is standard in many environments for specifying how to connect to the database. It would be nice if sqls
could use, reducing the need for manual configuration.
Describe the solution you'd like Check for the environment variable, if it's there use it to connect to the database.
Describe alternatives you've considered Manual configuration.
Additional context I don't know how standardized the format is. Possibly you'd need to do more work to support multiple variations.
How would you setup multiple connection through environment vars?
How would you setup multiple connection through environment vars?
direnv: https://direnv.net/
I guess cizordj is talking about how to specify multiple connection string in one environment variable.
I guess cizordj is talking about how to specify multiple connection string in one environment variable.
This