Skip to main content

text_document_common/
database.rs

1// Generated by Qleany v1.4.8 from database.tera
2
3pub mod db_context;
4pub mod hashmap_store;
5pub mod transactions;
6use anyhow::Result;
7
8pub trait CommandUnitOfWork {
9    fn begin_transaction(&mut self) -> Result<()>;
10    fn commit(&mut self) -> Result<()>;
11    fn rollback(&mut self) -> Result<()>;
12    fn create_savepoint(&self) -> Result<types::Savepoint>;
13    fn restore_to_savepoint(&mut self, savepoint: types::Savepoint) -> Result<()>;
14}
15
16pub trait QueryUnitOfWork {
17    fn begin_transaction(&self) -> Result<()>;
18    fn end_transaction(&self) -> Result<()>;
19}
20
21use crate::types;