Jon Brisbin
Jon Brisbin

Reputation: 1319

How do I use LevelDB from Dart?

I'm looking into Dart for server-side development and one of the things I'd need to use if I went that direction was LevelDB. There is a port for the JVM that I could use from Java or Groovy but I haven't been able to find anything in Google that points me to a leveldb package for Dart.

I know it's possible to write a native port that uses the C++ API but I'm neither a C++ nor a Dart programmer so while that's theoretically possible, it's out of the question for me personally.

Since LevelDB and Dart are both Google initiatives, surely there's integration somewhere isn't there?

Upvotes: 2

Views: 324

Answers (2)

adam.lofts
adam.lofts

Reputation: 1162

I have written a LevelDB binding for Dart at https://pub.dartlang.org/packages/leveldb. Please try it out and file bugs for any issues you see.

Upvotes: 1

Seth Ladd
Seth Ladd

Reputation: 120439

To use LevelDB, which is written in C, you'll need to use the Dart VM's native extensions API. At the time of this writing, there is no open source binding for LevelDB and Dart VM.

Thanks for the question!

Upvotes: 0

Related Questions