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 I have this function in my code: ```rs pub async fn fetch_post(&self, id: Option) -> Option { let query = match id { Some(id) => sqlx::query("SELECT id,...
### I have found these related issues/pull requests NO. ### Description https://github.com/launchbadge/sqlx/blob/bab1b022bd56a64f9a08b46b36b97c5cff19d77e/sqlx-core/src/transaction.rs#L105-L113 Although we have a `Rollback` defuse inside `TransactionManager::begin` e.g. for PG implementation, if the (future) drop happens between...
fixes #3100 Implements `Decode`, `Encode` and `Type` for `Box`, `Arc`, `Cow
### I have found these related issues/pull requests not found ### Description Could you investigate whether there were any changes in the MySQL driver or connection handling logic between versions...
@abonander and I have been discussing the benefits of providing a more Python style of SQL placeholders for parameters In Python database connectors, it looks like this: ```python conn.execute("SELECT %(name)s",...
### Bug Description I have a table containing composite type that contains varchar(256). The table also contains other top-level fields, among whose there are the varchars are as well. I...
### I have found these related issues/pull requests I've found a list of open and closed issues related to fixtures in `#[sqlx::test]` but I don't see anything about a feature...
This bumps the underlying version of windows-sys used by this crate. I've only compile tested this by crosscompiling from Linux. ### Does your PR solve an issue? No ### Is...
From [Rustls 0.23.24 release](https://github.com/rustls/rustls/releases/tag/v%2F0.23.24): > New feature: More detailed and helpful error reporting for common certificate errors, such as name mismatches and certificate expiry. Users who std::fmt::Display the rustls Error...
This PR adds a `Decode` impl for `Box`. This allows keeping structs that implement FromRow lifetime-free, previously you had to use `&'a JsonRawValue`. ```rust struct Foo { bar: Box, }...