sqlx-json 0.21.0

Database-agnostic row-to-JSON conversion for sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Database-agnostic row-to-JSON conversion and query result traits for sqlx.
//!
//! Provides [`RowExt`] for converting a single database row into a
//! [`Value::Object`](serde_json::Value::Object) or into ordered `(name, value)` entries, and
//! [`QueryResult`] for extracting affected row counts. Implementations are
//! provided for [`SqliteRow`](sqlx::sqlite::SqliteRow),
//! [`PgRow`](sqlx::postgres::PgRow), and [`MySqlRow`](sqlx::mysql::MySqlRow).

mod cell;
mod mysql;
mod postgres;
mod prelude;
mod row;
mod sqlite;
mod traits;

pub use traits::{QueryResult, RowExt};