MCPcopy
hub / github.com/jmoiron/sqlx / Columns

Method Columns

sqlx.go:221–226  ·  view source on GitHub ↗

Columns returns the underlying sql.Rows.Columns(), or the deferred error usually returned by Row.Scan()

()

Source from the content-addressed store, hash-verified

219// Columns returns the underlying sql.Rows.Columns(), or the deferred error usually
220// returned by Row.Scan()
221func (r *Row) Columns() ([]string, error) {
222 if r.err != nil {
223 return []string{}, r.err
224 }
225 return r.rows.Columns()
226}
227
228// ColumnTypes returns the underlying sql.Rows.ColumnTypes(), or the deferred error
229func (r *Row) ColumnTypes() ([]*sql.ColumnType, error) {

Callers 1

scanAnyMethod · 0.95

Calls 1

ColumnsMethod · 0.65

Tested by

no test coverage detected