| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
ODBC
Contents
Description
ODBC database API.
- connect :: Text -> IO Connection
- close :: Connection -> IO ()
- exec :: Connection -> Text -> IO ()
- query :: Connection -> Text -> IO [[Value]]
- data Value
- data Connection
Connection
Arguments
| :: Text | Connection string. |
| -> IO Connection |
Connect using the given connection string.
close :: Connection -> IO () Source #
Close the connection. Further use of the Connection will throw
an exception.
Executing queries
Arguments
| :: Connection | |
| -> Text | SQL statement. |
| -> IO () |
Execute a statement on the database.
Arguments
| :: Connection | |
| -> Text | SQL Query. |
| -> IO [[Value]] |
Query and return a list of rows.
Types
A value used for input/output with the database.
data Connection Source #
Connection to a database.