Commit graph

28 commits

Author SHA1 Message Date
Kramer Hampton
916f1fccf2 feat: adds the reset command to the sqlx-cli
The reset command is the equivalent of `sqlx db drop`, `sqlx db create`,
and `sqlx migrate run`. Unless the `-y` parameter is specified, it will
prompt confirmation before dropping the database.
2020-09-10 21:32:04 -07:00
LMJW
48a55a407b fix(issue #558)
- check the existance of `Cargo.toml` at current working directory
  before checking 'DATABASE_URL' environment variable
2020-08-19 18:00:40 -07:00
Stuart Hinson
2ec5ff06b0 Add --database-url to command line 2020-08-17 20:06:26 -07:00
Matt Paul
9ed6428c8e Fix incorrect bash command 2020-08-10 18:22:10 -07:00
aspen
94413bd830 sqlx-cli: Exit with code 1 on error. 2020-07-29 12:04:12 -07:00
Max Countryman
904ba018da ensure installation instructions account for prerelease 2020-07-29 07:09:48 -07:00
Ryan Leckey
22f1f93b79 chore: prepare sqlx v0.4.0-beta.1 and sqlx-cli v0.1.0-beta.1 2020-07-27 01:43:02 -07:00
Ryan Leckey
f298eb3cf1 Merge remote-tracking branch 'raftario/embedded-migrations' 2020-07-26 18:03:59 -07:00
Jonas Platte
adfa2d2161 sqlx-cli: Upgrade console dependency 2020-07-24 07:54:06 -07:00
Jonas Platte
979ddeb222 cargo-sqlx-cli: Fix exiting with 0 on failure 2020-07-24 07:54:06 -07:00
Raphaël Thériault
92646e00b8 Fix migrate! and add migration test 2020-07-23 17:46:27 -04:00
Raphaël Thériault
e5e9665bd9 Add migrate! macro for embedded migrations 2020-07-23 14:22:50 -04:00
Jonas Platte
d79335d955 Add an openssl-vendored feature to sqlx-cli
… to allow building for musl targets
2020-07-21 08:01:55 -07:00
Jonas Platte
4c394de70b Add SQLX_OFFLINE env variable to force metadata usage 2020-07-17 01:12:07 -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
37e59f1494
doc(readme): note requirement of offline feature
for `cargo sqlx prepare`
2020-06-17 12:50:56 -07:00
Austin Bonander
1a83f1bdc1
fix(format): fix formatting in sqlx-cli/README.md 2020-06-17 12:46:57 -07:00
Ryan Leckey
51ae9f00e7
chore: bump version to 0.4.0-pre 2020-05-30 23:15:52 -07:00
Ryan Leckey
990466ec02
fix(cli): fix core usage in sqlx-cli 2020-05-30 23:12:53 -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
07639a61ac sqlx-cli/README.md: document that <command> --help exists 2020-05-30 16:02:37 -07:00
Austin Bonander
9729385257 sqlx_cli::db::run_drop: actually print the database name in confirm 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
41dd286356 set sqlx-cli license to MIT/Apache 2.0 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