anydbm-1.0.7: Interface for DBM-like database systems

Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Safe HaskellNone

Database.AnyDBM.StringDBM

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

Documentation

data StringDBM Source

The type of the StringDBM instances.

Instances

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

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.