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