diff options
| author | Kevin Hoerr <kjhoerr@submelon.dev> | 2026-02-26 22:11:25 +0000 |
|---|---|---|
| committer | Kevin Hoerr <kjhoerr@submelon.dev> | 2026-02-26 22:11:25 +0000 |
| commit | b59ea630284d792d7b959e2b64e818e22b038f21 (patch) | |
| tree | dcea59e042e76dd4def27ce034c044c27923d407 /src/main/rust/store/mod.rs | |
| parent | 5d78d005478def6da994af5545a4aae681b93d00 (diff) | |
| download | equity-tracker-b59ea630284d792d7b959e2b64e818e22b038f21.tar.gz equity-tracker-b59ea630284d792d7b959e2b64e818e22b038f21.tar.bz2 equity-tracker-b59ea630284d792d7b959e2b64e818e22b038f21.zip | |
SQLite -> SQLiteStore
Diffstat (limited to 'src/main/rust/store/mod.rs')
| -rw-r--r-- | src/main/rust/store/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/rust/store/mod.rs b/src/main/rust/store/mod.rs index 2408901..2cce3e9 100644 --- a/src/main/rust/store/mod.rs +++ b/src/main/rust/store/mod.rs @@ -1,12 +1,11 @@ mod sqlite; -use std::num::TryFromIntError; - +use crate::store::sqlite::SQLiteStore; use miette::{Diagnostic, Result}; use thiserror::Error; pub enum Context { - SQLite(sqlite::SQLite), + SQLite(SQLiteStore), } #[derive(Debug, Diagnostic, Error)] @@ -14,12 +13,12 @@ pub enum ContextError { #[error("Data storage error")] DataError(#[from] ::sqlite::Error), #[error("Int conversion error")] - ConversionError(#[from] TryFromIntError), + ConversionError(#[from] std::num::TryFromIntError), } impl Default for Context { fn default() -> Self { - Context::SQLite(sqlite::SQLite::default()) + Context::SQLite(SQLiteStore::default()) } } |
