Initial commit

This commit is contained in:
2026-10-06 08:24:08 +03:00
commit eb1fd6e2ff
19 changed files with 2112 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
use std::path::Path;
use tokio_rusqlite::{Connection, OpenFlags};
pub struct Reader {
pub connection: Connection,
}
impl Reader {
pub async fn new(path: &Path) -> Result<Self, tokio_rusqlite::Error> {
let connection = Connection::open_with_flags(path, OpenFlags::SQLITE_OPEN_READ_ONLY).await?;
Ok(Self{connection})
}
}