MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / SQLiteColumnGetter

Struct SQLiteColumnGetter

internal/x/expander/expander_test.go:71–73  ·  view source on GitHub ↗

SQLiteColumnGetter implements ColumnGetter for SQLite using the native ncruces/go-sqlite3 API.

Source from the content-addressed store, hash-verified

69
70// SQLiteColumnGetter implements ColumnGetter for SQLite using the native ncruces/go-sqlite3 API.
71type SQLiteColumnGetter struct {
72 conn *sqlite3.Conn
73}
74
75func (g *SQLiteColumnGetter) GetColumnNames(ctx context.Context, query string) ([]string, error) {
76 // Prepare the statement - this gives us column metadata without executing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected