leveldb 2.0.2 copy "leveldb: ^2.0.2" to clipboard
leveldb: ^2.0.2 copied to clipboard

outdatedDart 1 only

LevelDB dart bindings

leveldb_dart #

LevelDB Logo

Fast & simple storage - a Dart LevelDB wrapper

Introduction #

LevelDB is a simple key/value data store built by Google, inspired by BigTable. It's used in Google Chrome and many other products. LevelDB supports arbitrary byte arrays as both keys and values, singular get, put and delete operations, batched put and delete, bi-directional iterators and simple compression using the very fast Snappy algorithm.

leveldb_dart aims to expose the features of LevelDB in a Dart-friendly way.

LevelDB stores entries sorted lexicographically by keys. This makes leveldb_darts's getItems interface a very powerful query mechanism.

Platform Support #

Only linux amd64 platform is supported.

Basic usage #

Add leveldb to your pubspec.yaml file.

name: myproject
dependencies:
  leveldb:

Open a database and read/write some files.

import 'dart:async';
import 'package:leveldb/leveldb.dart';

Future main() async {
  LevelDB db = await LevelDB.open("/tmp/testdb1");
  db.put("abc", "def");
  String value = db.get("abc");
  print("value is $value"); // value2 is def
}

Check out example/main.dart for more example code.

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

LevelDB dart bindings

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on leveldb