entidb_flutter 2.0.0-alpha.1 copy "entidb_flutter: ^2.0.0-alpha.1" to clipboard
entidb_flutter: ^2.0.0-alpha.1 copied to clipboard

Flutter plugin for EntiDB - an embedded entity database with ACID transactions and CBOR storage. Bundles native libraries for all platforms.

EntiDB Flutter Plugin #

Flutter plugin for EntiDB - an embedded entity database with ACID transactions and CBOR storage.

⚠️ Alpha Release Notice

This is an early alpha release. The plugin scaffold is complete, but native libraries for mobile platforms are still being cross-compiled and integrated. Currently only Windows is fully supported.

For production use, consider using entidb_dart directly with your own native library builds.

Platform Support (Alpha) #

Platform Status Notes
Windows ✅ Working Native library bundled
Android 🚧 Scaffold Native library pending
iOS 🚧 Scaffold Native library pending
macOS 🚧 Scaffold Native library pending
Linux 🚧 Scaffold Native library pending
Web Use entidb_web instead

Installation #

Add to your pubspec.yaml:

dependencies:
  entidb_flutter: ^2.0.0-alpha.1

Usage #

import 'package:entidb_flutter/entidb_flutter.dart';

void main() async {
  // Open a file-based database
  final db = Database.open('/path/to/database');

  // Or use in-memory for testing
  final memDb = Database.openMemory();

  // Get a collection
  final users = db.collection('users');

  // Generate a unique ID
  final id = EntityId.generate();

  // Store data (CBOR bytes)
  db.put(users, id, Uint8List.fromList([1, 2, 3]));

  // Retrieve data
  final data = db.get(users, id);

  // Use transactions for atomic operations
  db.transaction((txn) {
    txn.put(users, id1, data1);
    txn.put(users, id2, data2);
    // All operations commit atomically
  });

  // Always close when done
  db.close();
}

Minimum Requirements #

  • Flutter 3.0.0+
  • Dart 3.0.0+
  • Android SDK 21+ (Android 5.0)
  • iOS 12.0+
  • macOS 10.14+
  • Windows 10+
  • Linux (glibc 2.17+)

Architecture #

This plugin:

  1. Bundles prebuilt native libraries (libentidb_ffi) for each platform
  2. Re-exports the pure Dart API from entidb_dart
  3. Uses Flutter's FFI plugin mechanism for automatic library loading

Documentation #

  • entidb_dart - Pure Dart bindings (requires manual native library setup)
  • entidb_web - Web support via WASM (coming soon)

License #

MIT OR Apache-2.0

0
likes
0
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for EntiDB - an embedded entity database with ACID transactions and CBOR storage. Bundles native libraries for all platforms.

Repository (GitHub)
View/report issues

Topics

#database #embedded-database #nosql #cbor #flutter

Documentation

Documentation

License

unknown (license)

Dependencies

entidb_dart, flutter

More

Packages that depend on entidb_flutter

Packages that implement entidb_flutter