This adds tracking of open iterators to leveldbds so that when one attempts to close it, iterators are disposed of first. It also adds automatic disposal if iterators are completely consumed.
fixes#82
* Add nimbledeps to be sure that dependencies are isolated
* Update dependencies to specific commit hashes
Signed-off-by: Arnaud <arnaud@status.im>
* Add gcsafe pragma
Signed-off-by: Arnaud <arnaud@status.im>
* Apply method name changes
Signed-off-by: Arnaud <arnaud@status.im>
* Catch exceptions
Signed-off-by: Arnaud <arnaud@status.im>
* Cast to nil value because nil cannot be applied directly to distinct pointer
Signed-off-by: Arnaud <arnaud@status.im>
* Update nim-results to version 0.5.1
Signed-off-by: Arnaud <arnaud@status.im>
* Add Nim 2.0.12 to matrix
* Increment the version
* Update the leveldb dependency
* Add versions and commit to dependencies
* Introduce nimble.lock
Signed-off-by: Arnaud <arnaud@status.im>
* Remove .lock and file and direct dependency to nim-results
* Update to 2.0.14
* updates nim-leveldbstatic
* sets leveldb to v0.2.0
* fix dep versions
* remove except Exception, no longer needed
* fix dep versions
---------
Signed-off-by: Arnaud <arnaud@status.im>
Co-authored-by: Ben <thatbenbierens@gmail.com>
Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
* Replaces stew-results with results package
* Applies leveldb batch-put
* links in dispose call to leveldb wrapper
* Handles trailing wildcards in leveldb query.
* Fixes tests for leveldb typed-ds.
* Adjusts exception handling in leveldbds to match what can be raised by leveldb iterator callbacks.
* Pulls in leveldbstatic 0.1.4
* Replaces replace with substring in leveldbds query
* Adds cmake to windows CI install
* set up leveldb-datastore
* Adds test for leveldb
* pulls in nim-leveldb by url and hash
* Fixes basic tests for leveldbds
* Implements query iterator
* Fixes include path for defaultImpl
* Review comments by Tomasz