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 |
|
Ryan Leckey
|
08d2c79279
|
feat(postgres): expose PgTypeKind
|
2020-07-24 07:28:59 -07:00 |
|
Ryan Leckey
|
e575501a39
|
feat: add Executor::prepare, a hook into the automatic statement preparation life-cycle
|
2020-07-24 07:24:23 -07:00 |
|
Julius de Bruijn
|
590f97df4a
|
Caching describe
|
2020-07-24 07:24:23 -07:00 |
|
Ryan Leckey
|
8d188c5f1a
|
feat: expose column information on Row
- add database-specific Column types: MySqlColumn, PgColumn, etc.
- add Row::columns() -> &[DB::Column]
- add Row::column(I) and Row::try_column(I)
|
2020-07-05 03:48:36 -07:00 |
|
Ryan Leckey
|
6cfe5ac811
|
refactor: tweak type name display to use TypeInfo::name
|
2020-06-21 03:55:31 -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 |
|