Jonas Platte
8d0a1e9146
Remove cargo_metadata dependency
...
It was not pulling its weight.
Just look at that Cargo.lock diff!
2021-01-20 21:50:45 -08:00
Jonas Platte
e6af514df6
[offline] Don't read sqlx-data.json into a String before parsing
2021-01-20 21:50:44 -08:00
Jonas Platte
1e71237c04
[offline] Use buffering for JSON file reading / writing
2021-01-20 21:50:44 -08:00
Joe Grund
3e1da43434
Support workspaces for offline feature
...
This patch enables having a top-level `sqlx-data.json` file within a
workspace.
It does this by using a full clean / check instead of `cargo rustc`
which fails on a workspace.
A `--merged` flag is introduced to switch to the workspace behavior
Fixes #353 .
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
2020-12-19 05:17:07 +00:00
Ivan Tham
6a5c54be70
Add context of where to put the offline feature
2020-11-03 22:50:37 -08:00
Jonas Platte
139704f264
Pass SQLX_OFFLINE=false to rustc in prepare
...
Without this, `cargo sqlx prepare` is just an expensive no-op and
`cargo sqlx prepare --check` checks `sqlx-data.json` against itself.
2020-10-29 22:21:27 -07:00
Jonas Platte
f45f9ae8ed
Fix a typo
2020-10-29 22:21:27 -07:00
Jonas Platte
e3a71f095c
Delete target/sqlx before invoking cargo in cargo sqlx prepare
2020-10-13 09:51:10 -07:00
Ryan Leckey
8de2419b14
style: rustfmt
2020-07-14 05:05:50 -07:00
Ryan Leckey
c0dd364e58
Add a warning if there were no queries found
2020-07-14 05:05:11 -07:00
Ryan Leckey
61e4a4f566
feat: finish v1 of both cli and embedded migrations
2020-07-12 03:43:55 -07:00
Austin Bonander
1bdc3e9057
cargo sqlx prepare: fix to consistently trigger recompile
2020-05-30 16:02:37 -07:00
Austin Bonander
119167e13a
cargo sqlx prepare: delete query-*.json files as they're read
2020-05-30 16:02:37 -07:00
Austin Bonander
35fd6f64cc
allow cargo sqlx prepare to pass trailing args to Cargo
...
remove unused import
2020-05-30 16:02:37 -07:00
Austin Bonander
7dae3dbf57
rename cargo-sqlx -> sqlx-cli
...
edit README
2020-05-30 16:02:37 -07:00