moonbitstack/moonorm/session does not have a README file
pub(all) suberror LostUpdate {
LostUpdate(String)
}impl Show for LostUpdatefn HookContext::new(event : HookEvent, table? : String, columns? : Array[(String, Value)]) -> HookContextpub(all) enum HookEvent {
BeforeInsert
AfterInsert
BeforeUpdate
AfterUpdate
BeforeDelete
AfterDelete
BeforeFlush
AfterFlush
BeforeCommit
AfterCommit
AfterRollback
} derive(Eq)pub(all) enum IsolationLevel {
ReadUncommitted
ReadCommitted
RepeatableRead
Serializable
} derive(Eq)fn[T] Session::create_table(self : Session, model : Model[T], if_not_exists? : Bool) -> ExecResult raise DbErrorfn[T] Session::insert_record(self : Session, model : Model[T], record : T) -> ExecResult raise DbErrorfn[S, T] Session::load_many(self : Session, source : S, rel : ManyToMany[S, T], strategy? : LoadStrategy) -> Array[T] raise DbErrorfn[S, T] Session::load_many_batch(self : Session, sources : Array[S], rel : ManyToMany[S, T], strategy? : LoadStrategy) -> Array[Array[T]] raise DbErrorfn[S, T] Session::load_one(self : Session, source : S, rel : Relation[S, T], strategy? : LoadStrategy) -> T? raise DbErrorfn Session::on(self : Session, event : HookEvent, handler : (HookContext) -> Unit raise DbError) -> Unittype WorkInstall
Download zipAn ORM and SQL toolkit for MoonBit.