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

Method Columns

stdlib/sql.go:639–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637}
638
639func (r *Rows) Columns() []string {
640 if r.columnNames == nil {
641 fields := r.rows.FieldDescriptions()
642 r.columnNames = make([]string, len(fields))
643 for i, fd := range fields {
644 r.columnNames[i] = fd.Name
645 }
646 }
647
648 return r.columnNames
649}
650
651// ColumnTypeDatabaseTypeName returns the database system type name. If the name is unknown the OID is returned.
652func (r *Rows) ColumnTypeDatabaseTypeName(index int) string {

Callers

nothing calls this directly

Implementers 3

baseRowsrows.go
errRowspgxpool/rows.go
poolRowspgxpool/rows.go

Calls 1

FieldDescriptionsMethod · 0.65

Tested by

no test coverage detected