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

Struct PostgreSQLColumnGetter

internal/x/expander/expander_test.go:22–24  ·  view source on GitHub ↗

PostgreSQLColumnGetter implements ColumnGetter for PostgreSQL using pgxpool.

Source from the content-addressed store, hash-verified

20
21// PostgreSQLColumnGetter implements ColumnGetter for PostgreSQL using pgxpool.
22type PostgreSQLColumnGetter struct {
23 pool *pgxpool.Pool
24}
25
26func (g *PostgreSQLColumnGetter) GetColumnNames(ctx context.Context, query string) ([]string, error) {
27 conn, err := g.pool.Acquire(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected