ejdb2_dart 1.0.2 copy "ejdb2_dart: ^1.0.2" to clipboard
ejdb2_dart: ^1.0.2 copied to clipboard

discontinued
outdated

Embeddable JSON Database engine ejdb http://ejdb.org Dart binding

EJDB2 Dart VM native binding #

Embeddable JSON Database engine http://ejdb.org Dart binding.

See https://github.com/Softmotions/ejdb/blob/master/README.md

For API usage examples look into /example and /test folders.

Example #

import 'package:ejdb2_dart/ejdb2_dart.dart';

void main() async {
  final db = await EJDB2.open('example.db', truncate: true);

  var id = await db.put('parrots', {'name': 'Bianca', 'age': 4});
  print('Biana record: ${id}');

  id = await db.put('parrots', {'name': 'Darko', 'age': 8});
  print('Darko record: ${id}');

  final q = db.createQuery('/[age > :age]', 'parrots');
  await for (final doc in q.setInt('age', 3).execute()) {
    print('Found ${doc}');
  }
  await db.close();
}

Supported platforms #

  • Linux x64

Contributors needed for OSX and Flutter.

How to build manually #

git clone https://github.com/Softmotions/ejdb.git
cd ./ejdb
mkdir ./build && cd build
cmake .. -DBUILD_DART_BINDING=ON -DCMAKE_BUILD_TYPE=Release
cd src/bindings/ejdb2_dart/ejdb2_dart
pub get
2
likes
0
pub points
0%
popularity

Publisher

verified publisherejdb.org

Embeddable JSON Database engine ejdb http://ejdb.org Dart binding

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

path

More

Packages that depend on ejdb2_dart