Added repositories into AppState
This commit is contained in:
1 parent
6c20561ede
commit
11d5144db5
9 files changed
+67
-23
No files matched your search
@@ -7,8 +7,9 @@ use rusqlite::{Connection, Error, Params, Row, params};
|
||||
use std::collections::HashMap;
|
||||
use crate::data::repositories::DataRepository;
|
||||
|
||||
type DeckRepository = DataRepository<WordData, SqliteDbLayer<WordData, WordQuerySet>>;
|
||||
pub type WordRepository = DataRepository<WordData, SqliteDbLayer<WordData, WordQuerySet>>;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct WordQuerySet;
|
||||
impl TableAccessQuerySet<WordData> for WordQuerySet {
|
||||
fn load() -> &'static str {
|
||||
|
||||
Reference in new issue
Block a user