sembast 1.15.1 copy "sembast: ^1.15.1" to clipboard
sembast: ^1.15.1 copied to clipboard

outdated

NoSQL persistent embedded file system document-based database for Dart VM and Flutter with encryption support.

example/main.dart

// basically same as the io runner but with extra output
import 'dart:async';

import 'package:path/path.dart';
import 'package:sembast/sembast.dart';
import 'package:sembast/sembast_io.dart';

Future main() async {
  Database db = await databaseFactoryIo
      .openDatabase(join(".dart_tool", "sembast", "example", "record_demo.db"));
  Store store = db.getStore("my_store");
  Record record = Record(store, {"name": "ugly"});
  record = await db.putRecord(record);
  record = await store.getRecord(record.key);
  record =
      (await store.findRecords(Finder(filter: Filter.byKey(record.key)))).first;
  record = await store.getRecord(record.key);
  print(record);
  var records =
      (await store.findRecords(Finder(filter: Filter.matches("name", "^ugl"))));
  print(records);
}
945
likes
0
pub points
98%
popularity

Publisher

verified publishertekartik.com

NoSQL persistent embedded file system document-based database for Dart VM and Flutter with encryption support.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

logging, meta, path, synchronized

More

Packages that depend on sembast