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
- func ValidColumn(column string) bool
Constants ¶
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 field 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 ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for street fields.
var ForeignKeys = []string{
"city_streets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "streets" table and are not defined as standalone fields in the schema.
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.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.