ejdb2_flutter 1.0.0+2 copy "ejdb2_flutter: ^1.0.0+2" to clipboard
ejdb2_flutter: ^1.0.0+2 copied to clipboard

discontinued
outdated

Embeddable JSON Database engine EJDB http://ejdb.org Flutter binding.

EJDB2 Flutter integration #

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

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

For API usage examples take a look into /example application.

Example #

pubspec.yaml

dependencies:
  ejdb2_flutter: ^1.0.0
import 'package:ejdb2_flutter/ejdb2_flutter.dart';

var db = await EJDB2Builder('test.db').open();

var id = await db.put('parrots', {'name': 'Bianca', 'age': 4});
  print('Bianca 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 #

  • android-arm
  • android-arm64
  • android-x86
  • android-x64

How build it manually #

git clone https://github.com/Softmotions/ejdb.git

cd ./ejdb
mkdir ./build && cd build

cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_FLUTTER_BINDING=ON
make

# Move generate to ejdb2 flutter pub package with example app
cd src/bindings/ejdb2_flutter/pub_publish
flutter pub get
cd ./example

# Start Android emulator
flutter run
4
likes
0
pub points
0%
popularity

Publisher

verified publisherejdb.org

Embeddable JSON Database engine EJDB http://ejdb.org Flutter binding.

Homepage

License

unknown (license)

Dependencies

flutter, json_at, pedantic, quiver

More

Packages that depend on ejdb2_flutter