MCPcopy Create free account
hub / github.com/rilldata/rill / EscapeStringValue

Function EscapeStringValue

runtime/drivers/dialect.go:388–390  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

386}
387
388func EscapeStringValue(s string) string {
389 return fmt.Sprintf("'%s'", strings.ReplaceAll(s, "'", "''"))
390}
391
392func CheckTypeCompatibility(f *runtimev1.StructType_Field) bool {
393 switch f.Type.Code {

Callers 7

getValExprFunction · 0.92
createDictionaryMethod · 0.92
safeSQLStringFunction · 0.92
safeSQLStringFunction · 0.92
getValExprFunction · 0.92
transformResultMethod · 0.92
SearchMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected