Fix project not compiling without dev.db
After this fix, rust-analyzer used via vscode still requires a dev.db file, but this can easily be generated via ./meta/update_sqlx_data.
This commit is contained in:
parent
ed404f302e
commit
ca463b023e
2 changed files with 4 additions and 0 deletions
1
.env
1
.env
|
|
@ -1 +1,2 @@
|
||||||
DATABASE_URL=sqlite:target/dev.db
|
DATABASE_URL=sqlite:target/dev.db
|
||||||
|
SQLX_OFFLINE=true
|
||||||
|
|
|
||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -4,5 +4,8 @@
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"**/templates/**/*.html": "jinja-html",
|
"**/templates/**/*.html": "jinja-html",
|
||||||
},
|
},
|
||||||
|
"rust-analyzer.check.extraEnv": {
|
||||||
|
"SQLX_OFFLINE": "false",
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue