mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-17 07:40:41 +00:00
Suite db
This commit is contained in:
parent
2d826d5248
commit
76173fbda3
3 changed files with 58 additions and 37 deletions
|
|
@ -31,6 +31,20 @@ class SembastDB extends BaseDB {
|
|||
return await dbFactory.openDatabase(dbPath);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<Item>> loadAllItems() async {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> saveAllItems(List<Item> items) async {
|
||||
var store = StoreRef.main();
|
||||
for(int i = 0; i<items.length;i++) {
|
||||
var item = items[i];
|
||||
//await store.record(item.id).put(_database,item.toMap());
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Item> getItemWithId(String id) {
|
||||
// TODO: implement getItemWithId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue