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
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
20ba796b0d
fix(postgres): max number of binds is 65535, not 32767 (regression)
2024-08-26 16:20:45 -07:00
Austin Bonander
6651d2df72
Fix CI after Rust 1.80, remove dead feature references ( #3381 )
...
* fix(ci): update workflows/examples.yml
* Removed archived `actions-rs` actions
* Upgraded `Swatinem/rust-cache`, `actions/checkout`, `actions/download-artifact`, `actions/upload-artifact`
* chore: deprecate `AnyKind`
* fix: remove dead references to DB features in `sqlx-core`
This reactivates a couple of tests that had stopped working.
* chore(ci): move sqlx-cli checks to their own workflow
* fix(ci): remove remaining `uses: actions-rs/cargo`
* fix warnings
* chore: add titles to sqlx-cli jobs
* fix warnings (2)
* fix error in pool example
* fix warnings (3)
* fix query_builder test
* fix: don't run CLI tests on Windows
* chore: upgrade `rust-toolchain` to 1.80
* fix(postgres): fix missing Tokio specialization in `PgCopyIn`
Caught by the new `unexpected_cfgs` lint.
* fix new warnings
2024-07-26 23:15:32 -07:00