Safe Haskell | None |
---|---|
Language | Haskell98 |
A port of the direct-sqlite package for dealing directly with
PersistValue
s.
- data Connection
- data Statement
- data Error
- = ErrorOK
- | ErrorError
- | ErrorInternal
- | ErrorPermission
- | ErrorAbort
- | ErrorBusy
- | ErrorLocked
- | ErrorNoMemory
- | ErrorReadOnly
- | ErrorInterrupt
- | ErrorIO
- | ErrorNotFound
- | ErrorCorrupt
- | ErrorFull
- | ErrorCan'tOpen
- | ErrorProtocol
- | ErrorEmpty
- | ErrorSchema
- | ErrorTooBig
- | ErrorConstraint
- | ErrorMismatch
- | ErrorMisuse
- | ErrorNoLargeFileSupport
- | ErrorAuthorization
- | ErrorFormat
- | ErrorRange
- | ErrorNotAConnection
- | ErrorRow
- | ErrorDone
- data SqliteException = SqliteException {
- seError :: !Error
- seFunctionName :: !Text
- seDetails :: !Text
- data StepResult
- open :: Text -> IO Connection
- close :: Connection -> IO ()
- prepare :: Connection -> Text -> IO Statement
- step :: Statement -> IO StepResult
- reset :: Connection -> Statement -> IO ()
- finalize :: Statement -> IO ()
- bindBlob :: Statement -> Int -> ByteString -> IO ()
- bindDouble :: Statement -> Int -> Double -> IO ()
- bindInt :: Statement -> Int -> Int -> IO ()
- bindInt64 :: Statement -> Int -> Int64 -> IO ()
- bindNull :: Statement -> Int -> IO ()
- bindText :: Statement -> Int -> Text -> IO ()
- bind :: Statement -> [PersistValue] -> IO ()
- column :: Statement -> Int -> IO PersistValue
- columns :: Statement -> IO [PersistValue]
- changes :: Connection -> IO Int64
Documentation
data Connection Source
data SqliteException Source
A custom exception type to make it easier to catch exceptions.
Since 2.1.3
SqliteException | |
|
open :: Text -> IO Connection Source
close :: Connection -> IO () Source
prepare :: Connection -> Text -> IO Statement Source
step :: Statement -> IO StepResult Source
reset :: Connection -> Statement -> IO () Source
changes :: Connection -> IO Int64 Source