leveldb-haskell-0.6.5: Haskell bindings to LevelDB

Copyright(c) 2012-2013 The leveldb-haskell Authors
LicenseBSD3
Maintainerkim.altintop@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Database.LevelDB.Internal

Contents

Description

 

Synopsis

Types

data DB Source #

Database handle

Constructors

DB LevelDBPtr Options' (IORef Bool) 

Instances

Eq DB Source # 

Methods

(==) :: DB -> DB -> Bool #

(/=) :: DB -> DB -> Bool #

data Comparator' Source #

Internal representation of a Comparator

data FilterPolicy' Source #

Internal representation of a FilterPolicy

data Options' Source #

Internal representation of the Options

unsafeClose :: DB -> IO () Source #

Closes the database.

The function is safe in that it doesn't double-free the pointer, but is unsafe because other functions which use the DB handle do not check if the handle is live. If the handle is used after it was freed, the program will segfault (internally, leveldb performs a delete on the pointer).

"Smart" constructors and deconstructors

combinators

Utilities

throwIfErr :: String -> (ErrPtr -> IO a) -> IO a Source #

boolToNum :: Num b => Bool -> b Source #