hsSqlite3-0.1: Sqlite3 bindings
Source code
Contents
Index
Database.Sqlite3.Middle
Documentation
type
Db
a = (
DbError
e,
MonadError
e m,
MonadDb
m) => m a
Source
class
DbError
e
where
Source
Methods
makeErr
::
CInt
-> e
Source
castErr
:: e ->
Maybe
CInt
Source
Instances
DbError
(
Either
CInt
a)
class
MonadIO
m =>
MonadDb
m
where
Source
Methods
getDb
:: m (
Ptr
C'sqlite3
)
Source
putDb
::
Ptr
C'sqlite3
-> m
()
Source
cleanDb
:: m
()
Source
isDbReady
:: m
Bool
Source
getSt
:: m (
Ptr
C'sqlite3_stmt
)
Source
putSt
::
Ptr
C'sqlite3_stmt
-> m
()
Source
cleanSt
:: m
()
Source
isStReady
:: m
Bool
Source
Instances
MonadDb
(
StateT
SimpleState (
ErrorT
(
Either
CInt
String
)
IO
))
open
::
String
->
Db
()
Source
close
::
Db
()
Source
prepare
::
String
->
Db
()
Source
finalize
::
Db
()
Source
reset
::
Db
()
Source
step
::
Db
Bool
Source
bindInt
::
Int
->
Int
->
Db
()
Source
bindDouble
::
Int
->
Double
->
Db
()
Source
bindText
::
Int
->
String
->
Db
()
Source
columnBytes
::
Int
->
Db
Int
Source
columnCount
::
Db
Int
Source
columnInt
::
Int
->
Db
Int
Source
columnType
::
Int
->
Db
Int
Source
columnDouble
::
Int
->
Db
Double
Source
columnBlob
::
Int
->
Db
ByteString
Source
newCString
::
String
->
IO
CString
Source
err
::
CInt
->
Db
()
Source
Produced by
Haddock
version 2.4.2