| Copyright | 2013-2017 Kei Hibino | 
|---|---|
| License | BSD3 | 
| Maintainer | ex8k.hibino@gmail.com | 
| Stability | experimental | 
| Portability | unknown | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Database.HDBC.Record.KeyUpdate
Description
This module provides typed KeyUpdate running sequence
 which intermediate structures are typed.
Synopsis
- data PreparedKeyUpdate p a
- prepare :: IConnection conn => conn -> KeyUpdate p a -> IO (PreparedKeyUpdate p a)
- prepareKeyUpdate :: IConnection conn => conn -> KeyUpdate p a -> IO (PreparedKeyUpdate p a)
- withPrepareKeyUpdate :: IConnection conn => conn -> KeyUpdate p a -> (PreparedKeyUpdate p a -> IO b) -> IO b
- bindKeyUpdate :: ToSql SqlValue a => PreparedKeyUpdate p a -> a -> BoundStatement ()
- runPreparedKeyUpdate :: ToSql SqlValue a => PreparedKeyUpdate p a -> a -> IO Integer
- runKeyUpdate :: (IConnection conn, ToSql SqlValue a) => conn -> KeyUpdate p a -> a -> IO Integer
Documentation
data PreparedKeyUpdate p a Source #
Typed prepared key-update type.
prepare :: IConnection conn => conn -> KeyUpdate p a -> IO (PreparedKeyUpdate p a) Source #
Typed prepare key-update operation.
prepareKeyUpdate :: IConnection conn => conn -> KeyUpdate p a -> IO (PreparedKeyUpdate p a) Source #
Same as prepare.
withPrepareKeyUpdate :: IConnection conn => conn -> KeyUpdate p a -> (PreparedKeyUpdate p a -> IO b) -> IO b Source #
Bracketed prepare operation.
bindKeyUpdate :: ToSql SqlValue a => PreparedKeyUpdate p a -> a -> BoundStatement () Source #
Typed operation to bind parameters for PreparedKeyUpdate type.
runPreparedKeyUpdate :: ToSql SqlValue a => PreparedKeyUpdate p a -> a -> IO Integer Source #
Bind parameters, execute statement and get execution result.
runKeyUpdate :: (IConnection conn, ToSql SqlValue a) => conn -> KeyUpdate p a -> a -> IO Integer Source #
Prepare insert statement, bind parameters, execute statement and get execution result.