MySQLColumnGetter implements ColumnGetter for MySQL. Column names are read from the result set metadata returned by executing the query; the test tables are empty, so no real rows are transferred. An earlier implementation pulled column metadata straight out of a prepared statement via a forked mys
| 55 | // works with the upstream driver and keeps the test covering the same |
| 56 | // behavior. |
| 57 | type MySQLColumnGetter struct { |
| 58 | db *sql.DB |
| 59 | } |
| 60 | |
| 61 | func (g *MySQLColumnGetter) GetColumnNames(ctx context.Context, query string) ([]string, error) { |
| 62 | rows, err := g.db.QueryContext(ctx, query) |
nothing calls this directly
no outgoing calls
no test coverage detected