MCPcopy Index your code
hub / github.com/ent/ent / appendArg

Method appendArg

dialect/sql/sqljson/dialect.go:66–73  ·  view source on GitHub ↗
(b *sql.Builder, v any)

Source from the content-addressed store, hash-verified

64}
65
66func (d *sqlite) appendArg(b *sql.Builder, v any) {
67 switch {
68 case !isPrimitive(v):
69 b.Argf("JSON(?)", marshalArg(v))
70 default:
71 b.Arg(v)
72 }
73}
74
75type mysql struct{}
76

Callers 1

AppendMethod · 0.95

Calls 4

isPrimitiveFunction · 0.85
marshalArgFunction · 0.85
ArgfMethod · 0.80
ArgMethod · 0.80

Tested by

no test coverage detected