Fork me on GitHub
Mark Wardle11:02:33

Hi all! I’m starting to use datalevin in healthcare - e.g. as a way of handling the UK drug database. I build what are essentially immutable data stores - and then use them as reference data in other applications. I know lmdb can be opened in a read-only state - is it possible to open datalevin read-only and have that flag passed on to the underlying lmdb implementation? My code is - I’ve put a pathom front-end over the top and so seamlessly walk from other health and care data via datalevin using EQL. So thank you for making datalevin!

👍 2

All LMDB flags have equivalent keywords in Lisp case. Flags are passed in as a vector of keywords. Please try that and let me know if it does not work. Thanks.

Mark Wardle21:02:11

Brilliant. Thank you very much. I will try it out.


e.g. the “MDB_READONLY_ENV would be :rdonly-env


MDB prefix is omitted


oh sorry, i think i did not put in an arity to take these flags


let me release a version that does this


will do in next couple of days

Mark Wardle21:02:30

Wow that would be amazing. Thank you very much.