tokyocabinet-haskell-0.0.5: Haskell binding of Tokyo Cabinet

Safe Haskell | None

Database.TokyoCabinet.HDB.C

# Documentation

data OpenMode Source

Constructors

OREADER |
OWRITER |
OCREAT |
OTRUNC |
ONOLCK |
OLCKNB |
OTSYNC |

Instances

Eq OpenMode |
Ord OpenMode |
Show OpenMode |

openModeToCInt :: OpenMode -> CInt Source

combineOpenMode :: [OpenMode] -> CInt Source

data TuningOption Source

Constructors

TLARGE |
TDEFLATE |
TBZIP |
TTCBS |
TEXCODEC |

Instances

Eq TuningOption |
Ord TuningOption |
Show TuningOption |

tuningOptionToWord8 :: TuningOption -> Word8 Source

combineTuningOption :: [TuningOption] -> Word8 Source

data HDB' Source

tchdbFinalizer :: FunPtr (Ptr HDB' -> IO ())Source

c_tchdbnew :: IO (Ptr HDB')Source

c_tchdbdel :: Ptr HDB' -> IO ()Source

c_tchdbecode :: Ptr HDB' -> IO CInt Source

c_tchdbtune :: Ptr HDB' -> Int64 -> Int8 -> Int8 -> Word8 -> IO Bool Source

c_tchdbsetcache :: Ptr HDB' -> Int32 -> IO Bool Source

c_tchdbsetxmsiz :: Ptr HDB' -> Int64 -> IO Bool Source

c_tchdbopen :: Ptr HDB' -> CString -> CInt -> IO Bool Source

c_tchdbclose :: Ptr HDB' -> IO Bool Source

c_tchdbput :: Ptr HDB' -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO Bool Source

c_tchdbput2 :: Ptr HDB' -> CString -> CString -> IO Bool Source

c_tchdbputkeep :: Ptr HDB' -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO Bool Source

c_tchdbputkeep2 :: Ptr HDB' -> CString -> CString -> IO Bool Source

c_tchdbputcat :: Ptr HDB' -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO Bool Source

c_tchdbputcat2 :: Ptr HDB' -> CString -> CString -> IO Bool Source

c_tchdbputasync :: Ptr HDB' -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO Bool Source

c_tchdbout :: Ptr HDB' -> Ptr Word8 -> CInt -> IO Bool Source

c_tchdbout2 :: Ptr HDB' -> CString -> IO Bool Source

c_tchdbget :: Ptr HDB' -> Ptr Word8 -> CInt -> Ptr CInt -> IO (Ptr Word8)Source

c_tchdbget2 :: Ptr HDB' -> CString -> IO CString Source

c_tchdbvsiz :: Ptr HDB' -> Ptr Word8 -> CInt -> IO CInt Source

c_tchdbiterinit :: Ptr HDB' -> IO Bool Source

c_tchdbiternext :: Ptr HDB' -> Ptr CInt -> IO (Ptr Word8)Source

c_tchdbiternext2 :: Ptr HDB' -> IO CString Source

c_tchdbfwmkeys :: Ptr HDB' -> Ptr Word8 -> CInt -> CInt -> IO (Ptr LIST)Source

c_tchdbaddint :: Ptr HDB' -> Ptr Word8 -> CInt -> CInt -> IO CInt Source

c_tchdbadddouble :: Ptr HDB' -> Ptr Word8 -> CInt -> CDouble -> IO CDouble Source

c_tchdbsync :: Ptr HDB' -> IO Bool Source

c_tchdboptimize :: Ptr HDB' -> Int64 -> Int8 -> Int8 -> Word8 -> IO Bool Source

c_tchdbvanish :: Ptr HDB' -> IO Bool Source

c_tchdbcopy :: Ptr HDB' -> CString -> IO Bool Source

c_tchdbtranbegin :: Ptr HDB' -> IO Bool Source

c_tchdbtrancommit :: Ptr HDB' -> IO Bool Source

c_tchdbtranabort :: Ptr HDB' -> IO Bool Source

c_tchdbpath :: Ptr HDB' -> IO CString Source

c_tchdbrnum :: Ptr HDB' -> IO Word64 Source

c_tchdbfsiz :: Ptr HDB' -> IO Word64 Source