Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Category) predicate.Category
- func HasClubs() predicate.Category
- func HasClubsWith(preds ...predicate.Club) predicate.Category
- func ID(id string) predicate.Category
- func IDEQ(id string) predicate.Category
- func IDGT(id string) predicate.Category
- func IDGTE(id string) predicate.Category
- func IDIn(ids ...string) predicate.Category
- func IDLT(id string) predicate.Category
- func IDLTE(id string) predicate.Category
- func IDNEQ(id string) predicate.Category
- func IDNotIn(ids ...string) predicate.Category
- func Not(p predicate.Category) predicate.Category
- func Or(predicates ...predicate.Category) predicate.Category
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the category type in the database. Label = "category" // FieldID holds the string denoting the id field in the database. FieldID = "name" // EdgeClubs holds the string denoting the clubs edge name in mutations. EdgeClubs = "clubs" // ClubFieldID holds the string denoting the ID field of the Club. ClubFieldID = "id" // Table holds the table name of the category in the database. Table = "categories" // ClubsTable is the table the holds the clubs relation/edge. The primary key declared below. ClubsTable = "category_clubs" // ClubsInverseTable is the table name for the Club entity. // It exists in this package in order to avoid circular dependency with the "club" package. ClubsInverseTable = "clubs" )
Variables ¶
View Source
var ( // ClubsPrimaryKey and ClubsColumn2 are the table columns denoting the // primary key for the clubs relation (M2M). ClubsPrimaryKey = []string{"category_id", "club_id"} )
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for category fields.
Functions ¶
func HasClubsWith ¶
HasClubsWith applies the HasEdge predicate on the "clubs" edge with a given conditions (other predicates).
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.