Skip to main content

saddle_db/
lib.rs

1//! Saddle-managed MySQL/MariaDB access and single-source transactions.
2//!
3//! Applications receive this capability from Saddle. They do not create a
4//! pool, acquire a connection, or manage a sqlx transaction directly.
5
6mod cleanup;
7mod database;
8mod error;
9mod row;
10mod statement;
11mod transaction;
12
13pub use database::{Database, DatabaseConfig, MAX_INBOUND_PACKET_BYTES, MAX_QUERY_ROWS};
14pub use row::{DbRow, MAX_FIELD_BYTES, MAX_RESULT_BYTES, WriteResult};
15pub use saddle_core::{CallContext, Result, SaddleError};
16pub use statement::{
17    DbValue, MAX_PARAMETER_BYTES, MAX_PARAMETERS, MAX_PARAMETERS_TOTAL_BYTES, MAX_SQL_BYTES,
18    Statement,
19};
20pub use transaction::{Transaction, TransactionFuture};