| Portability | unknown |
|---|---|
| Stability | experimental |
| Maintainer | ex8k.hibino@gmail.com |
| Safe Haskell | None |
Database.HDBC.Record.Update
Description
This module provides typed Update running sequence
which intermediate structres are typed.
- type PreparedUpdate p = PreparedStatement p ()
- prepare :: IConnection conn => conn -> Update p -> IO (PreparedUpdate p)
- prepareUpdate :: IConnection conn => conn -> Update p -> IO (PreparedUpdate p)
- runPreparedUpdate :: ToSql SqlValue p => PreparedUpdate p -> p -> IO Integer
- runUpdate :: (IConnection conn, ToSql SqlValue p) => conn -> Update p -> p -> IO Integer
- mapUpdate :: (IConnection conn, ToSql SqlValue a) => conn -> Update a -> [a] -> IO [Integer]
Documentation
type PreparedUpdate p = PreparedStatement p ()Source
Typed prepared update type.
prepare :: IConnection conn => conn -> Update p -> IO (PreparedUpdate p)Source
Typed prepare update operation.
prepareUpdate :: IConnection conn => conn -> Update p -> IO (PreparedUpdate p)Source
Same as prepare.
runPreparedUpdate :: ToSql SqlValue p => PreparedUpdate p -> p -> IO IntegerSource
Bind parameters, execute statement and get execution result.