anydbm-1.0.1: Interface for DBM-like database systemsContentsIndex
Database.AnyDBM.StringDBM
Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Description

Written by John Goerzen, jgoerzen@complete.org

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.

Synopsis
data StringDBM
openStringDBM :: FilePath -> IOMode -> IO StringDBM
openStringVDBM :: HVFSOpenable a => a -> FilePath -> IOMode -> IO StringDBM
SystemFS (SystemFS)
IOMode (ReadMode, WriteMode, AppendMode, ReadWriteMode)
Documentation
data StringDBM
The type of the StringDBM instances.
show/hide Instances
openStringDBM :: FilePath -> IOMode -> IO StringDBM

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 StringDBM

Opens a StringDBM file. Please note: only ReadMode, WriteMode, and ReadWriteMode are supported for the IOMode. AppendMode is not supported.

To work on your system's normal (real) filesystem, just specify SystemFS for the first argument.

SystemFS (SystemFS)
IOMode (ReadMode, WriteMode, AppendMode, ReadWriteMode)
Produced by Haddock version 0.8