switch to moor_ffi w/ sqlcipher

This commit is contained in:
Sorunome 2020-07-20 15:33:52 +00:00 committed by Christian Pauly
commit e9ba95fb90
10 changed files with 239 additions and 70 deletions

View file

@ -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),