hs-cdb-0.1.2: A library for reading CDB (Constant Database) files.
Safe HaskellSafe-Inferred
LanguageHaskell98

Database.CDB.Read

Synopsis

Documentation

data CDB Source #

Internal representation of a CDB file on disk.

cdbInit :: FilePath -> IO CDB Source #

Loads a CDB from a file.

cdbGet :: (Packable k, Unpackable v) => CDB -> k -> Maybe v Source #

Finds the first entry associated with a key in a CDB.

cdbGetAll :: (Packable k, Unpackable v) => CDB -> k -> [v] Source #

Finds all entries associated with a key in a CDB.

cdbHasKey :: Packable k => CDB -> k -> Bool Source #

Returns True if the CDB has a value associated with the given key.

cdbCount :: Packable k => CDB -> k -> Int Source #

Returns the number of values a CDB has for a given key.