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

Struct baseRows

rows.go:122–145  ·  view source on GitHub ↗

baseRows implements the Rows interface for Conn.Query.

Source from the content-addressed store, hash-verified

120
121// baseRows implements the Rows interface for Conn.Query.
122type baseRows struct {
123 typeMap *pgtype.Map
124 resultReader *pgconn.ResultReader
125
126 values [][]byte
127
128 commandTag pgconn.CommandTag
129 err error
130 closed bool
131
132 scanPlans []pgtype.ScanPlan
133 scanTypes []reflect.Type
134
135 conn *Conn
136 multiResultReader *pgconn.MultiResultReader
137
138 queryTracer QueryTracer
139 batchTracer BatchTracer
140 ctx context.Context
141 startTime time.Time
142 sql string
143 args []any
144 rowCount int
145}
146
147func (rows *baseRows) FieldDescriptions() []pgconn.FieldDescription {
148 return rows.resultReader.FieldDescriptions()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected