oboard/morm/engine does not have a README file
pub(open) trait Engine {
async exec(Self, query : Query) -> QueryResult
async exec_raw(Self, sql : String, params : FixedArray[Param]) -> QueryResult
async migrate_table(Self, table_schema : Json) -> QueryResult
close(Self) -> Unit
}pub(all) suberror ParamDecodeError {
ParamDecodeError(String)
}impl Eq for ParamDecodeErrorimpl Show for ParamDecodeErrorimpl ToJson for ParamDecodeErrorasync fn[C] ConnectionPool::borrow(self : ConnectionPool[C], open_conn : async () -> Result[C, String]) -> Result[C, String]fn[C] ConnectionPool::release(self : ConnectionPool[C], conn : C, close_conn : (C) -> Unit, reusable? : Bool) -> Unitimpl Eq for DeleteStatementimpl Show for DeleteStatementimpl ToJson for DeleteStatementimpl FromJson for DeleteStatementimpl Eq for InsertStatementimpl Show for InsertStatementimpl ToJson for InsertStatementimpl FromJson for InsertStatementpub(all) enum OrderBy {
Asc(String)
Desc(String)
}pub(all) enum Param {
Null
Bool(Bool)
Byte(Byte)
Int(Int)
Int16(Int16)
UInt16(UInt16)
UInt(UInt)
UInt64(UInt64)
Int64(Int64)
BigInt(BigInt)
Float(Float)
Double(Double)
Decimal(String)
Date(PlainDate, String?)
Time(PlainTime, String?)
DateTime(PlainDateTime, String?)
Timestamp(ZonedDateTime, String?)
Uuid(String)
Json(Json)
String(String)
Bytes(Bytes)
}pub(all) struct QueryResult {
ok : Bool
rows_affected : Int
rows : FixedArray[Json]
error : String?
}impl Eq for QueryResultimpl Show for QueryResultimpl ToJson for QueryResultimpl FromJson for QueryResultimpl Eq for SelectStatementimpl Show for SelectStatementimpl ToJson for SelectStatementimpl FromJson for SelectStatementpub(all) enum Statement {
Select(SelectStatement)
Insert(InsertStatement)
Upsert(UpsertStatement)
Update(UpdateStatement)
Delete(DeleteStatement)
}pub(all) enum TxOp {
Begin
Commit
Rollback
Savepoint(String)
RollbackToSavepoint(String)
}impl Eq for UpdateStatementimpl Show for UpdateStatementimpl ToJson for UpdateStatementimpl FromJson for UpdateStatementimpl Eq for UpsertStatementimpl Show for UpsertStatementimpl ToJson for UpsertStatementimpl FromJson for UpsertStatementpub(all) enum WhereType {
Eq
Ne
Gt
Lt
Gte
Lte
Like
}fn preload_in_sql_dollar(table : String, key_col : String, count : Int) -> Stringfn preload_in_sql_qmark(table : String, key_col : String, count : Int) -> Stringfn preload_many_to_many_sql_dollar(target_table : String, target_key : String, join_table : String, join_owner_key : String, join_target_key : String, count : Int) -> Stringfn preload_many_to_many_sql_qmark(target_table : String, target_key : String, join_table : String, join_owner_key : String, join_target_key : String, count : Int) -> String