Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.City) predicate.City
- func HasStreets() predicate.City
- func HasStreetsWith(preds ...predicate.Street) predicate.City
- func ID(id int) predicate.City
- func IDEQ(id int) predicate.City
- func IDGT(id int) predicate.City
- func IDGTE(id int) predicate.City
- func IDIn(ids ...int) predicate.City
- func IDLT(id int) predicate.City
- func IDLTE(id int) predicate.City
- func IDNEQ(id int) predicate.City
- func IDNotIn(ids ...int) predicate.City
- func Name(v string) predicate.City
- func NameContains(v string) predicate.City
- func NameContainsFold(v string) predicate.City
- func NameEQ(v string) predicate.City
- func NameEqualFold(v string) predicate.City
- func NameGT(v string) predicate.City
- func NameGTE(v string) predicate.City
- func NameHasPrefix(v string) predicate.City
- func NameHasSuffix(v string) predicate.City
- func NameIn(vs ...string) predicate.City
- func NameLT(v string) predicate.City
- func NameLTE(v string) predicate.City
- func NameNEQ(v string) predicate.City
- func NameNotIn(vs ...string) predicate.City
- func Not(p predicate.City) predicate.City
- func Or(predicates ...predicate.City) predicate.City
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the city type in the database. Label = "city" // 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" // EdgeStreets holds the string denoting the streets edge name in mutations. EdgeStreets = "streets" // Table holds the table name of the city in the database. Table = "cities" // StreetsTable is the table the holds the streets relation/edge. StreetsTable = "streets" // StreetsInverseTable is the table name for the Street entity. // It exists in this package in order to avoid circular dependency with the "street" package. StreetsInverseTable = "streets" // StreetsColumn is the table column denoting the streets relation/edge. StreetsColumn = "city_streets" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for city fields.
Functions ¶
func HasStreets ¶
HasStreets applies the HasEdge predicate on the "streets" edge.
func HasStreetsWith ¶
HasStreetsWith applies the HasEdge predicate on the "streets" edge with a given conditions (other predicates).
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 ¶ added in v0.4.3
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.