duckdb-simple
Safe HaskellNone
LanguageHaskell2010

Database.DuckDB.Simple.FileSystem

Description

 
Synopsis

Documentation

withFileHandle :: Connection -> FilePath -> [DuckDBFileFlag] -> (DuckDBFileHandle -> IO a) -> IO a Source #

Open a file through DuckDB's file-system layer for the duration of an action.

readFileHandleChunk :: DuckDBFileHandle -> Int64 -> IO ByteString Source #

Read up to the requested number of bytes from a file handle.

writeFileHandleBytes :: DuckDBFileHandle -> ByteString -> IO Int64 Source #

Write an entire bytestring to a file handle.

fileHandleTell :: DuckDBFileHandle -> IO Int64 Source #

Return the current file position.

fileHandleSize :: DuckDBFileHandle -> IO Int64 Source #

Return the current file size in bytes.

fileHandleSeek :: DuckDBFileHandle -> Int64 -> IO () Source #

Seek to an absolute byte offset.

fileHandleSync :: DuckDBFileHandle -> IO () Source #

Flush file-handle writes to stable storage.