sqlx
sqlx copied to clipboard
sqlx_cli can not read database_url from .env in win10
why? and when you migrate with error,you have to fix _sqlx_migrations mannuly.this is boring.
Please include the error you get from sqlx-cli.
error: The following required arguments were not provided: --database-url <DATABASE_URL>
USAGE: sqlx database create --database-url <DATABASE_URL>
For more information try --help
- Have you checked your in the right directory for the
.envto be detected bysqlx-cli? - If so, is
DATABASE_URL=..in your.envfile correctly?
- Have you checked your in the right directory for the
.envto be detected bysqlx-cli?- If so, is
DATABASE_URL=..in your.envfile correctly?
my project directory: |---.env |---src I had add DATABASE_URL= in my .env file,and this directory is working in ubuntu not windows