github.com/jackc/pgproto3/v2.Bind.ParameterFormatCodes (field)
14 uses
github.com/jackc/pgproto3/v2 (current package)
bind.go#L15: ParameterFormatCodes []int16
bind.go#L49: dst.ParameterFormatCodes = make([]int16, parameterFormatCodeCount)
bind.go#L51: if len(src[rp:]) < len(dst.ParameterFormatCodes)*2 {
bind.go#L55: dst.ParameterFormatCodes[i] = int16(binary.BigEndian.Uint16(src[rp:]))
bind.go#L120: dst = pgio.AppendUint16(dst, uint16(len(src.ParameterFormatCodes)))
bind.go#L121: for _, fc := range src.ParameterFormatCodes {
bind.go#L155: if len(src.ParameterFormatCodes) == 1 {
bind.go#L156: textFormat = src.ParameterFormatCodes[0] == 0
bind.go#L157: } else if len(src.ParameterFormatCodes) > 1 {
bind.go#L158: textFormat = src.ParameterFormatCodes[i] == 0
bind.go#L179: ParameterFormatCodes: src.ParameterFormatCodes,
github.com/jackc/pgconn
pgconn.go#L1005: buf = (&pgproto3.Bind{ParameterFormatCodes: paramFormats, Parameters: paramValues, ResultFormatCodes: resultFormats}).Encode(buf)
pgconn.go#L1031: buf = (&pgproto3.Bind{PreparedStatement: stmtName, ParameterFormatCodes: paramFormats, Parameters: paramValues, ResultFormatCodes: resultFormats}).Encode(buf)
pgconn.go#L1579: batch.buf = (&pgproto3.Bind{PreparedStatement: stmtName, ParameterFormatCodes: paramFormats, Parameters: paramValues, ResultFormatCodes: resultFormats}).Encode(batch.buf)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |