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.
fixes #3150 fixes #3581 fixes #3591 TODO: - [x] Regression test # Breaking Change Strictly speaking, this is a breaking change because it adds the `DB` type parameter to all...
### I have found these related issues/pull requests There is an issue about supporting alias on columns for joined tables, but that appears to be unrelated to the present feature...
### I have found these related issues/pull requests #3195 seems to mention this issue, but in a different context. ### Description This codegen snippet omits generic types when generating the...
### Description: The sqlx library already has a feature in sqlx-cli https://github.com/launchbadge/sqlx/blob/main/sqlx-cli/src/migrate.rs To run migration till a specific version. Unfortunately this functionality isn't yet exposed to the library. Therefore, this...
### Bug Description Running `> sqlx database reset --database-url sqlite:// -y` outputs `error: error returned from database: (code: 14) unable to open database file` with sqlx-cli v0.7.1 but works fine...
This PR adds support for the `sslnegotiation` connection parameter which has been available since Postgres 17.0. See the `libpq` reference [here](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION) and the 17.0 [release notes](https://www.postgresql.org/docs/release/17.0/). The motivation for this...
## I have found these related issues/pull requests Mentioned in #3264, although that issue is not directly relevant. ## Description ### Overview PostgreSQL 17.0 introduced a new connection parameter called...
### Bug Description PoolTimeOut error happens frequently when the server is idle. If I don't give a gap between requests, the timeout doesn't happen. My guess is when there is...
### I have found these related issues/pull requests Haven't found any ### Description In Rust ecosystem it's more common to name cli packages for cargo as `cargo-my-package`, so for `sqlx`...
### I have found these related issues/pull requests none ### Description Here is my rust code: ``` #[derive(Debug, Deserialize, Serialize, sqlx::Type, ToSchema)] #[sqlx(type_name = "user_class_enum")] pub enum UserClass { #[sqlx(rename...