iamjpotts
81526898d4
refactor(core): Remove lifetime parameter from Arguments trait ( #3960 )
...
* refactor(core): Remove lifetime parameter from Arguments trait
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
* refactor(core): Also relax lifetime of argument passed to Query::bind and Query::try_bind
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
---------
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2025-09-13 21:47:45 -07:00
Joey de Waal
60f67dbc39
feat: implement Encode, Decode, Type for Arc<str> and Arc<[u8]> (and Rc equivalents) ( #3675 )
...
* implement Encode, Decode, Type for Arc<str> and Arc<[u8]> (and Rc equivalents)
* sqlx-sqlite: Remove clone in Encode impl
* sqlx-sqlite: Remove unnecessary impls
2025-07-04 17:58:33 -07:00
Joey de Waal
8602d94c4d
Implement Decode, Encode and Type for Box, Arc, Cow and Rc ( #3674 )
...
* feat: implement Decode,Encode,Type for Box,Arc,Cow
* feat implement Encode,Type for Rc
* feat: implement Decode for Rc
* chore: make tests more concise
* chore: use macro's
* chore: remove conflicting impls
* chore: more macro's
* Relax Sized bound for Decode, Encode
* update unit tests
* fixes after review
* add comment in `Decode` impl
* add comment about `ToOwned` trait bound
* add comment explaining why decoding to `Cow::Owned` was chosen
* Remove unnecessary Decode impls
2025-06-30 17:03:48 -07:00
Austin Bonander
90797200ee
groundwork for 0.9.0-alpha.1 ( #3821 )
...
* chore: bump version to `0.9.0-alpha.1`
* chore: delete unused `sqlx-bench` package
* chore: set `rust-version` to 1.85 for all crates
* fix: lots of new Clippy warnings
* fix: lots more Clippy warnings
* fix(cli): add `_sqlite` feature
* fix: lots, *lots* more Clippy warnings
* fix(core): warning in `tls_rustls`
* breaking: delete runtime+TLS combination features
* chore: don't re-export unstable `TransactionManager` trait
* chore: 0.9.0-alplha.1 CHANGELOG
* chore: increase MSRV further to 1.86
* fix: more clippy warnings
2025-06-01 21:09:55 -07:00
Austin Bonander
7102a7a254
feat: add MySqlTime, audit mysql::types for panics ( #3154 )
...
Also clarifies the handling of `TIME` (we never realized it's used for both time-of-day and signed intervals) and adds appropriate impls for `std::time::Duration`, `time::Duration`, `chrono::TimeDelta`
2024-03-30 11:49:12 -07:00
Austin Bonander
9fc9e7518e
feat: Text adapter ( #2894 )
2023-11-22 17:06:47 -08:00
Austin Bonander
58cb18a47a
fix: correct decoding of rust_decimal::Decimal for high-precision values ( #2820 )
...
also fixes handling of feature flags
2023-10-16 14:03:28 -07:00
Midas Lambrichts
cbf8dd37e9
Add Simple format for Uuid for MySQL & SQLite. ( #2469 )
...
* Add Simple format for Uuid for MySQL & SQLite.
Copy pasted the implementation for `Hyphenated` and adapt.
* Add uuid Simple docs for SQLite
2023-05-04 13:14:06 -07:00
Paolo Barbolini
ec15f6b30c
Update uuid crate to v1 ( #1821 )
2022-04-20 12:48:29 -07:00
Paolo Barbolini
ba123e62fa
Update time to 0.3.2 ( #1455 )
...
Co-authored-by: Tyler Hill <tyhi@tyhi.rs>
2022-04-14 15:11:46 -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
Ryan Leckey
3d7ac03e52
style: rustfmt
2020-07-26 22:30:45 -07:00
Ryan Leckey
4fec7db789
test(mysql, uuid): add some tests to prove UUIDs work in MySQL
2020-07-26 22:30:32 -07:00
Ryan Leckey
ec0e84d8ac
feat(mysql): support reading and writing BIT via unsigned integers
...
e.g., BIT(64) is u64 and BIT(2) is u8
2020-07-26 19:42:32 -07:00
Ryan Leckey
96b76dc737
update todo examples to 0.4 and use migrations
...
* update tests/x.py
* add examples/x.py
2020-07-18 05:43:16 -07:00
Julius de Bruijn
f246d41aed
Fixed an overflow with a negative scale
2020-07-09 12:32:19 -07:00
Julius de Bruijn
245d53e484
Test Decimal conversions in my and pg
2020-07-09 12:32:19 -07:00
Ryan Leckey
0824723765
fix: handle zero dates in MySQL, emit as Option::None (treat as NULL)
2020-07-03 05:50:06 -07:00
Peter Maatman
eda0b7dea4
mysql: Fix decoding of TIME '00:00:00.000000'
...
Fixes #418
2020-06-29 04:33:25 -07:00
Ryan Leckey
e7e2f5b37a
fix: implement transparent Serialize and Deserialize for Json<_>
2020-06-21 03:55:31 -07:00
Peter Maatman
90242494a8
test: expose missing trait bounds for Json<Vec<x>>
2020-06-21 03:55:31 -07:00
Ryan Leckey
a2c55b9f31
fix(mysql): tweak JSON type so it accepts BINARY in addition to CHAR (and make tests pass in MySQL 5.5)
2020-06-10 00:43:14 -07:00
Ryan Leckey
e5b6047009
feat: introduce docker-compose based testing for running locally against many database combinations
2020-05-30 17:51:55 -07:00