MCPcopy
hub / github.com/dosco/graphjin / RenderValVar

Method RenderValVar

core/internal/dialect/sqlite.go:365–373  ·  view source on GitHub ↗
(ctx Context, ex *qcode.Exp, val string)

Source from the content-addressed store, hash-verified

363}
364
365func (d *SQLiteDialect) RenderValVar(ctx Context, ex *qcode.Exp, val string) bool {
366 if ex.Op == qcode.OpIn || ex.Op == qcode.OpNotIn {
367 ctx.WriteString(`(SELECT value FROM json_each(`)
368 ctx.AddParam(Param{Name: ex.Right.Val, Type: "json"})
369 ctx.WriteString(`))`)
370 return true
371 }
372 return false
373}
374
375func (d *SQLiteDialect) RenderLiteral(ctx Context, val string, valType qcode.ValType) {
376 switch valType {

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.65
AddParamMethod · 0.65

Tested by

no test coverage detected