MCPcopy
hub / github.com/sqlc-dev/sqlc / getColumnNames

Method getColumnNames

internal/x/expander/expander.go:338–340  ·  view source on GitHub ↗

getColumnNames prepares the query and returns the column names from the result

(ctx context.Context, query string)

Source from the content-addressed store, hash-verified

336
337// getColumnNames prepares the query and returns the column names from the result
338func (e *Expander) getColumnNames(ctx context.Context, query string) ([]string, error) {
339 return e.colGetter.GetColumnNames(ctx, query)
340}
341
342// countStarsInList counts the number of * expressions in a target list
343func countStarsInList(targets *ast.List) int {

Callers 5

expandSelectStmtMethod · 0.95
getCTEColumnNamesMethod · 0.95
expandInsertStmtMethod · 0.95
expandUpdateStmtMethod · 0.95
expandDeleteStmtMethod · 0.95

Calls 1

GetColumnNamesMethod · 0.65

Tested by

no test coverage detected