MCPcopy Create free account
hub / github.com/compozy/agh / querySingleString

Function querySingleString

internal/store/sqlite.go:158–164  ·  view source on GitHub ↗
(ctx context.Context, db *sql.DB, stmt string)

Source from the content-addressed store, hash-verified

156}
157
158func querySingleString(ctx context.Context, db *sql.DB, stmt string) (string, error) {
159 var value string
160 if err := db.QueryRowContext(ctx, stmt).Scan(&value); err != nil {
161 return "", err
162 }
163 return value, nil
164}
165
166// NormalizeSQLiteIdentifier validates a SQLite identifier for use in helper queries.
167func NormalizeSQLiteIdentifier(value string) (string, error) {

Callers 2

configureSQLiteFunction · 0.85
TestStoreSQLiteHelpersFunction · 0.85

Calls 2

ScanMethod · 0.65
QueryRowContextMethod · 0.65

Tested by 1

TestStoreSQLiteHelpersFunction · 0.68