objectdb 1.1.0-dev+1 copy "objectdb: ^1.1.0-dev+1" to clipboard
objectdb: ^1.1.0-dev+1 copied to clipboard

outdated

Persistent embedded document-oriented NoSQL database for Dart and Flutter.

example/main.dart

import 'package:objectdb/objectdb.dart';

void main() async {
  // open db
  var db = ObjectDB('/some/path/to/file.db');
  db.open();

  // insert documents
  await db.insertMany([
    {
      "name": {"first": "Maria", "last": "Smith"},
      "age": 20,
      "active": false
    },
    {
      "name": {"first": "James", "last": "Jones"},
      "age": 32,
      "active": false
    },
  ]);

  // update documents
  db.update({"name.first": "Maria"}, {"active": true});

  // remove documents
  db.remove({
    Op.inList: {
      "name.last": ["Jones", "Miller", "Wilson"]
    },
    "active": false,
  });

  // find documents
  print(await db.find({
    Op.lte: {"age": 30}
  }));

  // close db
  await db.close();
}
112
likes
0
pub points
84%
popularity

Publisher

unverified uploader

Persistent embedded document-oriented NoSQL database for Dart and Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

deeply, execution_queue

More

Packages that depend on objectdb