Skip to main content

Crate sqlx_json

Crate sqlx_json 

Source
Expand description

Database-agnostic row-to-JSON conversion and query result traits for sqlx.

Provides RowExt for converting a single database row into a Value::Object or into ordered (name, value) entries, and QueryResult for extracting affected row counts. Implementations are provided for SqliteRow, PgRow, and MySqlRow.

Traitsยง

QueryResult
Extracts the affected row count and insert id from a backend query result.
RowExt
Converts a database row into JSON.