MCPcopy Create free account
hub / github.com/anomalyco/opencode / sqlString

Function sqlString

packages/stats/core/src/domain/inference.ts:256–258  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

254}
255
256function sqlString(value: string) {
257 return `'${value.replace(/'/g, "''")}'`
258}
259
260function statModelSql(model: string, providerModel: string) {
261 return `COALESCE(NULLIF(regexp_replace(CASE

Callers 2

buildStatsQueryFunction · 0.85
statProviderSqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected