cfb_store 0.3.0 copy "cfb_store: ^0.3.0" to clipboard
cfb_store: ^0.3.0 copied to clipboard

CFB Store -> Config Binary Database.Witten By Dart.

example/cfb_store_example.dart

// ignore_for_file: unused_local_variable

import 'package:cfb_store/cfb_store.dart';

void main() async {
  final store = CFBStore();
  await store.open('config.cfb');
  // store.openSync(dbPath)

  store.put('name', 'ThanCoder');
  store.put('age', 29);
  store.put('is_femal', true);
  store.put('list', ['one', 'two', 'three']);
  store.put('map-list', [
    {'name': 'thancoder', 'age': 29},
  ]);
  store.put('map', {'name': 'thancoder', 'age': 28, 'height': 5.6});

  //save disk
  // await store.writeAll();
  print('list: ${store.getMapList('map-list')}');
  print('map: ${store.getMap('map')}');
}
0
likes
160
points
181
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CFB Store -> Config Binary Database.Witten By Dart.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on cfb_store