MCPcopy
hub / github.com/ent/ent / IsFalse

Method IsFalse

dialect/sql/builder.go:855–859  ·  view source on GitHub ↗

IsFalse appends a predicate that checks if the column value is falsey.

(col string)

Source from the content-addressed store, hash-verified

853
854// IsFalse appends a predicate that checks if the column value is falsey.
855func (p *Predicate) IsFalse(col string) *Predicate {
856 return p.Append(func(b *Builder) {
857 b.WriteString("NOT ").Ident(col)
858 })
859}
860
861// EQ returns a "=" predicate.
862func EQ(col string, value any) *Predicate {

Callers 1

IsFalseFunction · 0.80

Calls 3

AppendMethod · 0.95
IdentMethod · 0.80
WriteStringMethod · 0.80

Tested by

no test coverage detected