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

Method getFieldDescriptionSlice

pgconn/pgconn.go:914–920  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

912}
913
914func (pgConn *PgConn) getFieldDescriptionSlice(n int) []FieldDescription {
915 if cap(pgConn.fieldDescriptions) >= n {
916 return pgConn.fieldDescriptions[:n:n]
917 } else {
918 return make([]FieldDescription, n)
919 }
920}
921
922func convertRowDescription(dst []FieldDescription, rd *pgproto3.RowDescription) {
923 for i := range rd.Fields {

Callers 5

NextResultMethod · 0.80
receiveMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected