Source File
empty_query_response.go
Belonging Package
github.com/jackc/pgx/v5/pgproto3
package pgproto3
import (
)
type EmptyQueryResponse struct{}
// Backend identifies this message as sendable by the PostgreSQL backend.
func (*EmptyQueryResponse) () {}
// Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message
// type identifier and 4 byte message length.
func ( *EmptyQueryResponse) ( []byte) error {
if len() != 0 {
return &invalidMessageLenErr{messageType: "EmptyQueryResponse", expectedLen: 0, actualLen: len()}
}
return nil
}
// Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length.
func ( *EmptyQueryResponse) ( []byte) []byte {
return append(, 'I', 0, 0, 0, 4)
}
// MarshalJSON implements encoding/json.Marshaler.
func ( EmptyQueryResponse) () ([]byte, error) {
return json.Marshal(struct {
string
}{
: "EmptyQueryResponse",
})
}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |