MCPcopy
hub / github.com/ent/ent / IsTrue

Function IsTrue

dialect/sql/builder.go:838–840  ·  view source on GitHub ↗

IsTrue appends a predicate that checks if the column value is truthy.

(col string)

Source from the content-addressed store, hash-verified

836
837// IsTrue appends a predicate that checks if the column value is truthy.
838func IsTrue(col string) *Predicate {
839 return P().IsTrue(col)
840}
841
842// IsTrue appends a predicate that checks if the column value is truthy.
843func (p *Predicate) IsTrue(col string) *Predicate {

Callers 2

EQMethod · 0.85
NEQMethod · 0.85

Calls 2

IsTrueMethod · 0.80
PFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…