relational-query-HDBC-0.1.0.0: HDBC instance of relational join and typed query for HDBC

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellNone

Database.HDBC.Record.KeyUpdate

Description

This module provides typed KeyUpdate running sequence which intermediate structres 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.

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 IntegerSource

Bind parameters, execute statement and get execution result.

runKeyUpdate :: (IConnection conn, ToSql SqlValue a) => conn -> KeyUpdate p a -> a -> IO IntegerSource

Prepare insert statement, bind parameters, execute statement and get execution result.