Write SqlDbLayer

This commit is contained in:
micialware committed 2026-08-30 20:32:16 +03:00
1 parent 8ec7c8f05d
commit 45830a7985
7 files changed
+150 -19

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ use crate::notification::NotificationData::{DbLoadError, DbSaveError};
use crate::notification::{MaybeError, NotificationData};
use rusqlite::Connection;
pub fn load_sets(connection: &Connection) -> Result<Vec<DeckSettings>, NotificationData> {
let mut stmt = connection
.prepare("SELECT id, name, forward, backward, filter FROM decks")