| Safe Haskell | None |
|---|
Database.HDBI.SQlite
- data SQliteConnection = SQliteConnection {
- scDatabase :: MVar (Maybe Database)
- scConnString :: Text
- scStatements :: ChildList SQliteStatement
- data SQliteStatement = SQliteStatement {}
- data SQState
- = SQNew { }
- | SQExecuted { }
- | SQFetching { }
- | SQFinished
- connectSqlite3 :: Text -> IO SQliteConnection
Types
data SQliteConnection Source
Connection to the database
Constructors
| SQliteConnection | |
Fields
| |
data SQliteStatement Source
Prepared statement
Constructors
| SQliteStatement | |
Fields
| |
Instances
Internal state of the statement. There is two similar constructors
SQFetching and SQExecuted to simulate proper behaviour according to
tests.
Constructors
| SQNew | |
Fields | |
| SQExecuted | |
Fields | |
| SQFetching | |
Fields | |
| SQFinished | |
Functions
Arguments
| :: Text | Connection string |
| -> IO SQliteConnection |
Connect to SQlite3 database