Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module provides typed Delete
running sequence
which intermediate structures are typed.
- type PreparedDelete p = PreparedStatement p ()
- prepare :: IConnection conn => conn -> Delete p -> IO (PreparedDelete p)
- prepareDelete :: IConnection conn => conn -> Delete p -> IO (PreparedDelete p)
- withPrepareDelete :: IConnection conn => conn -> Delete p -> (PreparedDelete p -> IO a) -> IO a
- runPreparedDelete :: ToSql SqlValue p => PreparedDelete p -> p -> IO Integer
- runDelete :: (IConnection conn, ToSql SqlValue p) => conn -> Delete p -> p -> IO Integer
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.