Austin Bonander
c8db803dca
fix(sqlx-cli/readme): mention openssl-vendored
2021-11-09 18:02:32 -08:00
Austin Bonander
fc056315db
fix(readme): mention examples
2021-11-09 17:55:55 -08:00
Austin Bonander
3604c6b9a0
fix(readme): mention offline feature
...
closes #1490
2021-11-09 17:35:37 -08:00
Austin Bonander
35c5e325aa
fix(readme): show runtime features in quickstart
...
closes #1492
2021-11-09 17:24:09 -08:00
Austin Bonander
51954fed8c
fix(readme): link to dotenv crate
...
closes #1405
2021-11-09 17:16:00 -08:00
Zbigniew Żołnierowicz
ce801b9330
Include a reference to the shape of the migration files in the migrate macro documentation ( #1498 )
2021-11-08 19:02:01 -08:00
Kirill Mironov
df2d5c7a1b
Encode/Decode impl for Cow<'_, str> ( #1343 )
...
* Encode/Decode impl for Cow<'_, str>
resolves #1214
* --wip-- [skip ci]
* Add Cow decode/encode to other databases and fix build
2021-11-08 18:58:24 -08:00
yuyawk
626dd0db38
fix panic when converting negative chrono::Duration into PgInterval ( #1475 )
...
* fix PgInterval convert failure for negative chrono::Duration
* add unit tests for PgInterval
* Fix: remove redundancy because nanosecond overflow implies microsecond overflow
2021-11-08 18:47:57 -08:00
yuyawk
cdb40b1f8e
derive Clone, Copy for AnyKind ( #1474 )
2021-11-08 18:45:19 -08:00
Austin Bonander
b419bf5298
docs: revise Pool docs in a couple places ( #1526 )
2021-11-04 18:52:55 -07:00
Russ Weas
069cfca0f3
Update FAQ to include building on docs.rs ( #1497 )
...
Thanks to @jplatte in the sqlx Discord for providing this solution.
2021-11-03 12:29:23 -07:00
meh
62b57f021f
fix(postgres): allow rust_decimal::Decimal in PgRange ( #1523 )
...
* fix(postgres): allow rust_decimal::Decimal in PgRange
* test(postgres): add tests for BigDecimal and Decimal in ranges
2021-11-03 12:28:39 -07:00
Daniel Imfeld
1efbbcaffa
Reduce indexmap version to 1.6.2 ( #1501 )
...
deno_core currently uses `=1.6.2` for indexmap, and Cargo refuses to resolve a version with sqlx's requirement of 1.7.0.
004d07dccd/core/Cargo.toml (L18)
2021-11-02 18:22:49 -07:00
Akira Hayakawa
f1851e7832
Add persistent setter ( #1503 ) ( #1508 )
2021-11-02 18:08:15 -07:00
Lucille Blumire
4ada6ac7e1
Add support for serialized threading mode to sqlite ( #1514 )
...
* Add support for serialized threading mode
* Typos
* Fix build
2021-11-02 18:07:56 -07:00
Austin Bonander
d25ab07f21
fix(test): fix mismatched type error in MySQL type tests ( #1517 )
...
* fix new warning about trailing semicolon in expression macros
* fix(test): fix mismatched type error in MySQL type tests
2021-10-26 13:45:46 -07:00
Yerkebulan Tulibergenov
466d3f317d
Update README.md ( #1479 )
2021-10-20 16:40:34 -07: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
v0.5.8
2021-10-01 14:45:25 -07:00
Erik
efde5c507f
Add reverting instructions to README ( #1468 )
...
Instructions on reverting migrations are missing from the README. Here are some that others may find helpful.
2021-10-01 13:44:48 -07:00
Billy Chan
8561891474
[SQLite] encoding & decoding NaiveTime with correct format ( #1459 )
...
* Fix SQLite encoding format
* Update SQLite decoding format
* Update sqlx-core/src/sqlite/types/chrono.rs
* fixup: add `#[rustfmt::skip]`
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2021-09-30 19:45:48 -07:00
Austin Bonander
51e45ce3ab
Revert "feat: allow log level customization ( #1371 )" ( #1465 )
...
This reverts commit 719d80038b2f685ab52ce15bb15e953f1f162b42.
2021-09-30 18:58:42 -07:00
Andrew Whitehead
ba3e373b7e
Shut down statement worker in Sqlite Connection::close ( #1453 )
...
* add explicit shutdown of sqlite statement worker in Connection::close()
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
* test sqlite database close method
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
* await worker shutdown after dropping SqliteConnection
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
* restore explicit drop
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
2021-09-30 18:14:30 -07:00
Paolo Barbolini
6e1c7a999a
Update postgres 14 test to 14rc1 ( #1454 )
2021-09-24 11:33:36 -07:00
Paolo Barbolini
c2e04a1f3c
Upgrade hmac to 0.11 ( #1443 )
2021-09-23 12:05:31 -07:00
Austin Bonander
8b30f3059b
Fix a panic in the worker thread when dropping the connection while SqliteRows still exist ( #1450 )
...
* chore(sqlite): add repro for #1419
* fix(sqlite): hold a reference to the connection in `SqliteRow`
fixes #1419
2021-09-22 16:55:22 -07:00
Kohei Suzuki
593364f801
fix(mysql): handle multiple waiting results correctly ( #1439 )
...
* test(mysql): add test case for pending rows and dropped transaction
* fix(mysql): handle multiple waiting results correctly
2021-09-22 13:39:56 -07:00
Vlad Frolov
24c0d5290b
docs: added a note about MySQL syntax in the README example ( #1445 )
2021-09-20 16:35:27 -07:00
Ghass Mo
a5997a2813
Support custom initial options for sqlite ( #1295 )
...
* Support custom initial options for sqlite
Apply suggestions from code review
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Apply suggestions from code review
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Use order-preserving map to set pragmas for an initial sqlite statement
Use Cow<'static, str> instead of String
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2021-09-13 13:48:24 -07:00
Austin Bonander
2307f432eb
fix: run cargo fmt
2021-09-13 13:14:24 -07:00
Montana Low
ec510b37e7
Finish support for Postgres COPY ( #1345 )
...
* feat(postgres): WIP implement `COPY FROM/TO STDIN`
Signed-off-by: Austin Bonander <austin@launchbadge.com>
* feat(postgres): WIP implement `COPY FROM/TO STDIN`
Signed-off-by: Austin Bonander <austin@launchbadge.com>
* test and complete support for postgres copy
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2021-09-13 13:03:38 -07:00
David Marcin
687fbf9909
Support the immutable option on SQLite connections ( #1289 )
...
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2021-09-10 15:47:30 -07:00
Paolo Barbolini
092f811f62
Fix CIDR[] not being compatible with Vec<IpNetwork> ( #1433 )
2021-09-10 15:43:04 -07:00
David James
bb33a296cb
Fix issue #1431 ( #1432 )
...
Why: dotenv() must execute before clap's get_matches()
Co-authored-by: David James <davidcjames@gmail.com>
2021-09-10 15:06:49 -07:00
Paolo Barbolini
efd08cc4b3
Reduce futures-util features ( #1427 )
...
* Reduce futures-util features
* Remove unused futures crate from sqlx-macros
2021-09-08 12:36:05 -07:00
Emil Gardström
2eb4ff8713
don't assert #[repr(...)] on #[derive(sqlx::Type)] unless needed ( #1305 )
2021-08-31 18:08:43 -07:00
Elise
719d80038b
feat: allow log level customization ( #1371 )
2021-08-31 17:51:48 -07:00
Jonas Platte
335eed4545
Add executor trait "aliases" ( #1412 )
2021-08-31 17:36:27 -07:00
Robert Collins
89ee690550
Don't require cargo to build offline queries ( #1415 )
...
In particular building with bazel and cargo-raze doesn't imply having
cargo at all, and deferring the lookup allows same-crate builds to
succeed with no change to semantics.
Fixes #1414
Signed-off-by: Robert Collins <robert.collins@cognite.com>
2021-08-31 17:35:50 -07:00
Jonas Platte
d94c081468
Add more debugging info to unresolved type declaration panic ( #1416 )
2021-08-31 17:35:10 -07:00
Simon Paitrault
135d16a34f
Getting current Handle in Drop ( #1395 )
...
Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
2021-08-30 14:11:49 -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
Evan Cameron
0e51272b72
fix(cli) move database_url #1391 ( #1400 )
2021-08-30 14:10:01 -07:00
Austin Bonander
3749e0ea37
chore: prepare 0.5.7 (hotfix) release ( #1394 )
v0.5.7
2021-08-20 17:14:42 -07:00
Austin Bonander
0e8ffb564b
fix(postgres): avoid recursively spawning tasks in PgListener::drop() ( #1393 )
...
refactor(pool): deprecate `PoolConnection::release()`, provide renamed alts
2021-08-20 16:44:46 -07:00
Austin Bonander
c04f83bcfe
fix(macros): use resolve_path when getting path for include_str!() ( #1392 )
...
fixes #1387
2021-08-20 15:46:32 -07:00
Austin Bonander
207e6db2ce
chore: bump versions of sqlx-* in dependencies
v0.5.6
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
Altan Özlü
774880d17c
cockroachdb fix for macro ( #1386 )
2021-08-17 12:20:08 -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