Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Campaign) predicate.Campaign
- func ID(id pulid.ID) predicate.Campaign
- func IDEQ(id pulid.ID) predicate.Campaign
- func IDGT(id pulid.ID) predicate.Campaign
- func IDGTE(id pulid.ID) predicate.Campaign
- func IDIn(ids ...pulid.ID) predicate.Campaign
- func IDLT(id pulid.ID) predicate.Campaign
- func IDLTE(id pulid.ID) predicate.Campaign
- func IDNEQ(id pulid.ID) predicate.Campaign
- func IDNotIn(ids ...pulid.ID) predicate.Campaign
- func Name(v string) predicate.Campaign
- func NameContains(v string) predicate.Campaign
- func NameContainsFold(v string) predicate.Campaign
- func NameEQ(v string) predicate.Campaign
- func NameEqualFold(v string) predicate.Campaign
- func NameGT(v string) predicate.Campaign
- func NameGTE(v string) predicate.Campaign
- func NameHasPrefix(v string) predicate.Campaign
- func NameHasSuffix(v string) predicate.Campaign
- func NameIn(vs ...string) predicate.Campaign
- func NameLT(v string) predicate.Campaign
- func NameLTE(v string) predicate.Campaign
- func NameNEQ(v string) predicate.Campaign
- func NameNotIn(vs ...string) predicate.Campaign
- func Not(p predicate.Campaign) predicate.Campaign
- func Or(predicates ...predicate.Campaign) predicate.Campaign
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the campaign type in the database. Label = "campaign" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // Table holds the table name of the campaign in the database. Table = "campaigns" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for campaign fields.
View Source
var ( // DefaultID holds the default value on creation for the id field. DefaultID func() pulid.ID )
View Source
var ForeignKeys = []string{
"organization_campaigns",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Campaign type.
Functions ¶
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.