sqlx-json 0.10.2

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
//! Database-agnostic row-to-JSON conversion and query result traits for sqlx.
//!
//! Provides [`RowExt`] for converting a single database row into a
//! [`Value::Object`] 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 mysql;
mod numeric;
mod postgres;
mod sqlite;
mod traits;

pub use traits::{QueryResult, RowExt};