From 2dea4de6c9213c9ab846d6b91367ed7ed7d1cfbd Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Mon, 4 May 2026 17:07:00 -0400 Subject: sqlite.rs: Clean up sqlite import --- src/app/store/sqlite.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/app/store/sqlite.rs') diff --git a/src/app/store/sqlite.rs b/src/app/store/sqlite.rs index f87bb39..67ec046 100644 --- a/src/app/store/sqlite.rs +++ b/src/app/store/sqlite.rs @@ -8,7 +8,7 @@ use super::{ContextError, Store}; use bigdecimal::ToPrimitive; use chrono::Local; use miette::Result; -use sqlite::{Connection, Row, Value}; +use sqlite::{Connection, Row}; type DateTime = chrono::DateTime; @@ -248,7 +248,7 @@ impl SQLiteStore { conn.execute(migration.script_contents.clone())?; let mut statement = conn.prepare(Self::MIGRATION_CONTROL_INSERT_QUERY)?; - statement.bind::<&[(_, Value)]>(&[ + statement.bind::<&[(_, sqlite::Value)]>(&[ (":migration_id", i64::try_from(seed_id)?.into()), (":migration_filename", (&*migration.filename).into()), (":migration_timestamp", (&*timestamp).into()), @@ -302,7 +302,7 @@ impl SQLiteStore { let mut statement = conn.prepare(Self::FIDUCIARY_ACCOUNT_INSERT_QUERY)?; - statement.bind::<&[(_, Value)]>(&[ + statement.bind::<&[(_, sqlite::Value)]>(&[ (":fiduciary_account_id", i64::from(account.fiduciary_account_id).into()), (":fiduciary_account_name", account.fiduciary_account_name.clone().into()), (":fiduciary_account_number", i64::try_from(account.fiduciary_account_number)?.into()), @@ -339,7 +339,7 @@ impl SQLiteStore { let mut statement = conn.prepare(Self::EQUITY_SYMBOL_INSERT_QUERY)?; - statement.bind::<&[(_, Value)]>(&[ + statement.bind::<&[(_, sqlite::Value)]>(&[ (":equity_symbol_id", i64::try_from(symbol.equity_symbol_id)?.into()), (":equity_symbol_name", symbol.equity_symbol_name.clone().into()), (":equity_symbol_type", symbol.equity_symbol_type.to_string().into()), @@ -380,7 +380,7 @@ impl SQLiteStore { let mut statement = conn.prepare(Self::EQUITY_SYMBOL_INSERT_QUERY)?; - statement.bind::<&[(_, Value)]>(&[ + statement.bind::<&[(_, sqlite::Value)]>(&[ (":equity_change_event_id", i64::try_from(event.equity_change_event_id)?.into()), (":fiduciary_account_id", i64::from(event.fiduciary_account_id).into()), (":equity_symbol_id", i64::try_from(event.equity_symbol_id)?.into()), -- cgit v1.3