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
469f22788e
breaking: add SqlStr ( #3723 )
...
* refactor: introduce `SqlSafeStr` API
* rebase main
* Add SqlStr + remove Statement lifetime
* Update the definition of Executor and AnyConnectionBackend + update Postgres driver
* Update MySql driver
* Update Sqlite driver
* remove debug clone count
* Reduce the amount of SqlStr clones
* improve QueryBuilder error message
* cargo fmt
* fix clippy warnings
* fix doc test
* Avoid panic in `QueryBuilder::reset`
* Use `QueryBuilder` when removing all test db's
* Add comment to `SqlStr`
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
* Update sqlx-core/src/query_builder.rs
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
* Add `Clone` as supertrait to `Statement`
* Move `Connection`, `AnyConnectionBackend` and `TransactionManager` to `SqlStr`
* Replace `sql_cloned` with `sql` in `Statement`
* Update `Executor` trait
* Update unit tests + QueryBuilder changes
* Remove code in comments
* Update comment in `QueryBuilder`
* Fix clippy warnings
* Update `Migrate` comment
* Small changes
* Move `Migration` to `SqlStr`
---------
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2025-07-07 00:35:54 -07:00
Paolo Barbolini
df47ffedd2
Replace some more futures_util APIs with std variants ( #3874 )
2025-06-15 15:18:39 -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
James H.
a7f2928a1b
feat(postgres): point ( #3583 )
...
* feat: point
* test: try if eq operator works for arrays of geometries
* fix: re-introduce comparison
* fix: test other geometry comparison
* test: geometry array equality check
* test: array match for geo arrays geo match for geo only
* fix: prepare geometric array type
* fix: update array comparison
* fix: try another method of geometric array comparison
* fix: one more geometry match tests
* fix: correct query syntax
* test: geometry test further
2024-11-27 13:35:42 -08:00
Austin Bonander
2ab7565bd8
chore: configure clippy cast lints at workspace level
2024-08-23 23:39:32 -07:00
Yuta Kobayashi
f2fea27cba
Fix encoding and decoding of MySQL enums in sqlx::Type ( #3371 )
2024-07-25 02:47:36 -07:00
Cristian Le
92de9d42a6
Add LICENSE-* files to crates
2024-06-20 10:56:08 -07:00
iamjpotts
235604fbce
chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 ( #3009 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-25 23:30:25 -08: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
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
05storm26
f328cc15d8
Sqlite chrono::DateTime<FixedOffset> timezone fix ( #1618 )
2022-04-14 15:06:55 -07:00
Bastian
6674e8ba96
Basic support for ltree ( #1696 )
...
* support ltree
* add default and push to PgLTree
* add more derived for ltree
* fix copy/paste
* Update sqlx-core/src/error.rs
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* PR fixes
* ltree with name instead of OID
* custom ltree errors
* add pop ot PgLTree
* do not hide ltree behind feature flag
* bytes() instead of chars()
* apply extend_display suggestion
* add more functions to PgLTree
* fix IntoIter
* resolve PR annotation
* add tests
* remove code from arguments
* fix array
* fix setup isse
* fix(postgres): disable `ltree` tests on Postgres 9.6
Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com>
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
Co-authored-by: Austin Bonander <austin@launchbadge.com>
2022-02-15 20:40:03 -08: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
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
Ryan Leckey
793f247604
refactor: PoolOptions::new() takes no parameters and the final .connect method takes the URI
2020-07-14 06:07:29 -07:00
Ryan Leckey
fc682fa991
fix: adjust pool usage in tests and examples
2020-07-12 04:42:48 -07:00
Ryan Leckey
1a7480774b
fix(postgres): after closing a statement, the connection should await CloseComplete
2020-07-02 22:37:04 -07:00
Ryan Leckey
9abdd7e408
style: rustfmt
2020-06-21 04:08:17 -07:00
Ryan Leckey
7c4c185698
chore: update dependencies
2020-06-21 03:55:31 -07:00
Ryan Leckey
ce4286dff5
test(mssql): handle null-safe equality comparison for type test for nulls
2020-06-10 00:43:14 -07:00
Ryan Leckey
a0ccc135aa
style(mssql): rename MsSql to Mssql as MSSQL is not written MsSQL
2020-06-07 05:39:12 -07:00
Ryan Leckey
95149c4e4a
test: fix postgres tests after tweak to make mssql work with test type macros
2020-06-07 02:00:13 -07:00
Ryan Leckey
2a272bdd59
feat(mssql): setup type tests for MSSQL and add support for all the int types
2020-06-07 02:00:13 -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
Ryan Leckey
05d8ac2747
Finish up JSON/JSONB support for Postgres
...
* implement for &serde_json::RawValue
* sqlx::types::Json<T> is a common type that all JSON-compatible databases can implement for,
postgres implements Json<T> as JSONB
* sqlx::postgres::types::PgJson<T> resolves to JSON
* sqlx::postgres::types::PgJsonB<T> resolves to JSONB
2020-03-21 01:16:34 -07:00
Ryan Leckey
9be1512833
mysql: use double literals in test
2020-03-18 23:16:56 -07:00
Ryan Leckey
493e520c4e
test: capture logs in test driver
2020-03-18 23:16:56 -07:00
Austin Bonander
3a43e939e3
refactor PgNumeric so NaN can't be misinterpreted, document types
2020-03-18 19:06:14 -07:00
Ryan Leckey
63f5592ecf
postgres: be explicit about an expression type for a test
2020-03-18 19:06:14 -07:00
Ryan Leckey
40e1df78f1
fix test_type! when a NULL comes through
2020-03-18 19:06:14 -07:00
Austin Bonander
94c40b3eb7
Postgres: implement numeric and BigDecimal support
2020-03-18 19:06:14 -07:00
Ryan Leckey
5f27026459
sqlite: implement remainder of query API
2020-03-14 17:43:44 -07:00
Ryan Leckey
a3799c3496
sqlite: implement command execution
2020-03-14 17:43:44 -07:00
Ryan Leckey
a165615f53
row: Row::get panics, Row::try_get is fallible, Query::map panics, Query::try_map is fallible
2020-03-11 03:32:52 -07:00
Ryan Leckey
63200a5044
test: postgres: fix query string (form -> from)
2020-03-11 02:48:20 -07:00
Ryan Leckey
c9df8acc41
Add zero-allocation to MySQL query execution
...
WIP mysql compiles with types and executor commented out
2020-03-11 01:47:29 -07:00
Ryan Leckey
10d2b45d9c
update dependencies and clean up some more unused imports
2020-03-11 01:46:06 -07:00
Ryan Leckey
f337f1c602
postgres: implement text mode for chrono and clean up type tests
2020-03-11 01:44:41 -07:00
Ryan Leckey
47f3d77e59
query_as: fully implement query_as, required a db-specific ext trait
2020-03-11 01:44:41 -07:00