Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data WriterHandle (f :: Type -> Type)
- openWriter :: FilePath -> IO (WriterHandle Proxy)
- closeWriter :: WriterHandle f -> IO ()
- withWriter :: FilePath -> (WriterHandle Proxy -> IO a) -> IO a
- write :: WriterHandle Proxy -> Builder -> IO Int
- flush :: WriterHandle f -> IO ()
- getLastSeqNo :: WriterHandle f -> IO Int
- class ToFastBuilder a where
- toFastBuilder :: a -> Builder
Writer interface
data WriterHandle (f :: Type -> Type) Source #
Instances
NFData (WriterHandle f) Source # | |
Defined in Database.Franz.Writer rnf :: WriterHandle f -> () # |
openWriter :: FilePath -> IO (WriterHandle Proxy) Source #
closeWriter :: WriterHandle f -> IO () Source #
Flush any pending data and close a WriterHandle
.
withWriter :: FilePath -> (WriterHandle Proxy -> IO a) -> IO a Source #
flush :: WriterHandle f -> IO () Source #
Flush the changes.
getLastSeqNo :: WriterHandle f -> IO Int Source #
Get the sequential number of the last item item written.
class ToFastBuilder a where Source #
toFastBuilder :: a -> Builder Source #
Instances
ToFastBuilder ByteString Source # | |
Defined in Database.Franz.Writer.Simple toFastBuilder :: ByteString -> Builder Source # | |
ToFastBuilder ByteString Source # | |
Defined in Database.Franz.Writer.Simple toFastBuilder :: ByteString -> Builder Source # | |
ToFastBuilder Builder Source # | |
Defined in Database.Franz.Writer.Simple toFastBuilder :: Builder -> Builder Source # |