Portability | unknown |
---|---|
Stability | experimental |
Maintainer | ex8k.hibino@gmail.com |
Safe Haskell | None |
This module provides typed InsertQuery
running sequence
which intermediate structres are typed.
- type PreparedInsertQuery p = PreparedStatement p ()
- prepare :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p)
- prepareInsertQuery :: IConnection conn => conn -> InsertQuery p -> IO (PreparedInsertQuery p)
- 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
.
runPreparedInsertQuery :: ToSql SqlValue p => PreparedInsertQuery p -> p -> IO IntegerSource
Bind parameters, execute statement and get execution result.
runInsertQuery :: (IConnection conn, ToSql SqlValue p) => conn -> InsertQuery p -> p -> IO IntegerSource
Prepare insert statement, bind parameters, execute statement and get execution result.