tailor 0.1.1+3 tailor: ^0.1.1+3 copied to clipboard
A lightning-fast, synchronous, key-value database written in pure Dart.
import 'package:tailor/tailor.dart';
void main() {
var db = TailorDB(
file: File(join(Directory.current.path, 'example', 'db.json')),
encryption: true,
passkey: '6hUzyvUiXsf652tPHXLW2K-Fx6ZHEU_r');
db.clear();
db.add(key: 'String', value: 'value');
db.add(key: 'List', value: ['here', 'are', 'values']);
db.add(key: 'Map', value: {'key1': 'value1', 'key2': 'value2'});
print(Map.fromIterables(db.keys, db.values));
}
//Check out the persistent storage in the db.json file in the example folder!