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.Delete

Description

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

Synopsis

Documentation

type PreparedDelete p = PreparedStatement p () Source #

Typed prepared delete type.

prepare :: IConnection conn => conn -> Delete p -> IO (PreparedDelete p) Source #

Typed prepare delete operation.

prepareDelete :: IConnection conn => conn -> Delete p -> IO (PreparedDelete p) Source #

Same as prepare.

withPrepareDelete :: IConnection conn => conn -> Delete p -> (PreparedDelete p -> IO a) -> IO a Source #

Bracketed prepare operation.

runPreparedDelete :: ToSql SqlValue p => PreparedDelete p -> p -> IO Integer Source #

Bind parameters, execute statement and get execution result.

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

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