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

Method String

dialect/sql/builder.go:3392–3397  ·  view source on GitHub ↗

String builds a dialect-aware expression string from the given callback.

(f func(*Builder))

Source from the content-addressed store, hash-verified

3390
3391// String builds a dialect-aware expression string from the given callback.
3392func (d *DialectBuilder) String(f func(*Builder)) string {
3393 b := &Builder{}
3394 b.SetDialect(d.dialect)
3395 f(b)
3396 return b.String()
3397}
3398
3399// Expr builds a dialect-aware expression from the given callback.
3400func (d *DialectBuilder) Expr(f func(*Builder)) Querier {

Callers 1

ExprMethod · 0.95

Calls 2

SetDialectMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected