sqlx icon indicating copy to clipboard operation
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.

Results 570 sqlx issues
Sort by recently updated
recently updated
newest added

I'm using `rustc 1.45.2` and `gcc (Rev2, Built by MSYS2 project) 9.2.0` on windows 10. The error is related to linking `sql-macros` ``` C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: export ordinal too large: 70242...

This query currently returns an `Option`. It would be nice to instead return `i64`, because `COUNT` is never nullable. ```rust async fn f() -> Result { sqlx::query!( "SELECT COUNT(*) FROM...

enhancement
db:postgres
macros
E-hard
macros:null-inference

```rust let mut recs = sqlx::query!( r#" select id, path, title, album, artist from tags order by path ; "# ) .fetch(&pool); ``` in above query id ( defined as...

bug
db:sqlite
macros
macros:null-inference

I noticed there i a similar issue https://github.com/launchbadge/sqlx/issues/93 I am using the latest version of SQLx so I don't believe that issue was solved: ``` cargo sqlx --version cargo-sqlx 0.5.5...

db:postgres
macros
macros:null-inference

When selecting rows using WHERE IN (SUBQUERY) sqlx erroneously(?) tries to return the rows with every field as nullable: https://github.com/regularfellow/todos-example/blob/c74f96319e15c2b181f140c0f7e497a5ccd8ac05/src/main.rs#L19-L22 ```rust struct Todo { id: i64, description: String, done: bool,...

db:postgres
macros
macros:null-inference

I have defined a `NOT NULL` column: ``` CREATE TABLE IF NOT EXISTS foo( ip INTEGER NOT NULL, client_id BLOB, PRIMARY KEY(ip) ); ``` After the update to 0.6.0, wherever...

db:sqlite

# Abstract For postgres, the migration script and the `_sqlx_migrations` state change run in two different transactions, which requires that the migration scripts are idempotent. This is quite hard to...

I've struck a strange issue with sqlite. This code ```rust fn query + 'a, limit: i64, offset: i64, ) -> BoxStream

I have a repository with a few create/read/update/get methods using transactions and pool. Nothing special. Now I'm trying to make it generic over the database to support both sqlite and...

Readme: > `migrate`: Add support for the migration management and migrate! macro, which allow compile-time embedded migrations. `migrate!` macro documentation: > See MigrationSource for details on structure of the ./migrations...