Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Street) predicate.Street
- func HasCity() predicate.Street
- func HasCityWith(preds ...predicate.City) predicate.Street
- func ID(id int) predicate.Street
- func IDEQ(id int) predicate.Street
- func IDGT(id int) predicate.Street
- func IDGTE(id int) predicate.Street
- func IDIn(ids ...int) predicate.Street
- func IDLT(id int) predicate.Street
- func IDLTE(id int) predicate.Street
- func IDNEQ(id int) predicate.Street
- func IDNotIn(ids ...int) predicate.Street
- func Name(v string) predicate.Street
- func NameContains(v string) predicate.Street
- func NameContainsFold(v string) predicate.Street
- func NameEQ(v string) predicate.Street
- func NameEqualFold(v string) predicate.Street
- func NameGT(v string) predicate.Street
- func NameGTE(v string) predicate.Street
- func NameHasPrefix(v string) predicate.Street
- func NameHasSuffix(v string) predicate.Street
- func NameIn(vs ...string) predicate.Street
- func NameLT(v string) predicate.Street
- func NameLTE(v string) predicate.Street
- func NameNEQ(v string) predicate.Street
- func NameNotIn(vs ...string) predicate.Street
- func Not(p predicate.Street) predicate.Street
- func Or(predicates ...predicate.Street) predicate.Street
Constants ¶
View Source
const ( // Label holds the string label denoting the street type in the database. Label = "street" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // EdgeCity holds the string denoting the city edge name in mutations. EdgeCity = "city" // Table holds the table name of the street in the database. Table = "streets" // CityTable is the table the holds the city relation/edge. CityTable = "streets" // CityInverseTable is the table name for the City entity. // It exists in this package in order to avoid circular dependency with the "city" package. CityInverseTable = "cities" // CityColumn is the table column denoting the city relation/edge. CityColumn = "city_streets" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for street fields.
View Source
var ForeignKeys = []string{
"city_streets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Street type.
Functions ¶
func HasCityWith ¶
HasCityWith applies the HasEdge predicate on the "city" 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.