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.
### I have found these related issues/pull requests Slightly related: in #148 , usage of user-defined types for read access is discussed. The discussion ends on a couple of comments...
### I have found these related issues/pull requests Maybe those 2: Improved detection of nullability for postgres #696 query_as!/query! inference returns nullable entries on join when a bound parameter is...
### Description **Actual Behavior:** The code waits for the duration specified in `.acquire_timeout()` (10 seconds in this example) and then fails with `sqlx::Error::PoolTimedOut`. ``` Attempting to connect... Failed to create...
Instantiate yourself an AnyPool (in my case with a Sqlite connection), ```rust pub async fn init_data_pool() -> Result { Ok(AnyPoolOptions::new() .max_connections(10) .connect("sqlite://dev.sqlite3") .await .map_err(|e| { error!("Encountered error trying to make...
### I have found these related issues/pull requests I haven't found similar issues ### Description If a field in the query statement is of `super` data-type an error is reported:...
This PR adds support for nested domain types. When comparing a `PgType` by `Oid` it compares the `Oid` of the base type when it is a domain.
### I have found these related issues/pull requests not ### Description  In my database this table have the column  ### Reproduction steps no ### SQLx version 0.8.3 ###...
fixes #2934
### Bug Description The `#[sqlx::test]` macro is occasionally failing to connect to the created database. Error: ``` thread 'my_module::test_fn' panicked at 'failed to connect to test database: Database(PgDatabaseError { severity:...
`sqlx migrate revert --help` states `Revert the latest migration with a down file` but its not clear what a "down file" is. It would be helpful to either document the...