relational-query-HDBC-0.6.3.0: HDBC instance of relational-query and typed query interface for HDBC

Copyright2013-2017 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Database.HDBC.Record.KeyUpdate

Description

This module provides typed KeyUpdate running sequence which intermediate structures are typed.

Synopsis

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.