Copyright | © 2018-2020 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Dummy implementation of the database-layer, using
MVar
. This may be good
for testing to compare with an implementation on a real data store, or to use
when compiling the wallet for targets which don't have SQLite.
Synopsis
- newDBLayer :: TimeInterpreter Identity -> IO ( DBLayer IO )
Documentation
newDBLayer :: TimeInterpreter Identity -> IO ( DBLayer IO ) Source #
Instantiate a new in-memory "database" layer that simply stores data in a local MVar. Data vanishes if the software is shut down.