Skip to content

add support to .env files #4184

@gabriel123495

Description

@gabriel123495

I have found these related issues/pull requests

sqlx only supports using the enviorment variables to setup a server but if i wanted to test it i would need to add it to my enviorment variables just to do a sample code so my idea is to add .env files support

Description

i was testing sqlx and i wanted to use the dotenvy crate to test .env files in rust, i got an error i googled it and i seen that i needed to use dotenvy cli and my disk almost on 100% so i needed to install it, and when i use cargo install it didn't compiles

Prefered solution

i want to pass one argument that says to sqlx cli that i am using a .env on the root of my project file and it aumaticaly setup the migrations

Is this a breaking change? Why or why not?

no, because is just a .env support

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions