flutter_lmdb2 0.9.6
flutter_lmdb2: ^0.9.6 copied to clipboard
Flutter plugin to include native LMDB (Lightning Memory-Mapped Database), providing both high-level convenience methods and low-level transaction control.
flutter_lmdb2 #
Flutter bindings for LMDB (Lightning Memory-Mapped Database). This package is a Flutter wrapper for dart_lmdb2 and integrates this package for a Flutter app.
| Linux | Windows | Android | MacOS | iOS | web |
|---|---|---|---|---|---|
| soon | soon | 💙 | 💙 | 💙 | - |
Features #
- Native LMDB integration for Flutter
- Complete dart_lmdb2 API available inside Flutter applications
Installation #
dependencies:
flutter_lmdb2: ^0.9.6
Additional Setup Steps #
You need to fetch the native libraries:
dart run flutter_lmdb2:fetch_native
This step should be done every time you fetch a new version of dart_lmdb2.
iOS Architecture Support #
For iOS development, the package provides separate libraries for:
- Physical iOS devices (arm64)
- iOS simulators (x86_64)
These are automatically selected based on your build target, ensuring compatibility with both:
- Simulators on Intel Macs
- Simulators on Apple Silicon Macs (M1/M2/M3/M4)
- Physical iOS devices
You need to turn off "Strip dead symbols" and also set "Strip Style: non-global" in your iOS project settings, otherwise the Dart runtime cannot resolve the symbols of the native libraries for release builds at runtime, even though the library itself is statically linked.
This is a known limitation of Dart:ffi.
Example #
For a complete working example, check out the Flutter app in the example/ subdirectory.
Documentation #
For detailed API documentation, please refer to dart_lmdb2 project.
License #
MIT, see LICENSE