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.
## Context Running an `sqlx` application in production, there are several outputs I would find really useful to make my application more observable. These could be three separate issues, but...
I'm writing a service which is designed to be ran in Docker where SSL really only adds unnecessary overhead and is as such not used. I'd love for a feature...
First time attempting this, so hopefully I'm not too far out in the sticks. Heavily based on implementations from other databases. As I understand it the uniqueidentifier type should be...
This PR implements observer-based `Pool` metric instrumentation, and captures the time taken to acquire a connection permit from the connection pool. A follow-on from https://github.com/launchbadge/sqlx/pull/1860. --- * feat: metric observer...
I am sharing my progress while refactoring the Postgres types (see https://github.com/launchbadge/sqlx/issues/1797). The main idea is to split `PgType` as it's too general. The new model has the following hierarchy:...
continuation of/supercedes #1183 closes #570 closes #1005 cc @jplatte TODO: - [x] choose a binary format * We want the most efficient deserialization since it'll be compiled in debug mode....
There was some previous conversation about it in #1251 but I didn't find any code in the current version of the repository to get it working. So I wrote my...
I generally use the following ~/.cargo/config.toml ``` [build] target-dir = "/home/sedrik/.cargo/target" ``` But having this setup and a lib crate with binaries in it caused `cargo sqlx prepare -- --lib...
The [`Encode`][encode], [`Decode`][decode] and [`Type`][type] traits are already implemented for various types, including the clone-on-write [`Cow`][cow] smart pointer - is there any objection to providing an impl for `Arc` too?...
I'm trying to decode an array of custom (PosgreSQL) types inside a record, using `PgRecordDecoder`. It hits the panic found here: https://github.com/launchbadge/sqlx/blob/2182925e92bc58ec4579c5b1e63377dcf5c6ae37/sqlx-core/src/postgres/type_info.rs#L866 It has an `oid` which matches the array...