graninas / Hydra

Hydra is a full-fledged framework for building web services, multithreaded and concurrent applications with SQL and KV DB support.
BSD 3-Clause "New" or "Revised" License
189 stars 13 forks source link

Rework withKVDB #45

Open graninas opened 4 years ago

graninas commented 4 years ago

The function currently is just an alias for evalKVDB:

evalKVDB :: forall db a. D.DB db => D.DBHandle db -> L.KVDBL db a -> LangL a

withKVDB :: forall db a. D.DB db => D.DBHandle db -> L.KVDBL db a -> LangL a
withKVDB = evalKVDB

But it can be more high level:

withKVDB :: forall db a. D.DB db => D.KVDBConfig db -> L.LangL a -> LangL a