adamlofts / leveldb_dart

Dart bindings for the LevelDB key value store.
MIT License
24 stars 5 forks source link

Consider making API generic #3

Closed adamlofts closed 7 years ago

adamlofts commented 8 years ago

Would be nice to have a LevelIterator<K, V>. I think this requires either

(1) Generic methods: https://chromium.googlesource.com/external/github.com/dart-lang/dev_compiler/+/refs/heads/master/doc/GENERIC_METHODS.md or (2) Making LevelDB<K, V>

Presumably if (2) then keyEncoding and valueEncoding would move into the LevelDB constructor. This would restrict DB updates to one encoding.

adamlofts commented 7 years ago

Working on generic branch. Waiting on resolution of https://github.com/dart-lang/sdk/issues/29349

adamlofts commented 7 years ago

Fixed in 9cd851f