mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-09 05:29:30 +01:00
17 lines
491 B
Dart
17 lines
491 B
Dart
import 'package:famedlysdk/famedlysdk.dart';
|
|
import 'package:encrypted_moor/encrypted_moor.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
Database constructDb(
|
|
{bool logStatements = false,
|
|
String filename = 'database.sqlite',
|
|
String password = ''}) {
|
|
debugPrint('[Moor] using encrypted moor');
|
|
return Database(EncryptedExecutor(
|
|
path: filename, password: password, logStatements: logStatements));
|
|
}
|
|
|
|
Future<String> getLocalstorage(String key) async {
|
|
return null;
|
|
}
|