leveldb_dart 1.0.1 copy "leveldb_dart: ^1.0.1" to clipboard
leveldb_dart: ^1.0.1 copied to clipboard

LevelDB for Dart using dart:ffi

License: MIT Star on Github Github-sponsors

An implementation of LevelDB for Dart using dart:ffi. Based on flutter_leveldb by LiuJQ.

How to build the LevelDB shared library #

  • Step 1: Clone the LevelDB repository with submodules:

      git clone --recurse-submodules https://github.com/google/leveldb.git
    
  • Step 2: Build the LevelDB shared library:

      cd leveldb
      mkdir build && cd build
      cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on -DLEVELDB_BUILD_TESTS=off -DLEVELDB_BUILD_BENCHMARKS=off .
      cmake --build ..
    

    This will output the path of the shared library, which is typically named libleveldb.so on Linux, libleveldb.dylib on macOS, or leveldb.dll on Windows.

  • Step 3: Copy the shared library to the Dart project.

      cp <path_to_your_shared_library> <path_to_your_dart_project>
    

LevelDB Source Project #

google/leveldb

0
likes
140
points
37
downloads

Publisher

verified publisherethanblake.xyz

Weekly Downloads

LevelDB for Dart using dart:ffi

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, meta

More

Packages that depend on leveldb_dart