oboard/morm/engine does not have a README file
pub(open) trait Engine {
render(Self, stmt : Statement) -> (String, FixedArray[Param])
tx_begin_sql(Self) -> String
tx_commit_sql(Self) -> String
tx_rollback_sql(Self) -> String
tx_savepoint_sql(Self, name : String) -> String
tx_rollback_to_savepoint_sql(Self, name : String) -> String
async migrate_table(Self, table_schema : Json) -> QueryResult
async exec_raw(Self, sql : String, params : FixedArray[Param]) -> QueryResult
preload_in_sql(Self, table : String, key_col : String, count : Int) -> String
preload_many_to_many_sql(Self, target_table : String, target_key : String, join_table : String, join_owner_key : String, join_target_key : String, count : Int) -> String
close(Self) -> Unit
}impl Eq for DeleteStatementimpl Show for DeleteStatementimpl ToJson for DeleteStatementimpl FromJson for DeleteStatementpub(all) struct InsertStatement {
into : String
columns : FixedArray[String]
values : FixedArray[Param]
}impl 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)
Time(PlainTime)
DateTime(PlainDateTime)
Timestamp(ZonedDateTime)
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)
}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