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

Method Sync

pgconn/pgconn.go:2578–2581  ·  view source on GitHub ↗

Sync establishes a synchronization point and flushes the queued requests.

()

Source from the content-addressed store, hash-verified

2576
2577// Sync establishes a synchronization point and flushes the queued requests.
2578func (p *Pipeline) Sync() error {
2579 p.SendPipelineSync()
2580 return p.Flush()
2581}
2582
2583// GetResults gets the next results. If results are present, results may be a *ResultReader, *StatementDescription, or
2584// *PipelineSync. If an ErrorResponse is received from the server, results will be nil and err will be a *PgError. If no

Calls 2

SendPipelineSyncMethod · 0.95
FlushMethod · 0.95