Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WithFields) predicate.WithFields
- func Existing(v string) predicate.WithFields
- func ExistingContains(v string) predicate.WithFields
- func ExistingContainsFold(v string) predicate.WithFields
- func ExistingEQ(v string) predicate.WithFields
- func ExistingEqualFold(v string) predicate.WithFields
- func ExistingGT(v string) predicate.WithFields
- func ExistingGTE(v string) predicate.WithFields
- func ExistingHasPrefix(v string) predicate.WithFields
- func ExistingHasSuffix(v string) predicate.WithFields
- func ExistingIn(vs ...string) predicate.WithFields
- func ExistingLT(v string) predicate.WithFields
- func ExistingLTE(v string) predicate.WithFields
- func ExistingNEQ(v string) predicate.WithFields
- func ExistingNotIn(vs ...string) predicate.WithFields
- func ID(id int) predicate.WithFields
- func IDEQ(id int) predicate.WithFields
- func IDGT(id int) predicate.WithFields
- func IDGTE(id int) predicate.WithFields
- func IDIn(ids ...int) predicate.WithFields
- func IDLT(id int) predicate.WithFields
- func IDLTE(id int) predicate.WithFields
- func IDNEQ(id int) predicate.WithFields
- func IDNotIn(ids ...int) predicate.WithFields
- func Not(p predicate.WithFields) predicate.WithFields
- func Or(predicates ...predicate.WithFields) predicate.WithFields
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the withfields type in the database. Label = "with_fields" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldExisting holds the string denoting the existing field in the database. FieldExisting = "existing" // Table holds the table name of the withfields in the database. Table = "with_fields" )
Variables ¶
var Columns = []string{ FieldID, FieldExisting, }
Columns holds all SQL columns for withfields fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WithFields) predicate.WithFields
And groups predicates with the AND operator between them.
func Existing ¶
func Existing(v string) predicate.WithFields
Existing applies equality check predicate on the "existing" field. It's identical to ExistingEQ.
func ExistingContains ¶
func ExistingContains(v string) predicate.WithFields
ExistingContains applies the Contains predicate on the "existing" field.
func ExistingContainsFold ¶
func ExistingContainsFold(v string) predicate.WithFields
ExistingContainsFold applies the ContainsFold predicate on the "existing" field.
func ExistingEQ ¶
func ExistingEQ(v string) predicate.WithFields
ExistingEQ applies the EQ predicate on the "existing" field.
func ExistingEqualFold ¶
func ExistingEqualFold(v string) predicate.WithFields
ExistingEqualFold applies the EqualFold predicate on the "existing" field.
func ExistingGT ¶
func ExistingGT(v string) predicate.WithFields
ExistingGT applies the GT predicate on the "existing" field.
func ExistingGTE ¶
func ExistingGTE(v string) predicate.WithFields
ExistingGTE applies the GTE predicate on the "existing" field.
func ExistingHasPrefix ¶
func ExistingHasPrefix(v string) predicate.WithFields
ExistingHasPrefix applies the HasPrefix predicate on the "existing" field.
func ExistingHasSuffix ¶
func ExistingHasSuffix(v string) predicate.WithFields
ExistingHasSuffix applies the HasSuffix predicate on the "existing" field.
func ExistingIn ¶
func ExistingIn(vs ...string) predicate.WithFields
ExistingIn applies the In predicate on the "existing" field.
func ExistingLT ¶
func ExistingLT(v string) predicate.WithFields
ExistingLT applies the LT predicate on the "existing" field.
func ExistingLTE ¶
func ExistingLTE(v string) predicate.WithFields
ExistingLTE applies the LTE predicate on the "existing" field.
func ExistingNEQ ¶
func ExistingNEQ(v string) predicate.WithFields
ExistingNEQ applies the NEQ predicate on the "existing" field.
func ExistingNotIn ¶
func ExistingNotIn(vs ...string) predicate.WithFields
ExistingNotIn applies the NotIn predicate on the "existing" field.
func IDGTE ¶
func IDGTE(id int) predicate.WithFields
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.WithFields
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.WithFields
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.WithFields
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.WithFields
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.WithFields) predicate.WithFields
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WithFields) predicate.WithFields
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.