Portability | portable |
---|---|
Stability | provisional |
Maintainer | John Goerzen <[email protected]> |
Safe Haskell | None |
Database.AnyDBM.StringDBM
Description
Written by John Goerzen, [email protected]
This AnyDBM
implementation is very simple. It can store
data on-disk in a persistent fashion, using a very simple String
representation. While the file is open, an in-memory cache is maintained.
The data is written out during a call to flush
or close
.
- data StringDBM
- openStringDBM :: FilePath -> IOMode -> IO StringDBM
- openStringVDBM :: HVFSOpenable a => a -> FilePath -> IOMode -> IO StringDBM
- data SystemFS = SystemFS
- data IOMode
- = ReadMode
- | WriteMode
- | AppendMode
- | ReadWriteMode
Documentation
openStringDBM :: FilePath -> IOMode -> IO StringDBMSource
Opens a StringDBM
file. Please note: only ReadMode, WriteMode,
and ReadWriteMode are supported for the IOMode. AppendMode is not supported.
openStringDBM = openStringVDBM SystemFS
openStringVDBM :: HVFSOpenable a => a -> FilePath -> IOMode -> IO StringDBMSource