mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-28 22:24:49 +03:00
relational-query-HDBC: update haddock.
This commit is contained in:
parent
81c57e65d7
commit
44f0c1c893
@ -82,11 +82,15 @@ prepareNoFetch :: (UntypeableNoFetch s, IConnection conn)
|
||||
prepareNoFetch conn = unsafePrepare conn . untypeNoFetch
|
||||
|
||||
-- | Close PreparedStatement. Useful for connection pooling cases.
|
||||
-- PreparedStatement is released on closing connection,
|
||||
-- so connection pooling cases often cause resource leaks.
|
||||
finish :: PreparedStatement p a -> IO ()
|
||||
finish = HDBC.finish . prepared
|
||||
|
||||
-- | Bracketed prepare operation.
|
||||
-- Unsafely make Typed prepared statement.
|
||||
-- PreparedStatement is released on closing connection,
|
||||
-- so connection pooling cases often cause resource leaks.
|
||||
withUnsafePrepare :: IConnection conn
|
||||
=> conn -- ^ Database connection
|
||||
-> String -- ^ Raw SQL String
|
||||
|
Loading…
Reference in New Issue
Block a user