Adriano Di Luzio
6bec8574d4
Remove unused remove_dir_all crate ( #2757 )
2023-09-25 18:01:56 -07:00
Ameer Ghani
84f21e99ef
cli: add --target-version CLI flags for migrate run/revert ( #2538 )
...
* cli: add --target-version CLI flags for migrate run/revert
* cli: fix broken test
* cli: test harness for `sqlx migrate` along with --target-version tests
* cli: Fail if version supplied to run/revert is too old/new
After some discussion with my coworkers, we thought about the behavior a bit more:
The behavior is now that for a run, if the provided version is too old, the CLI
will return with failure rather than being a no-op. This gives feedback to the
operator instead of being quiet.
It is still valid to up/downgrade to the latest version, this will still be a no-op
to allow for idempotency.
2023-07-31 12:49:53 -07:00
Jon Heinritz
8b223e24d3
Update clap to v4.3.10 ( #2576 )
2023-07-09 13:13:43 -07:00
Jon Heinritz
1b7631eddc
Add CLI autocompletion using clap_complete ( #2559 )
2023-06-30 14:59:35 -07:00
Paolo Barbolini
14d70feab1
Enable runtime-tokio of sqlx when building sqlx-cli
2023-03-24 00:28:16 -07:00
Craig Bester
006da611e1
fix: uncomment sqlx-cli database, default features
2023-02-22 15:09:41 -08:00
Austin Bonander
eade49cfb0
0.7.0-alpha.1 release
2023-02-21 14:56:54 -08:00
Austin Bonander
b5312c3b6f
Break drivers out into separate crates, clean up some technical debt ( #2039 )
...
* WIP rt refactors
* refactor: break drivers out into separate crates
also cleans up significant technical debt
2023-02-21 13:25:25 -08:00
Austin Bonander
b6cddcd014
prepare 0.6.2 release ( #2092 )
2022-09-14 15:23:06 -07:00
Travis Whitehead
09717e1b83
fix: Remove default chrono dep on time for sqlx-cli ( #2089 )
...
chrono v0.4.19 includes time 0.1 via default feature flag oldtime.
time 0.1 is deprecated and flagged for: https://rustsec.org/advisories/RUSTSEC-2020-0071
2022-09-12 18:08:39 -07:00
Austin Bonander
cb52c7c62b
chore: prep 0.6.1 release
2022-08-02 19:16:32 -07:00
Austin Bonander
a2eceec33b
chore: replace dotenv with dotenvy ( #2003 )
...
* chore: replace `dotenv` with `dotenvy`
The former appears to be unmaintained and the latter is a drop-in replacement.
* chore: fix all warnings
2022-07-28 14:33:44 -07:00
LovecraftianHorror
2c67e2a29e
Try avoiding a full clean in cargo sqlx prepare --merged ( #1802 )
...
* refactor(sqlx-cli): Try avoiding a full clean with `--merged`
* docs(sqlx-cli): Sprinkle some comments on the metadata changes
* refactor(sqlx-cli): Make the new recompiltion setup unit-testable
* fix(sqlx-cli): Only pass in `$RUSTFLAGS` when set when using `--merged`
* refactor(sqlx-cli): `cargo clean -p` works by name so rip out pkgid code
* chore(sqlx-cli): Remove unused imports
2022-07-12 14:29:41 -07:00
Austin Bonander
17cebde64a
preparing 0.6.0 release ( #1911 )
...
* preparing 0.6.0 release
* run `cargo update` (not `upgrade`)
2022-06-16 15:53:09 -07:00
Austin Bonander
1f91724927
feat(cli): add --connect-timeout ( #1889 )
2022-06-08 15:48:04 -07:00
Paolo Barbolini
b934f82440
Bump remanining dependencies ( #1807 )
...
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2022-04-15 14:34:48 -07:00
Paolo Barbolini
fc9c9be5e8
Update to edition 2021 ( #1808 )
...
* Update to edition 2021
* Fix running tests
2022-04-15 12:52:00 -07:00
Austin Bonander
2e026cae67
prepare 0.5.12 release ( #1800 )
...
* prepare release 0.5.12
* chore: remove mentions of things happening in 0.6
except one mention that should still be happening in 0.6
2022-04-14 14:21:15 -07:00
Austin Bonander
eaf41fd092
prepare 0.5.11 release ( #1715 )
2022-02-18 13:49:06 -08:00
Marcin Puc
313cc69988
Simplify cargo-sqlx cmdline definition ( #1626 )
...
* Simplify cargo-sqlx cmdline definition
* Add note about the parser definition for cargo-sqlx
* Fix formatting
2022-02-15 20:13:42 -08:00
Austin Bonander
fdbfc5dfc3
Prepare 0.5.10 release ( #1603 )
...
* fix(cli): change new `rustls` and `native-tls` features to use correct runtime feature
* chore: upgrade SQLx crates to 0.5.10, upgrade all dependencies to latest versions
chore(cli): upgraded `clap` to `3.0.0-rc.9`
* fix(tests/sqlite): ignore `issue_1467()` as spuriously failing
I'm well aware of the principle that a spuriously failing test is a failing test, but even though I have it outputting the seed used with a reproducible PRNG, I can't reproduce the failures locally, so 🤷 .
* chore: add CHANGELOG entry for 0.5.10
2021-12-29 17:25:49 -08:00
SonicZentropy
aa40f5fe5d
[CLI] Adds feature enabling Rustls usage rather than OpenSSL ( #1584 )
...
* Adds feature enabling Rustls usage rather than OpenSSL
* Update sqlx-cli/Cargo.toml
Removes extraneous openssl feature that slipped through
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2021-12-29 15:49:49 -08:00
Austin Bonander
9abe9b3ac5
prepare 0.5.9 hotfix release ( #1469 )
2021-10-01 15:52:52 -07:00
Austin Bonander
1b5dd6514b
preparing 0.5.8 release ( #1466 )
...
* preparing 0.5.8 release
* fix warnings before release
2021-10-01 14:45:25 -07:00
David James
ad81e35f28
Use promptly instead of dialoguer ( #1410 )
...
See #1409
Co-authored-by: David James <davidcjames@gmail.com>
2021-08-30 14:10:53 -07:00
Austin Bonander
3749e0ea37
chore: prepare 0.5.7 (hotfix) release ( #1394 )
2021-08-20 17:14:42 -07:00
Austin Bonander
207e6db2ce
chore: bump versions of sqlx-* in dependencies
2021-08-17 12:49:02 -07:00
Austin Bonander
6bb1c716bd
preparing 0.5.6 release ( #1382 )
...
* fix(pool): reenable connection reaper
* fix warnings
* chore: bump published crates to 0.5.6
* chore: update CHANGELOG.md for 0.5.6
2021-08-17 12:44:24 -07:00
Austin Bonander
38435ca647
fix(cli): pin clap_derive version ( #1381 )
...
When `clap_derive 3.0.0-beta.4` released, new invocations of `cargo install sqlx-cli` would try to compile that against `clap 3.0.0-beta.2` which caused some breakages.
Until `clap 3.0.0` proper is released, we need to pin both versions to insure against potential breakages from automatic upgrades.
closes #1378
2021-08-16 16:51:31 -07:00
Ryan Leckey
694a2ac478
release: v0.5.5
2021-05-24 09:34:34 -07:00
Ryan Leckey
5d9c292132
release: v0.5.4
2021-05-22 16:38:54 -07:00
Ryan Leckey
13f7c7124a
release: v0.5.3
2021-05-21 17:27:15 -07:00
Ryan Leckey
f7775f7fde
release: 0.5.2
2021-04-15 18:40:46 -07:00
Ryan Leckey
633a662752
chore: update dependencies
2021-04-09 00:31:07 -07:00
Vyacheslav Gudkov
674d89bbab
Removed unnecessarey preserve_order feature for serde_json. More reliable serialization-desetislization of sqlx-data.json. Added unit tests for sqlx-data.json serialization-deserialization
...
Signed-off-by: Vyacheslav Gudkov <vyacheslav.gudkov@dsr-corporation.com>
2021-04-09 00:10:32 -07:00
Ryan Leckey
cbe820760f
release: 0.5.1
2021-02-04 09:16:11 -08:00
Ryan Leckey
94d0baeb52
release: 0.5
2021-02-04 06:32:50 -08:00
Jonas Platte
cdafc8ae17
Upgrade async runtime dependencies
...
Co-authored-by: Josh Toft <joshtoft@gmail.com>
Co-authored-by: Philip A Reimer <antreimer@gmail.com>
2021-01-20 21:49:46 -08:00
Jonas Platte
0758ffd10e
Remove cargo_metadata dependency
...
It was not pulling its weight.
Just look at that Cargo.lock diff!
2021-01-13 23:05:56 -08:00
Ryan Leckey
f2d55bc049
sqlx-cli: prepare v0.2.0
2020-11-12 07:50:31 -08:00
Jonas Platte
a161bcba05
Rename cargo features in preparation for rustls support
2020-11-12 07:32:21 -08:00
Chloe Ross
e816943c60
fix(cli): wait for newlines for confirmations
2020-10-23 19:33:13 -07:00
Jonas Platte
e00d8aaa5a
Bump clap version
...
This time use an exact version requirement since it would otherwise be
upgraded to later betas automatically.
2020-10-13 10:04:05 -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
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
Jonas Platte
adfa2d2161
sqlx-cli: Upgrade console dependency
2020-07-24 07:54:06 -07: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
Ryan Leckey
61e4a4f566
feat: finish v1 of both cli and embedded migrations
2020-07-12 03:43:55 -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