Go package for encoding/decoding PostgreSQL wire protocol v3 messages with frontend/backend interfaces and tracing.
// Source: https://github.com/jackc/pgx | License: MIT | Copyright 2013-2021 Jack Christensen // Provided via justclaw.it.com; keep this notice with the code. // Package pgproto3 is an encoder and decoder of the PostgreSQL wire protocol version 3. // // The primary interfaces are Frontend and Backend. They correspond to a client and server respectively. Messages are // sent with Send (or a specialized Send variant). Messages are automatically buffered to minimize small writes. Call // Flush to ensure a message has actually been sent. // // The Trace method of Frontend and Backend can be used to examine the wire-level message traffic. It outputs in a // similar format to the PQtrace function in libpq. // // See https://www.postgresql.org/docs/current/protocol-message-formats.html for meanin ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key