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

Function convertRowDescription

pgconn/pgconn.go:922–932  ·  view source on GitHub ↗
(dst []FieldDescription, rd *pgproto3.RowDescription)

Source from the content-addressed store, hash-verified

920}
921
922func convertRowDescription(dst []FieldDescription, rd *pgproto3.RowDescription) {
923 for i := range rd.Fields {
924 dst[i].Name = string(rd.Fields[i].Name)
925 dst[i].TableOID = rd.Fields[i].TableOID
926 dst[i].TableAttributeNumber = rd.Fields[i].TableAttributeNumber
927 dst[i].DataTypeOID = rd.Fields[i].DataTypeOID
928 dst[i].DataTypeSize = rd.Fields[i].DataTypeSize
929 dst[i].TypeModifier = rd.Fields[i].TypeModifier
930 dst[i].Format = rd.Fields[i].Format
931 }
932}
933
934type StatementDescription struct {
935 Name string

Callers 5

PrepareMethod · 0.85
NextResultMethod · 0.85
receiveMessageMethod · 0.85
getResultsPrepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected