jprupp / rocksdb-haskell

RocksDB Haskell Bindings
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

API to manage database lifecycle and use handle outside of withDB bracket #5

Open epoberezkin opened 3 weeks ago

epoberezkin commented 3 weeks ago

Currently there are two problems with the API:

While the current withDB API needs to be preserved both for backwards compatibility and for simple testing, what is missing for production use is open/close/create APIs.

Happy to contribute if it's acceptable.

epoberezkin commented 3 weeks ago

https://github.com/simplex-chat/rocksdb-haskell/pull/1/files?diff=split&w=1 - this does it for withDB, a similar thing can be done to withDBCF, but more stuff will need to be held in database handle probably.

Let me know if you want this PR