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

Method IsTrue

dialect/sql/builder.go:843–847  ·  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

841
842// IsTrue appends a predicate that checks if the column value is truthy.
843func (p *Predicate) IsTrue(col string) *Predicate {
844 return p.Append(func(b *Builder) {
845 b.Ident(col)
846 })
847}
848
849// IsFalse appends a predicate that checks if the column value is falsey.
850func IsFalse(col string) *Predicate {

Callers 1

IsTrueFunction · 0.80

Calls 2

AppendMethod · 0.95
IdentMethod · 0.80

Tested by

no test coverage detected