(ctx context.Context, query string)
| 59 | } |
| 60 | |
| 61 | func (g *MySQLColumnGetter) GetColumnNames(ctx context.Context, query string) ([]string, error) { |
| 62 | rows, err := g.db.QueryContext(ctx, query) |
| 63 | if err != nil { |
| 64 | return nil, err |
| 65 | } |
| 66 | defer rows.Close() |
| 67 | return rows.Columns() |
| 68 | } |
| 69 | |
| 70 | // SQLiteColumnGetter implements ColumnGetter for SQLite using the native ncruces/go-sqlite3 API. |
| 71 | type SQLiteColumnGetter struct { |
nothing calls this directly
no test coverage detected