mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
add 1 as true for SQLX_OFFLINE env variable
This commit is contained in:
parent
4973ae5a58
commit
9f99a8f3d2
@ -37,7 +37,7 @@ pub fn expand_input(input: QueryMacroInput) -> crate::Result<TokenStream> {
|
||||
// if `dotenv` wasn't initialized by the above we make sure to do it here
|
||||
match (
|
||||
dotenv::var("SQLX_OFFLINE")
|
||||
.map(|s| s.to_lowercase() == "true")
|
||||
.map(|s| s.eq_ignore_ascii_case("true") || s == "1")
|
||||
.unwrap_or(false),
|
||||
dotenv::var("DATABASE_URL"),
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user