Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module provides typed Update
running sequence
which intermediate structures 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)
- withPrepareUpdate :: IConnection conn => conn -> Update p -> (PreparedUpdate p -> IO a) -> IO a
- 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
.
withPrepareUpdate :: IConnection conn => conn -> Update p -> (PreparedUpdate p -> IO a) -> IO a Source #
Bracketed prepare operation.
runPreparedUpdate :: ToSql SqlValue p => PreparedUpdate p -> p -> IO Integer Source #
Bind parameters, execute statement and get execution result.