relational-query-HDBC-0.6.3.1: 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.InsertQuery

Description

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

Synopsis

Documentation

type PreparedInsertQuery p = PreparedStatement p () Source #

Typed prepared insert query type.

prepare :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p) Source #

Typed prepare insert-query operation.

withPrepareInsertQuery :: IConnection conn => conn -> InsertQuery p -> (PreparedInsertQuery p -> IO a) -> IO a Source #

Bracketed prepare operation.

runPreparedInsertQuery :: ToSql SqlValue p => PreparedInsertQuery p -> p -> IO Integer Source #

Bind parameters, execute statement and get execution result.

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

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