Fork me on GitHub
#datalevin
<
2022-02-05
>
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 https://github.com/wardle/dmd - 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
Huahai21:02:00

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.

Huahai21:02:25

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

Huahai21:02:35

MDB prefix is omitted

Huahai21:02:18

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

Huahai21:02:00

let me release a version that does this

Huahai21:02:37

will do in next couple of days

Mark Wardle21:02:30

Wow that would be amazing. Thank you very much.