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

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

Database.HDBC.Record.Update

Description

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

Synopsis

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.

runUpdate :: (IConnection conn, ToSql SqlValue p) => conn -> Update p -> p -> IO Integer Source #

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

mapUpdate :: (IConnection conn, ToSql SqlValue a) => conn -> Update a -> [a] -> IO [Integer] Source #

Prepare and update with each parameter list.