diff options
Diffstat (limited to 'src/db/sqlite_adapter.rs')
-rw-r--r-- | src/db/sqlite_adapter.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sqlite_adapter.rs b/src/db/sqlite_adapter.rs index 5778ecf0..701639dc 100644 --- a/src/db/sqlite_adapter.rs +++ b/src/db/sqlite_adapter.rs @@ -13,6 +13,8 @@ use crate::{ pub use rusqlite; +// --- err + impl From<rusqlite::Error> for Error { fn from(e: rusqlite::Error) -> Error { Error(format!("{}", e).into()) @@ -25,6 +27,8 @@ impl<T> From<rusqlite::Error> for TxError<T> { } } +// -- db + pub struct SqliteDb { db: Mutex<Connection>, trees: RwLock<Vec<String>>, |