switch to moor_ffi w/ sqlcipher
This commit is contained in:
parent
49f34a82dd
commit
e9ba95fb90
10 changed files with 239 additions and 70 deletions
|
|
@ -3,10 +3,10 @@ import 'package:moor/moor_web.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'dart:html';
|
||||
|
||||
Database constructDb(
|
||||
Future<Database> constructDb(
|
||||
{bool logStatements = false,
|
||||
String filename = 'database.sqlite',
|
||||
String password = ''}) {
|
||||
String password = ''}) async {
|
||||
debugPrint('[Moor] Using moor web');
|
||||
return Database(WebDatabase.withStorage(
|
||||
MoorWebStorage.indexedDbIfSupported(filename),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue