Documentation ¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.Location
- func AddressContains(v string) predicate.Location
- func AddressContainsFold(v string) predicate.Location
- func AddressEQ(v string) predicate.Location
- func AddressEqualFold(v string) predicate.Location
- func AddressGT(v string) predicate.Location
- func AddressGTE(v string) predicate.Location
- func AddressHasPrefix(v string) predicate.Location
- func AddressHasSuffix(v string) predicate.Location
- func AddressIn(vs ...string) predicate.Location
- func AddressLT(v string) predicate.Location
- func AddressLTE(v string) predicate.Location
- func AddressNEQ(v string) predicate.Location
- func AddressNotIn(vs ...string) predicate.Location
- func And(predicates ...predicate.Location) predicate.Location
- func Description(v string) predicate.Location
- func DescriptionContains(v string) predicate.Location
- func DescriptionContainsFold(v string) predicate.Location
- func DescriptionEQ(v string) predicate.Location
- func DescriptionEqualFold(v string) predicate.Location
- func DescriptionGT(v string) predicate.Location
- func DescriptionGTE(v string) predicate.Location
- func DescriptionHasPrefix(v string) predicate.Location
- func DescriptionHasSuffix(v string) predicate.Location
- func DescriptionIn(vs ...string) predicate.Location
- func DescriptionLT(v string) predicate.Location
- func DescriptionLTE(v string) predicate.Location
- func DescriptionNEQ(v string) predicate.Location
- func DescriptionNotIn(vs ...string) predicate.Location
- func HasCompany() predicate.Location
- func HasCompanyWith(preds ...predicate.Company) predicate.Location
- func HasCountry() predicate.Location
- func HasCountryWith(preds ...predicate.Country) predicate.Location
- func ID(id uuid.UUID) predicate.Location
- func IDEQ(id uuid.UUID) predicate.Location
- func IDGT(id uuid.UUID) predicate.Location
- func IDGTE(id uuid.UUID) predicate.Location
- func IDIn(ids ...uuid.UUID) predicate.Location
- func IDLT(id uuid.UUID) predicate.Location
- func IDLTE(id uuid.UUID) predicate.Location
- func IDNEQ(id uuid.UUID) predicate.Location
- func IDNotIn(ids ...uuid.UUID) predicate.Location
- func Latitude(v float64) predicate.Location
- func LatitudeEQ(v float64) predicate.Location
- func LatitudeGT(v float64) predicate.Location
- func LatitudeGTE(v float64) predicate.Location
- func LatitudeIn(vs ...float64) predicate.Location
- func LatitudeLT(v float64) predicate.Location
- func LatitudeLTE(v float64) predicate.Location
- func LatitudeNEQ(v float64) predicate.Location
- func LatitudeNotIn(vs ...float64) predicate.Location
- func Longitude(v float64) predicate.Location
- func LongitudeEQ(v float64) predicate.Location
- func LongitudeGT(v float64) predicate.Location
- func LongitudeGTE(v float64) predicate.Location
- func LongitudeIn(vs ...float64) predicate.Location
- func LongitudeLT(v float64) predicate.Location
- func LongitudeLTE(v float64) predicate.Location
- func LongitudeNEQ(v float64) predicate.Location
- func LongitudeNotIn(vs ...float64) predicate.Location
- func Not(p predicate.Location) predicate.Location
- func Or(predicates ...predicate.Location) predicate.Location
- func Postcode(v string) predicate.Location
- func PostcodeContains(v string) predicate.Location
- func PostcodeContainsFold(v string) predicate.Location
- func PostcodeEQ(v string) predicate.Location
- func PostcodeEqualFold(v string) predicate.Location
- func PostcodeGT(v string) predicate.Location
- func PostcodeGTE(v string) predicate.Location
- func PostcodeHasPrefix(v string) predicate.Location
- func PostcodeHasSuffix(v string) predicate.Location
- func PostcodeIn(vs ...string) predicate.Location
- func PostcodeLT(v string) predicate.Location
- func PostcodeLTE(v string) predicate.Location
- func PostcodeNEQ(v string) predicate.Location
- func PostcodeNotIn(vs ...string) predicate.Location
- func State(v string) predicate.Location
- func StateContains(v string) predicate.Location
- func StateContainsFold(v string) predicate.Location
- func StateEQ(v string) predicate.Location
- func StateEqualFold(v string) predicate.Location
- func StateGT(v string) predicate.Location
- func StateGTE(v string) predicate.Location
- func StateHasPrefix(v string) predicate.Location
- func StateHasSuffix(v string) predicate.Location
- func StateIn(vs ...string) predicate.Location
- func StateLT(v string) predicate.Location
- func StateLTE(v string) predicate.Location
- func StateNEQ(v string) predicate.Location
- func StateNotIn(vs ...string) predicate.Location
- func StreetName(v string) predicate.Location
- func StreetNameContains(v string) predicate.Location
- func StreetNameContainsFold(v string) predicate.Location
- func StreetNameEQ(v string) predicate.Location
- func StreetNameEqualFold(v string) predicate.Location
- func StreetNameGT(v string) predicate.Location
- func StreetNameGTE(v string) predicate.Location
- func StreetNameHasPrefix(v string) predicate.Location
- func StreetNameHasSuffix(v string) predicate.Location
- func StreetNameIn(vs ...string) predicate.Location
- func StreetNameLT(v string) predicate.Location
- func StreetNameLTE(v string) predicate.Location
- func StreetNameNEQ(v string) predicate.Location
- func StreetNameNotIn(vs ...string) predicate.Location
- func StreetType(v string) predicate.Location
- func StreetTypeContains(v string) predicate.Location
- func StreetTypeContainsFold(v string) predicate.Location
- func StreetTypeEQ(v string) predicate.Location
- func StreetTypeEqualFold(v string) predicate.Location
- func StreetTypeGT(v string) predicate.Location
- func StreetTypeGTE(v string) predicate.Location
- func StreetTypeHasPrefix(v string) predicate.Location
- func StreetTypeHasSuffix(v string) predicate.Location
- func StreetTypeIn(vs ...string) predicate.Location
- func StreetTypeLT(v string) predicate.Location
- func StreetTypeLTE(v string) predicate.Location
- func StreetTypeNEQ(v string) predicate.Location
- func StreetTypeNotIn(vs ...string) predicate.Location
- func Suburb(v string) predicate.Location
- func SuburbContains(v string) predicate.Location
- func SuburbContainsFold(v string) predicate.Location
- func SuburbEQ(v string) predicate.Location
- func SuburbEqualFold(v string) predicate.Location
- func SuburbGT(v string) predicate.Location
- func SuburbGTE(v string) predicate.Location
- func SuburbHasPrefix(v string) predicate.Location
- func SuburbHasSuffix(v string) predicate.Location
- func SuburbIn(vs ...string) predicate.Location
- func SuburbLT(v string) predicate.Location
- func SuburbLTE(v string) predicate.Location
- func SuburbNEQ(v string) predicate.Location
- func SuburbNotIn(vs ...string) predicate.Location
- func Title(v string) predicate.Location
- func TitleContains(v string) predicate.Location
- func TitleContainsFold(v string) predicate.Location
- func TitleEQ(v string) predicate.Location
- func TitleEqualFold(v string) predicate.Location
- func TitleGT(v string) predicate.Location
- func TitleGTE(v string) predicate.Location
- func TitleHasPrefix(v string) predicate.Location
- func TitleHasSuffix(v string) predicate.Location
- func TitleIn(vs ...string) predicate.Location
- func TitleLT(v string) predicate.Location
- func TitleLTE(v string) predicate.Location
- func TitleNEQ(v string) predicate.Location
- func TitleNotIn(vs ...string) predicate.Location
- func Type(v string) predicate.Location
- func TypeContains(v string) predicate.Location
- func TypeContainsFold(v string) predicate.Location
- func TypeEQ(v string) predicate.Location
- func TypeEqualFold(v string) predicate.Location
- func TypeGT(v string) predicate.Location
- func TypeGTE(v string) predicate.Location
- func TypeHasPrefix(v string) predicate.Location
- func TypeHasSuffix(v string) predicate.Location
- func TypeIn(vs ...string) predicate.Location
- func TypeLT(v string) predicate.Location
- func TypeLTE(v string) predicate.Location
- func TypeNEQ(v string) predicate.Location
- func TypeNotIn(vs ...string) predicate.Location
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the location type in the database. Label = "location" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldLatitude holds the string denoting the latitude field in the database. FieldLatitude = "latitude" // FieldLongitude holds the string denoting the longitude field in the database. FieldLongitude = "longitude" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldPostcode holds the string denoting the postcode field in the database. FieldPostcode = "postcode" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldSuburb holds the string denoting the suburb field in the database. FieldSuburb = "suburb" // FieldStreetType holds the string denoting the street_type field in the database. FieldStreetType = "street_type" // FieldStreetName holds the string denoting the street_name field in the database. FieldStreetName = "street_name" // EdgeCompany holds the string denoting the company edge name in mutations. EdgeCompany = "company" // EdgeCountry holds the string denoting the country edge name in mutations. EdgeCountry = "country" // Table holds the table name of the location in the database. Table = "locations" // CompanyTable is the table that holds the company relation/edge. CompanyTable = "locations" // CompanyInverseTable is the table name for the Company entity. // It exists in this package in order to avoid circular dependency with the "company" package. CompanyInverseTable = "companies" // CompanyColumn is the table column denoting the company relation/edge. CompanyColumn = "company_locations" // CountryTable is the table that holds the country relation/edge. CountryTable = "locations" // CountryInverseTable is the table name for the Country entity. // It exists in this package in order to avoid circular dependency with the "country" package. CountryInverseTable = "countries" // CountryColumn is the table column denoting the country relation/edge. CountryColumn = "country_locations" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // AddressValidator is a validator for the "address" field. It is called by the builders before save. AddressValidator func(string) error // PostcodeValidator is a validator for the "postcode" field. It is called by the builders before save. PostcodeValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // StateValidator is a validator for the "state" field. It is called by the builders before save. StateValidator func(string) error // SuburbValidator is a validator for the "suburb" field. It is called by the builders before save. SuburbValidator func(string) error // StreetTypeValidator is a validator for the "street_type" field. It is called by the builders before save. StreetTypeValidator func(string) error // StreetNameValidator is a validator for the "street_name" field. It is called by the builders before save. StreetNameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldLatitude, FieldLongitude, FieldAddress, FieldPostcode, FieldType, FieldState, FieldSuburb, FieldStreetType, FieldStreetName, }
Columns holds all SQL columns for location fields.
var ForeignKeys = []string{
"company_locations",
"country_locations",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "locations" table and are not defined as standalone fields in the schema.
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasCompany ¶
HasCompany applies the HasEdge predicate on the "company" edge.
func HasCompanyWith ¶
HasCompanyWith applies the HasEdge predicate on the "company" edge with a given conditions (other predicates).
func HasCountry ¶
HasCountry applies the HasEdge predicate on the "country" edge.
func HasCountryWith ¶
HasCountryWith applies the HasEdge predicate on the "country" edge with a given conditions (other predicates).
func Latitude ¶
Latitude applies equality check predicate on the "latitude" field. It's identical to LatitudeEQ.
func LatitudeEQ ¶
LatitudeEQ applies the EQ predicate on the "latitude" field.
func LatitudeGT ¶
LatitudeGT applies the GT predicate on the "latitude" field.
func LatitudeGTE ¶
LatitudeGTE applies the GTE predicate on the "latitude" field.
func LatitudeIn ¶
LatitudeIn applies the In predicate on the "latitude" field.
func LatitudeLT ¶
LatitudeLT applies the LT predicate on the "latitude" field.
func LatitudeLTE ¶
LatitudeLTE applies the LTE predicate on the "latitude" field.
func LatitudeNEQ ¶
LatitudeNEQ applies the NEQ predicate on the "latitude" field.
func LatitudeNotIn ¶
LatitudeNotIn applies the NotIn predicate on the "latitude" field.
func Longitude ¶
Longitude applies equality check predicate on the "longitude" field. It's identical to LongitudeEQ.
func LongitudeEQ ¶
LongitudeEQ applies the EQ predicate on the "longitude" field.
func LongitudeGT ¶
LongitudeGT applies the GT predicate on the "longitude" field.
func LongitudeGTE ¶
LongitudeGTE applies the GTE predicate on the "longitude" field.
func LongitudeIn ¶
LongitudeIn applies the In predicate on the "longitude" field.
func LongitudeLT ¶
LongitudeLT applies the LT predicate on the "longitude" field.
func LongitudeLTE ¶
LongitudeLTE applies the LTE predicate on the "longitude" field.
func LongitudeNEQ ¶
LongitudeNEQ applies the NEQ predicate on the "longitude" field.
func LongitudeNotIn ¶
LongitudeNotIn applies the NotIn predicate on the "longitude" field.
func Postcode ¶
Postcode applies equality check predicate on the "postcode" field. It's identical to PostcodeEQ.
func PostcodeContains ¶
PostcodeContains applies the Contains predicate on the "postcode" field.
func PostcodeContainsFold ¶
PostcodeContainsFold applies the ContainsFold predicate on the "postcode" field.
func PostcodeEQ ¶
PostcodeEQ applies the EQ predicate on the "postcode" field.
func PostcodeEqualFold ¶
PostcodeEqualFold applies the EqualFold predicate on the "postcode" field.
func PostcodeGT ¶
PostcodeGT applies the GT predicate on the "postcode" field.
func PostcodeGTE ¶
PostcodeGTE applies the GTE predicate on the "postcode" field.
func PostcodeHasPrefix ¶
PostcodeHasPrefix applies the HasPrefix predicate on the "postcode" field.
func PostcodeHasSuffix ¶
PostcodeHasSuffix applies the HasSuffix predicate on the "postcode" field.
func PostcodeIn ¶
PostcodeIn applies the In predicate on the "postcode" field.
func PostcodeLT ¶
PostcodeLT applies the LT predicate on the "postcode" field.
func PostcodeLTE ¶
PostcodeLTE applies the LTE predicate on the "postcode" field.
func PostcodeNEQ ¶
PostcodeNEQ applies the NEQ predicate on the "postcode" field.
func PostcodeNotIn ¶
PostcodeNotIn applies the NotIn predicate on the "postcode" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateContains ¶
StateContains applies the Contains predicate on the "state" field.
func StateContainsFold ¶
StateContainsFold applies the ContainsFold predicate on the "state" field.
func StateEqualFold ¶
StateEqualFold applies the EqualFold predicate on the "state" field.
func StateHasPrefix ¶
StateHasPrefix applies the HasPrefix predicate on the "state" field.
func StateHasSuffix ¶
StateHasSuffix applies the HasSuffix predicate on the "state" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StreetName ¶
StreetName applies equality check predicate on the "street_name" field. It's identical to StreetNameEQ.
func StreetNameContains ¶
StreetNameContains applies the Contains predicate on the "street_name" field.
func StreetNameContainsFold ¶
StreetNameContainsFold applies the ContainsFold predicate on the "street_name" field.
func StreetNameEQ ¶
StreetNameEQ applies the EQ predicate on the "street_name" field.
func StreetNameEqualFold ¶
StreetNameEqualFold applies the EqualFold predicate on the "street_name" field.
func StreetNameGT ¶
StreetNameGT applies the GT predicate on the "street_name" field.
func StreetNameGTE ¶
StreetNameGTE applies the GTE predicate on the "street_name" field.
func StreetNameHasPrefix ¶
StreetNameHasPrefix applies the HasPrefix predicate on the "street_name" field.
func StreetNameHasSuffix ¶
StreetNameHasSuffix applies the HasSuffix predicate on the "street_name" field.
func StreetNameIn ¶
StreetNameIn applies the In predicate on the "street_name" field.
func StreetNameLT ¶
StreetNameLT applies the LT predicate on the "street_name" field.
func StreetNameLTE ¶
StreetNameLTE applies the LTE predicate on the "street_name" field.
func StreetNameNEQ ¶
StreetNameNEQ applies the NEQ predicate on the "street_name" field.
func StreetNameNotIn ¶
StreetNameNotIn applies the NotIn predicate on the "street_name" field.
func StreetType ¶
StreetType applies equality check predicate on the "street_type" field. It's identical to StreetTypeEQ.
func StreetTypeContains ¶
StreetTypeContains applies the Contains predicate on the "street_type" field.
func StreetTypeContainsFold ¶
StreetTypeContainsFold applies the ContainsFold predicate on the "street_type" field.
func StreetTypeEQ ¶
StreetTypeEQ applies the EQ predicate on the "street_type" field.
func StreetTypeEqualFold ¶
StreetTypeEqualFold applies the EqualFold predicate on the "street_type" field.
func StreetTypeGT ¶
StreetTypeGT applies the GT predicate on the "street_type" field.
func StreetTypeGTE ¶
StreetTypeGTE applies the GTE predicate on the "street_type" field.
func StreetTypeHasPrefix ¶
StreetTypeHasPrefix applies the HasPrefix predicate on the "street_type" field.
func StreetTypeHasSuffix ¶
StreetTypeHasSuffix applies the HasSuffix predicate on the "street_type" field.
func StreetTypeIn ¶
StreetTypeIn applies the In predicate on the "street_type" field.
func StreetTypeLT ¶
StreetTypeLT applies the LT predicate on the "street_type" field.
func StreetTypeLTE ¶
StreetTypeLTE applies the LTE predicate on the "street_type" field.
func StreetTypeNEQ ¶
StreetTypeNEQ applies the NEQ predicate on the "street_type" field.
func StreetTypeNotIn ¶
StreetTypeNotIn applies the NotIn predicate on the "street_type" field.
func Suburb ¶
Suburb applies equality check predicate on the "suburb" field. It's identical to SuburbEQ.
func SuburbContains ¶
SuburbContains applies the Contains predicate on the "suburb" field.
func SuburbContainsFold ¶
SuburbContainsFold applies the ContainsFold predicate on the "suburb" field.
func SuburbEqualFold ¶
SuburbEqualFold applies the EqualFold predicate on the "suburb" field.
func SuburbHasPrefix ¶
SuburbHasPrefix applies the HasPrefix predicate on the "suburb" field.
func SuburbHasSuffix ¶
SuburbHasSuffix applies the HasSuffix predicate on the "suburb" field.
func SuburbNotIn ¶
SuburbNotIn applies the NotIn predicate on the "suburb" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.