Copyright | (c) 2012-2013 The leveldb-haskell Authors |
---|---|
License | BSD3 |
Maintainer | kim.altintop@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- Types
- Smart constructors and deconstructors
- combinators
- Utilities
- 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 -> (BS.ByteString -> BS.ByteString -> Ordering) -> IO Comparator'
- mkCompareFun :: (BS.ByteString -> BS.ByteString -> Ordering) -> CompareFun
- mkCreateFilterFun :: ([BS.ByteString] -> BS.ByteString) -> CreateFilterFun
- mkFilterPolicy :: FilterPolicy -> IO FilterPolicy'
- mkKeyMayMatchFun :: (BS.ByteString -> BS.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
Options' | |
|
Smart constructors and deconstructors
freeCReadOpts :: ReadOptionsPtr -> IO () Source
freeComparator :: Comparator' -> IO () Source
freeFilterPolicy :: FilterPolicy' -> IO () Source
mkComparator :: String -> (BS.ByteString -> BS.ByteString -> Ordering) -> IO Comparator' Source
mkCompareFun :: (BS.ByteString -> BS.ByteString -> Ordering) -> CompareFun Source
mkCreateFilterFun :: ([BS.ByteString] -> BS.ByteString) -> CreateFilterFun Source
mkKeyMayMatchFun :: (BS.ByteString -> BS.ByteString -> Bool) -> KeyMayMatchFun Source
combinators
withCWriteOpts :: WriteOptions -> (WriteOptionsPtr -> IO a) -> IO a Source
withCReadOpts :: ReadOptions -> (ReadOptionsPtr -> IO a) -> IO a Source
Utilities
cSizeToInt :: CSize -> Int Source
intToCSize :: Int -> CSize Source