Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides typed InsertQuery
running sequence
which intermediate structures are typed.
Synopsis
- type PreparedInsertQuery p = PreparedStatement p ()
- prepare :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p)
- prepareInsertQuery :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p)
- withPrepareInsertQuery :: IConnection conn => conn -> InsertQuery p -> (PreparedInsertQuery p -> IO a) -> IO a
- runPreparedInsertQuery :: ToSql SqlValue p => PreparedInsertQuery p -> p -> IO Integer
- runInsertQuery :: (IConnection conn, ToSql SqlValue p) => conn -> InsertQuery p -> p -> IO Integer
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.
prepareInsertQuery :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p) Source #
Same as prepare
.
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.