FurryChat/lib/utils/database/mobile.dart

17 lines
491 B
Dart
Raw Normal View History

2020-05-13 13:58:59 +00:00
import 'package:famedlysdk/famedlysdk.dart';
import 'package:encrypted_moor/encrypted_moor.dart';
import 'package:flutter/material.dart';
2020-05-22 10:21:16 +00:00
Database constructDb(
{bool logStatements = false,
String filename = 'database.sqlite',
String password = ''}) {
2020-05-13 13:58:59 +00:00
debugPrint('[Moor] using encrypted moor');
2020-05-22 10:21:16 +00:00
return Database(EncryptedExecutor(
path: filename, password: password, logStatements: logStatements));
2020-05-13 13:58:59 +00:00
}
Future<String> getLocalstorage(String key) async {
return null;
}