nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 3a464620ae3e86df7661fbbcacaca7500b098839
parent 56202c3f3931b1940b8557f289f0dfbef7ce350b
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  9 Aug 2023 20:58:57 -0700

ndb: add ndb_lmdb struct

This will be used for passing around our database and indices

Diffstat:
Mnostrdb.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -38,6 +38,12 @@ struct ndb_json_parser { int num_tokens; }; +// useful to pass to threads on its own +struct ndb_lmdb { + MDB_env *env; + MDB_dbi dbis[NDB_DBIS]; +}; + struct ndb_writer { void *queue_buf; int queue_buflen;