doc.go (688B)
1 // Package pgproto3 is a encoder and decoder of the PostgreSQL wire protocol version 3. 2 // 3 // The primary interfaces are Frontend and Backend. They correspond to a client and server respectively. Messages are 4 // sent with Send (or a specialized Send variant). Messages are automatically bufferred to minimize small writes. Call 5 // Flush to ensure a message has actually been sent. 6 // 7 // The Trace method of Frontend and Backend can be used to examine the wire-level message traffic. It outputs in a 8 // similar format to the PQtrace function in libpq. 9 // 10 // See https://www.postgresql.org/docs/current/protocol-message-formats.html for meanings of the different messages. 11 package pgproto3