Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Street) predicate.Street
- func HasAdresses() predicate.Street
- func HasAdressesWith(preds ...predicate.AddressPlace) predicate.Street
- func HasCities() predicate.Street
- func HasCitiesWith(preds ...predicate.City) predicate.Street
- func ID(id int32) predicate.Street
- func IDEQ(id int32) predicate.Street
- func IDGT(id int32) predicate.Street
- func IDGTE(id int32) predicate.Street
- func IDIn(ids ...int32) predicate.Street
- func IDLT(id int32) predicate.Street
- func IDLTE(id int32) predicate.Street
- func IDNEQ(id int32) predicate.Street
- func IDNotIn(ids ...int32) 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" // EdgeCities holds the string denoting the cities edge name in mutations. EdgeCities = "cities" // EdgeAdresses holds the string denoting the adresses edge name in mutations. EdgeAdresses = "adresses" // Table holds the table name of the street in the database. Table = "streets" // CitiesTable is the table that holds the cities relation/edge. The primary key declared below. CitiesTable = "street_cities" // CitiesInverseTable is the table name for the City entity. // It exists in this package in order to avoid circular dependency with the "city" package. CitiesInverseTable = "cities" // AdressesTable is the table that holds the adresses relation/edge. The primary key declared below. AdressesTable = "address_place_streets" // AdressesInverseTable is the table name for the AddressPlace entity. // It exists in this package in order to avoid circular dependency with the "addressplace" package. AdressesInverseTable = "address_places" )
Variables ¶
var ( // CitiesPrimaryKey and CitiesColumn2 are the table columns denoting the // primary key for the cities relation (M2M). CitiesPrimaryKey = []string{"street_id", "city_id"} // AdressesPrimaryKey and AdressesColumn2 are the table columns denoting the // primary key for the adresses relation (M2M). AdressesPrimaryKey = []string{"address_place_id", "street_id"} )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for street fields.
Functions ¶
func HasAdresses ¶
HasAdresses applies the HasEdge predicate on the "adresses" edge.
func HasAdressesWith ¶
func HasAdressesWith(preds ...predicate.AddressPlace) predicate.Street
HasAdressesWith applies the HasEdge predicate on the "adresses" edge with a given conditions (other predicates).
func HasCitiesWith ¶
HasCitiesWith applies the HasEdge predicate on the "cities" 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.