Commit Graph

22 Commits

Author SHA1 Message Date
Xie Yanbo f6e2b444d2 add documentation 2020-02-27 20:38:12 +08:00
Xie Yanbo c2ca9d6715 asynchronous default 2020-02-27 20:34:18 +08:00
Xie Yanbo bd0e208256 add proc getOrDefault 2020-02-27 20:31:06 +08:00
Xie Yanbo 44c16e08c7 rename LevelDbBatch to LevelDbWriteBatch 2020-02-27 20:25:19 +08:00
Xie Yanbo 6a64213af5 tool rename
The tool app name changed from `leveldb` to `leveldbtool` considering
the following reasons:

* `leveldb` looks like an official app, but it's not.
* It is confusing when binary has a name as same as the library, so nimble
  warned about hybrid projects.
* The new sketch of the binary project offered by nimble does not include
  `bin` directory.
2020-02-24 23:53:44 +08:00
Xie Yanbo 713b036f98 fix package compile issue
Error message: "Error: cannot open file: ../leveldb.nimble"
2020-02-23 22:12:03 +08:00
Xie Yanbo aa73784d72 read version from nimble config file 2020-02-19 19:11:11 +08:00
Xie Yanbo 9bd4ed57cd support minimum nim version 0.18.0 2020-02-18 23:46:17 +08:00
Colin Coombs 533d4ed7e8 Transform leveldb into a 'hybrid' package
This allows users to use leveldb databases in their own nim programs.
2020-02-18 16:53:39 +08:00
Xie Yanbo c758236822 fix empty string 2020-02-15 18:43:26 +08:00
Xie Yanbo 115c7a3780 compress 2020-02-13 16:21:50 +08:00
Xie Yanbo 6b87da8cc3 more options 2020-02-13 16:21:50 +08:00
Xie Yanbo 74ae934f94 test repairDb 2020-02-13 16:21:38 +08:00
Xie Yanbo ebc0544b8f support cache option 2019-12-14 18:14:04 +08:00
Xie Yanbo 594a5deb83 add batch procedure 2019-12-14 18:13:04 +08:00
Xie Yanbo dc9821c0b8 auto test 2019-11-17 18:07:23 +08:00
Xie Yanbo f06f932669 fix: fixed length string with terminating character 2019-11-16 20:24:33 +08:00
Xie Yanbo 9d67cd79c8 fix: stop iter if prefix not matched 2019-11-16 19:35:02 +08:00
Xie Yanbo 177190b311 Iterates with range of keys 2019-11-16 17:42:48 +08:00
Xie Yanbo f63abb769a Iterates with the prefix of keys 2019-11-16 17:42:40 +08:00
Xie Yanbo 8c215d13a3 add command line tool and bump verion to 0.3.0
* breaking change: rename `version` to `getLibVersion`
* add `repaireDb`
* fix `get` bug
2019-11-11 01:42:01 +08:00
Xie Yanbo 90d176e0fa nimble package 2019-11-10 11:32:48 +08:00