unmbt/ciallo-orm/driver does not have a README file
pub(open) trait SqlDriver {
fn dialect(Self) -> DialectKind
async fn query_rows(Self, sql : String, params : Array[SqlValue]) -> Array[SqlRow] raise DataError
async fn execute(Self, sql : String, params : Array[SqlValue]) -> ExecResult raise DataError
async fn begin_tx(Self) -> &SqlTx raise DataError
}pub(open) trait SqlTx {
fn dialect(Self) -> DialectKind
async fn query_rows(Self, sql : String, params : Array[SqlValue]) -> Array[SqlRow] raise DataError
async fn execute(Self, sql : String, params : Array[SqlValue]) -> ExecResult raise DataError
async fn savepoint(Self, name : String) -> Unit raise DataError
async fn release_savepoint(Self, name : String) -> Unit raise DataError
async fn rollback_to_savepoint(Self, name : String) -> Unit raise DataError
async fn commit(Self) -> Unit raise DataError
async fn rollback(Self) -> Unit raise DataError
}pub struct MemoryMockDriver {
// private fields
}impl SqlDriver for MemoryMockDriverasync fn execute(self : MemoryMockDriver, sql : String, params : Array[SqlValue]) -> ExecResult raise DataErrorfn MemoryMockDriver::set_exec_handler(self : MemoryMockDriver, handler : (String, Array[SqlValue], Map[String, Array[SqlRow]]) -> ExecResult raise DataError) -> Unitfn MemoryMockDriver::set_query_handler(self : MemoryMockDriver, handler : (String, Array[SqlValue], Map[String, Array[SqlRow]]) -> Array[SqlRow] raise DataError) -> Unitfn MemoryMockDriver::set_table_rows(self : MemoryMockDriver, table : String, rows : Array[SqlRow]) -> UnitInstall
Download zipZero-reflection type-safe SQL AST, Postgres/SQLite/D1 dialect compiler, closure SAVEPOINT transactions, and query executor for unmbt/ciallo