mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
doc(readme): note requirement of offline
feature
for `cargo sqlx prepare`
This commit is contained in:
parent
1a83f1bdc1
commit
37e59f1494
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ cargo sqlx prepare
|
||||||
Saves query data to `sqlx-data.json` in the current directory; check this file into version control
|
Saves query data to `sqlx-data.json` in the current directory; check this file into version control
|
||||||
and an active database connection will no longer be needed to build your project.
|
and an active database connection will no longer be needed to build your project.
|
||||||
|
|
||||||
|
Has no effect unless the `offline` feature of `sqlx` is enabled in your project. Omitting that feature is the most likely cause if you get a `sqlx-data.json` file that looks like this:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"database": "PostgreSQL"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
----
|
----
|
||||||
```bash
|
```bash
|
||||||
cargo sqlx prepare --check
|
cargo sqlx prepare --check
|
||||||
|
|
Loading…
Reference in a new issue