sqlx
sqlx copied to clipboard
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
### Bug Description In the document example code of `sqlx::query_as`, there exists several bugs that I encountered when testing. query_as.rs: 230 mismatched bracket. query_as.rs: 230 move TIMESTAMP to TIMESTAMPTZ to...
query_as.rs: 230 mismatched bracket. query_as.rs: 230 move TIMESTAMP to TIMESTAMPTZ to match type time::OffsetDateTime. query_as.rs: 241, 251, 260 move i64 to i32 to match postgres type `INT4`. ### Does your...
Currently when using the `query!` and `query_as!` macro's sqlx uses `explain (verbose, format json) execute {statement_id}` to get the query plan of a prepared statement/query. Then looks through the plans...
**Is your feature request related to a problem? Please describe.** We're using Bazel and [`rules_rust`](https://github.com/bazelbuild/rules_rust) to build all of our Rust libraries and binaries. We don't use Cargo at all,...
**This is a breaking change** This pr removes unnecessary `BoxFuture`'s in trait definitions `Connection`, `MigrateDatabase`, `TransactionManager`, `ConnectOptions`, `TestSupport` and `PgPoolCopyExt`. I was not able to make these changes to the...
### Does your PR solve an issue? Newcomers struggle a bit with getting the project setup with proper features for the test harness. - Added the necessary `*` for dereferences...
An lquery array can be used with the `?` operator for "Does ltree match any lquery in array?" Documentation: https://www.postgresql.org/docs/current/ltree.html#LTREE-OPS-FUNCS fixes #2246
I have an empty table contains no data.  when use this library is it possible to return column info if no data need return. by the way I am...
This adds an alternative TLS configuration that relies on `rustls-native-certs`, for users who cannot bundle the MPL-licensed `webpki-roots`. The approach is copied from `reqwest`: * https://github.com/seanmonstar/reqwest/blob/3ad6e02cd/Cargo.toml#L48 * https://github.com/seanmonstar/reqwest/blob/3ad6e02cd/src/async_impl/client.rs#L513 — except...
**Is your feature request related to a problem? Please describe.** I'm working on a job queue in my project, which involves NOTIFY/LISTEN. Ideally, I would like to react to notifications...