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.
https://docs.rs/geo https://www.postgresql.org/docs/current/datatype-geometric.html * `POINT` -> `geo::Coordinate` * `LINE` -> `geo::Line` * `LSEG` -> `geo::Line` * `BOX` -> `geo::Rect` * `PATH` -> `geo::LineString` * `POLYGON` -> `geo::Polygon`
Hi, I was wondering if it would make sense to release the binary of `sqlx-cli` probably statically compiled? The use case is to simply wrap it up in a docker-container...
I was trying to `derive(Type)` for a newtype containing `[u8; 16]` and it didn't work. It seems there is currently no impl for fixed-length arrays of `u8`. It would be...
In docs.rs I have a lot of code that looks like this: ```rust query!( "INSERT INTO queue (name, version, priority) VALUES ($1, $2, $3);", name, version, priority, ) .fetch_all(self.db.get()?) ```...
Hi! I'm trying to use the `PgListener` interface to listen for events (using `recv` or `try_recv`), while also using `listen` and `unlisten`. I'd like to be able to do something...
I'm attempting to write and chain some functions which are generic over Transactions, Connections and pools by using Acquire: ```rust pub async fn create_user, ) -> Result { ... }...
```toml # .env FOO_DATABASE_URL="postgres://..." ``` #### Option 1 Inspired from the `log` crate and `log!(target: _)`. ```rust let rows = sqlx::query!(database: "foo", "SELECT * FROM bar WHERE x = ?val",...
It would be very helpful to get more examples that show the features and possibilities of this library. It would help tremendously to set boundaries of what to expect for...
# Status Quo At the core of the `sqlx::query()` family of functions lies a contentious design choice that goes all the way back to the initial prototypes of SQLx: ```rust...
There are four transaction isolation levels in SQL language and most of database support them. But I can't find how to set isolation level for transactions in sqlx. Is it...