You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- These functions control behaviour in pipeline mode.
1654
+
--
1655
+
-- Pipeline mode allows applications to send a query
1656
+
-- without having to read the result of the previously
1657
+
-- sent query. Taking advantage of the pipeline mode,
1658
+
-- a client will wait less for the server, since multiple
1659
+
-- queries/results can be sent/received in
1660
+
-- a single network transaction.
1661
+
1662
+
--| Returns the current pipeline mode status of the libpq connection.
1663
+
--
1664
+
-- @since 0.11.0.0
1665
+
pipelineStatus::Connection
1666
+
->IOPipelineStatus
1667
+
pipelineStatus connection =do
1668
+
stat <- withConn connection c_PQpipelineStatus
1669
+
maybe
1670
+
(fail$"Unknown pipeline status "++show stat)
1671
+
return
1672
+
(fromCInt stat)
1673
+
1674
+
--| Causes a connection to enter pipeline mode if it is currently idle or already in pipeline mode.
1675
+
--
1676
+
-- @since 0.11.0.0
1677
+
enterPipelineMode::Connection
1678
+
->IOBool
1679
+
enterPipelineMode connection =
1680
+
enumFromConn connection c_PQenterPipelineMode
1681
+
1682
+
--| Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results.
1683
+
--
1684
+
-- @since 0.11.0.0
1685
+
exitPipelineMode::Connection
1686
+
->IOBool
1687
+
exitPipelineMode connection =
1688
+
enumFromConn connection c_PQexitPipelineMode
1689
+
1690
+
--| Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer. This serves as the delimiter of an implicit transaction and an error recovery point>
1691
+
--
1692
+
-- @since 0.11.0.0
1693
+
pipelineSync::Connection
1694
+
->IOBool
1695
+
pipelineSync connection =
1696
+
enumFromConn connection c_PQpipelineSync
1697
+
1698
+
--| Sends a request for the server to flush its output buffer.
1699
+
--
1700
+
-- @since 0.11.0.0
1701
+
sendFlushRequest::Connection
1702
+
->IOBool
1703
+
sendFlushRequest connection =
1704
+
enumFromConn connection c_PQsendFlushRequest
1705
+
1643
1706
1644
1707
-- $cancel
1645
1708
-- A client application can request cancellation of a command that is
0 commit comments