tailor 0.2.3+2 copy "tailor: ^0.2.3+2" to clipboard
tailor: ^0.2.3+2 copied to clipboard

discontinued

A lightning-fast, synchronous, key-value database written in pure Dart.

example/tailor_example.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'});
  db.writeCache();
  print(Map.fromIterables(db.keys, db.values));
}

//Check out the persistent storage in the db.json file in the example folder!
16
likes
20
pub points
0%
popularity

Publisher

verified publisherkishoredev.live

A lightning-fast, synchronous, key-value database written in pure Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta, path, steel_crypt

More

Packages that depend on tailor