Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read from $DATABASE_URL automatically #113

Open
musjj opened this issue Sep 29, 2024 · 0 comments
Open

Read from $DATABASE_URL automatically #113

musjj opened this issue Sep 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@musjj
Copy link

musjj commented Sep 29, 2024

description

The DATABASE_URL environment variable is a popular convention for storing database urls. So it'd be nice if rainfrog can automatically pick it up. Even better if it can automatically read it from the project's .env file.

For example, sqlx-cli provides a similar behavior:

This can be done either with the --database-url command line option or by setting DATABASE_URL, either in the environment or in a .env file in the current working directory.

proposed solution

Read from DATABASE_URL env variable automatically.

@musjj musjj added the enhancement New feature or request label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant