Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | [email protected] |
Safe Haskell | None |
Database.LevelDB.Internal
Contents
- Types
- Smart constructors and deconstructors
- combinators
- Utilities
Description
- data DB = DB LevelDBPtr Options'
- data Comparator'
- data FilterPolicy'
- data Options' = Options' {
- _optsPtr :: !OptionsPtr
- _cachePtr :: !(Maybe CachePtr)
- _comp :: !(Maybe Comparator')
- _fpPtr :: !(Maybe (Either FilterPolicyPtr FilterPolicy'))
- freeCReadOpts :: ReadOptionsPtr -> IO ()
- freeComparator :: Comparator' -> IO ()
- freeFilterPolicy :: FilterPolicy' -> IO ()
- freeOpts :: Options' -> IO ()
- mkCReadOpts :: ReadOptions -> IO ReadOptionsPtr
- mkComparator :: String -> (ByteString -> ByteString -> Ordering) -> IO Comparator'
- mkCompareFun :: (ByteString -> ByteString -> Ordering) -> CompareFun
- mkCreateFilterFun :: ([ByteString] -> ByteString) -> CreateFilterFun
- mkFilterPolicy :: FilterPolicy -> IO FilterPolicy'
- mkKeyMayMatchFun :: (ByteString -> ByteString -> Bool) -> KeyMayMatchFun
- mkOpts :: Options -> IO Options'
- withCWriteOpts :: WriteOptions -> (WriteOptionsPtr -> IO a) -> IO a
- withCReadOpts :: ReadOptions -> (ReadOptionsPtr -> IO a) -> IO a
- throwIfErr :: String -> (ErrPtr -> IO a) -> IO a
- cSizeToInt :: CSize -> Int
- intToCSize :: Int -> CSize
- intToCInt :: Int -> CInt
- cIntToInt :: CInt -> Int
- boolToNum :: Num b => Bool -> b
Types
data Comparator' Source
Internal representation of a Comparator
data FilterPolicy' Source
Internal representation of a FilterPolicy
Internal representation of the Options
Constructors
Options' | |
Fields
|
Smart constructors and deconstructors
freeCReadOpts :: ReadOptionsPtr -> IO ()Source
freeComparator :: Comparator' -> IO ()Source
freeFilterPolicy :: FilterPolicy' -> IO ()Source
mkCReadOpts :: ReadOptions -> IO ReadOptionsPtrSource
mkComparator :: String -> (ByteString -> ByteString -> Ordering) -> IO Comparator'Source
mkCompareFun :: (ByteString -> ByteString -> Ordering) -> CompareFunSource
mkCreateFilterFun :: ([ByteString] -> ByteString) -> CreateFilterFunSource
mkKeyMayMatchFun :: (ByteString -> ByteString -> Bool) -> KeyMayMatchFunSource
combinators
withCWriteOpts :: WriteOptions -> (WriteOptionsPtr -> IO a) -> IO aSource
withCReadOpts :: ReadOptions -> (ReadOptionsPtr -> IO a) -> IO aSource
Utilities
throwIfErr :: String -> (ErrPtr -> IO a) -> IO aSource
cSizeToInt :: CSize -> IntSource
intToCSize :: Int -> CSizeSource