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

Method appendArg

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

Source from the content-addressed store, hash-verified

127}
128
129func (d *mysql) appendArg(b *sql.Builder, v any) {
130 switch {
131 case !isPrimitive(v):
132 b.Argf("CAST(? AS JSON)", marshalArg(v))
133 default:
134 b.Arg(v)
135 }
136}
137
138type postgres struct{}
139

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