limdb
limdb copied to clipboard
Fast, in-process key-value store with a table-like interface persisted to disk using lmdb.
Following code: ```nim import limdb type Foo = object a: string let db = initDatabase("db", (int, Foo)) db[1] = Foo(a: "a") echo db[1] ``` runs without error. But in next...
My keys are URLs, and many are exceeding max key size (511 bytes). Maybe I could make a hash of the URL, as the key, and the URL itself as...
In my workflows I routinely need to iterate the database in reverse order. This change adds a 'reverse' parameter to all iterators.
LMDB natively has some operations to iterate over keys with a certain prefix. LimDB currently does not expose these. The new Nim module `std/critbittree` as exactly such an API. Since...
I have the following code which attempts to use limdb with mummy: ```nim import mummy, mummy/routers import limdb let db = initDatabase("myDirectory") proc indexHandler(request: Request) = var headers: HttpHeaders headers["Content-Type"]...