MCPcopy
hub / github.com/ent/ent / args

Function args

dialect/sql/sqlgraph/entql.go:302–309  ·  view source on GitHub ↗
(b *sql.Builder, v *entql.Value)

Source from the content-addressed store, hash-verified

300}
301
302func args(b *sql.Builder, v *entql.Value) {
303 vs, ok := v.V.([]any)
304 if !ok {
305 b.Arg(v.V)
306 return
307 }
308 b.WriteByte('(').Args(vs...).WriteByte(')')
309}
310
311// expect panics if the condition is false.
312func expect(cond bool, msg string, args ...any) {

Callers 1

evalBinaryMethod · 0.85

Calls 3

ArgMethod · 0.80
WriteByteMethod · 0.80
ArgsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…