MCPcopy
hub / github.com/jackc/pgx / PushBackRequestType

Method PushBackRequestType

pgconn/pgconn.go:2333–2349  ·  view source on GitHub ↗
(req pipelineRequestType)

Source from the content-addressed store, hash-verified

2331}
2332
2333func (s *pipelineState) PushBackRequestType(req pipelineRequestType) {
2334 if req == pipelineNil {
2335 return
2336 }
2337
2338 if req != pipelineFlushRequest {
2339 s.requestEventQueue.PushBack(pipelineRequestEvent{RequestType: req})
2340 }
2341 if req == pipelineFlushRequest || req == pipelineSyncRequest {
2342 s.registerFlushingBufferOnServer()
2343 }
2344 s.lastRequestType = req
2345
2346 if req == pipelineSyncRequest {
2347 s.expectedReadyForQueryCount++
2348 }
2349}
2350
2351func (s *pipelineState) ExtractFrontRequestType() pipelineRequestType {
2352 for {

Callers 7

SendPrepareMethod · 0.80
SendDeallocateMethod · 0.80
SendQueryParamsMethod · 0.80
SendQueryPreparedMethod · 0.80
SendQueryStatementMethod · 0.80
SendFlushRequestMethod · 0.80
SendPipelineSyncMethod · 0.80

Calls 1

Tested by

no test coverage detected