location

package
v0.0.0-...-6edac6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldStreet holds the string denoting the street field in the database.
	FieldStreet = "street"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldPostalcode holds the string denoting the postalcode field in the database.
	FieldPostalcode = "postalcode"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// FieldLocale holds the string denoting the locale field in the database.
	FieldLocale = "locale"
	// FieldCountry holds the string denoting the country field in the database.
	FieldCountry = "country"
	// FieldLongitude holds the string denoting the longitude field in the database.
	FieldLongitude = "longitude"
	// FieldLatitude holds the string denoting the latitude field in the database.
	FieldLatitude = "latitude"
	// FieldTimezone holds the string denoting the timezone field in the database.
	FieldTimezone = "timezone"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"

	// Table holds the table name of the location in the database.
	Table = "locations"
	// EventsTable is the table the holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "event_location"
)

Variables

Columns holds all SQL columns for location fields.

Functions

func And

func And(predicates ...predicate.Location) predicate.Location

And groups list of predicates with the AND operator between them.

func City

func City(v string) predicate.Location

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Location

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Location

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Location

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Location

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Location

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Location

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Location

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Location

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.Location

CityIn applies the In predicate on the "city" field.

func CityIsNil

func CityIsNil() predicate.Location

CityIsNil applies the IsNil predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Location

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Location

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Location

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.Location

CityNotIn applies the NotIn predicate on the "city" field.

func CityNotNil

func CityNotNil() predicate.Location

CityNotNil applies the NotNil predicate on the "city" field.

func Country

func Country(v string) predicate.Location

Country applies equality check predicate on the "country" field. It's identical to CountryEQ.

func CountryContains

func CountryContains(v string) predicate.Location

CountryContains applies the Contains predicate on the "country" field.

func CountryContainsFold

func CountryContainsFold(v string) predicate.Location

CountryContainsFold applies the ContainsFold predicate on the "country" field.

func CountryEQ

func CountryEQ(v string) predicate.Location

CountryEQ applies the EQ predicate on the "country" field.

func CountryEqualFold

func CountryEqualFold(v string) predicate.Location

CountryEqualFold applies the EqualFold predicate on the "country" field.

func CountryGT

func CountryGT(v string) predicate.Location

CountryGT applies the GT predicate on the "country" field.

func CountryGTE

func CountryGTE(v string) predicate.Location

CountryGTE applies the GTE predicate on the "country" field.

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.Location

CountryHasPrefix applies the HasPrefix predicate on the "country" field.

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.Location

CountryHasSuffix applies the HasSuffix predicate on the "country" field.

func CountryIn

func CountryIn(vs ...string) predicate.Location

CountryIn applies the In predicate on the "country" field.

func CountryIsNil

func CountryIsNil() predicate.Location

CountryIsNil applies the IsNil predicate on the "country" field.

func CountryLT

func CountryLT(v string) predicate.Location

CountryLT applies the LT predicate on the "country" field.

func CountryLTE

func CountryLTE(v string) predicate.Location

CountryLTE applies the LTE predicate on the "country" field.

func CountryNEQ

func CountryNEQ(v string) predicate.Location

CountryNEQ applies the NEQ predicate on the "country" field.

func CountryNotIn

func CountryNotIn(vs ...string) predicate.Location

CountryNotIn applies the NotIn predicate on the "country" field.

func CountryNotNil

func CountryNotNil() predicate.Location

CountryNotNil applies the NotNil predicate on the "country" field.

func HasEvents

func HasEvents() predicate.Location

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Location

HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Location

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Location

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Location

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Location

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Location

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Location

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Location

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Location

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Location

IDNotIn applies the NotIn predicate on the ID field.

func Latitude

func Latitude(v float64) predicate.Location

Latitude applies equality check predicate on the "latitude" field. It's identical to LatitudeEQ.

func LatitudeEQ

func LatitudeEQ(v float64) predicate.Location

LatitudeEQ applies the EQ predicate on the "latitude" field.

func LatitudeGT

func LatitudeGT(v float64) predicate.Location

LatitudeGT applies the GT predicate on the "latitude" field.

func LatitudeGTE

func LatitudeGTE(v float64) predicate.Location

LatitudeGTE applies the GTE predicate on the "latitude" field.

func LatitudeIn

func LatitudeIn(vs ...float64) predicate.Location

LatitudeIn applies the In predicate on the "latitude" field.

func LatitudeIsNil

func LatitudeIsNil() predicate.Location

LatitudeIsNil applies the IsNil predicate on the "latitude" field.

func LatitudeLT

func LatitudeLT(v float64) predicate.Location

LatitudeLT applies the LT predicate on the "latitude" field.

func LatitudeLTE

func LatitudeLTE(v float64) predicate.Location

LatitudeLTE applies the LTE predicate on the "latitude" field.

func LatitudeNEQ

func LatitudeNEQ(v float64) predicate.Location

LatitudeNEQ applies the NEQ predicate on the "latitude" field.

func LatitudeNotIn

func LatitudeNotIn(vs ...float64) predicate.Location

LatitudeNotIn applies the NotIn predicate on the "latitude" field.

func LatitudeNotNil

func LatitudeNotNil() predicate.Location

LatitudeNotNil applies the NotNil predicate on the "latitude" field.

func Locale

func Locale(v string) predicate.Location

Locale applies equality check predicate on the "locale" field. It's identical to LocaleEQ.

func LocaleContains

func LocaleContains(v string) predicate.Location

LocaleContains applies the Contains predicate on the "locale" field.

func LocaleContainsFold

func LocaleContainsFold(v string) predicate.Location

LocaleContainsFold applies the ContainsFold predicate on the "locale" field.

func LocaleEQ

func LocaleEQ(v string) predicate.Location

LocaleEQ applies the EQ predicate on the "locale" field.

func LocaleEqualFold

func LocaleEqualFold(v string) predicate.Location

LocaleEqualFold applies the EqualFold predicate on the "locale" field.

func LocaleGT

func LocaleGT(v string) predicate.Location

LocaleGT applies the GT predicate on the "locale" field.

func LocaleGTE

func LocaleGTE(v string) predicate.Location

LocaleGTE applies the GTE predicate on the "locale" field.

func LocaleHasPrefix

func LocaleHasPrefix(v string) predicate.Location

LocaleHasPrefix applies the HasPrefix predicate on the "locale" field.

func LocaleHasSuffix

func LocaleHasSuffix(v string) predicate.Location

LocaleHasSuffix applies the HasSuffix predicate on the "locale" field.

func LocaleIn

func LocaleIn(vs ...string) predicate.Location

LocaleIn applies the In predicate on the "locale" field.

func LocaleIsNil

func LocaleIsNil() predicate.Location

LocaleIsNil applies the IsNil predicate on the "locale" field.

func LocaleLT

func LocaleLT(v string) predicate.Location

LocaleLT applies the LT predicate on the "locale" field.

func LocaleLTE

func LocaleLTE(v string) predicate.Location

LocaleLTE applies the LTE predicate on the "locale" field.

func LocaleNEQ

func LocaleNEQ(v string) predicate.Location

LocaleNEQ applies the NEQ predicate on the "locale" field.

func LocaleNotIn

func LocaleNotIn(vs ...string) predicate.Location

LocaleNotIn applies the NotIn predicate on the "locale" field.

func LocaleNotNil

func LocaleNotNil() predicate.Location

LocaleNotNil applies the NotNil predicate on the "locale" field.

func Longitude

func Longitude(v float64) predicate.Location

Longitude applies equality check predicate on the "longitude" field. It's identical to LongitudeEQ.

func LongitudeEQ

func LongitudeEQ(v float64) predicate.Location

LongitudeEQ applies the EQ predicate on the "longitude" field.

func LongitudeGT

func LongitudeGT(v float64) predicate.Location

LongitudeGT applies the GT predicate on the "longitude" field.

func LongitudeGTE

func LongitudeGTE(v float64) predicate.Location

LongitudeGTE applies the GTE predicate on the "longitude" field.

func LongitudeIn

func LongitudeIn(vs ...float64) predicate.Location

LongitudeIn applies the In predicate on the "longitude" field.

func LongitudeIsNil

func LongitudeIsNil() predicate.Location

LongitudeIsNil applies the IsNil predicate on the "longitude" field.

func LongitudeLT

func LongitudeLT(v float64) predicate.Location

LongitudeLT applies the LT predicate on the "longitude" field.

func LongitudeLTE

func LongitudeLTE(v float64) predicate.Location

LongitudeLTE applies the LTE predicate on the "longitude" field.

func LongitudeNEQ

func LongitudeNEQ(v float64) predicate.Location

LongitudeNEQ applies the NEQ predicate on the "longitude" field.

func LongitudeNotIn

func LongitudeNotIn(vs ...float64) predicate.Location

LongitudeNotIn applies the NotIn predicate on the "longitude" field.

func LongitudeNotNil

func LongitudeNotNil() predicate.Location

LongitudeNotNil applies the NotNil predicate on the "longitude" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Location) predicate.Location

Or groups list of predicates with the OR operator between them.

func Postalcode

func Postalcode(v string) predicate.Location

Postalcode applies equality check predicate on the "postalcode" field. It's identical to PostalcodeEQ.

func PostalcodeContains

func PostalcodeContains(v string) predicate.Location

PostalcodeContains applies the Contains predicate on the "postalcode" field.

func PostalcodeContainsFold

func PostalcodeContainsFold(v string) predicate.Location

PostalcodeContainsFold applies the ContainsFold predicate on the "postalcode" field.

func PostalcodeEQ

func PostalcodeEQ(v string) predicate.Location

PostalcodeEQ applies the EQ predicate on the "postalcode" field.

func PostalcodeEqualFold

func PostalcodeEqualFold(v string) predicate.Location

PostalcodeEqualFold applies the EqualFold predicate on the "postalcode" field.

func PostalcodeGT

func PostalcodeGT(v string) predicate.Location

PostalcodeGT applies the GT predicate on the "postalcode" field.

func PostalcodeGTE

func PostalcodeGTE(v string) predicate.Location

PostalcodeGTE applies the GTE predicate on the "postalcode" field.

func PostalcodeHasPrefix

func PostalcodeHasPrefix(v string) predicate.Location

PostalcodeHasPrefix applies the HasPrefix predicate on the "postalcode" field.

func PostalcodeHasSuffix

func PostalcodeHasSuffix(v string) predicate.Location

PostalcodeHasSuffix applies the HasSuffix predicate on the "postalcode" field.

func PostalcodeIn

func PostalcodeIn(vs ...string) predicate.Location

PostalcodeIn applies the In predicate on the "postalcode" field.

func PostalcodeIsNil

func PostalcodeIsNil() predicate.Location

PostalcodeIsNil applies the IsNil predicate on the "postalcode" field.

func PostalcodeLT

func PostalcodeLT(v string) predicate.Location

PostalcodeLT applies the LT predicate on the "postalcode" field.

func PostalcodeLTE

func PostalcodeLTE(v string) predicate.Location

PostalcodeLTE applies the LTE predicate on the "postalcode" field.

func PostalcodeNEQ

func PostalcodeNEQ(v string) predicate.Location

PostalcodeNEQ applies the NEQ predicate on the "postalcode" field.

func PostalcodeNotIn

func PostalcodeNotIn(vs ...string) predicate.Location

PostalcodeNotIn applies the NotIn predicate on the "postalcode" field.

func PostalcodeNotNil

func PostalcodeNotNil() predicate.Location

PostalcodeNotNil applies the NotNil predicate on the "postalcode" field.

func Region

func Region(v string) predicate.Location

Region applies equality check predicate on the "region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.Location

RegionContains applies the Contains predicate on the "region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.Location

RegionContainsFold applies the ContainsFold predicate on the "region" field.

func RegionEQ

func RegionEQ(v string) predicate.Location

RegionEQ applies the EQ predicate on the "region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.Location

RegionEqualFold applies the EqualFold predicate on the "region" field.

func RegionGT

func RegionGT(v string) predicate.Location

RegionGT applies the GT predicate on the "region" field.

func RegionGTE

func RegionGTE(v string) predicate.Location

RegionGTE applies the GTE predicate on the "region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.Location

RegionHasPrefix applies the HasPrefix predicate on the "region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.Location

RegionHasSuffix applies the HasSuffix predicate on the "region" field.

func RegionIn

func RegionIn(vs ...string) predicate.Location

RegionIn applies the In predicate on the "region" field.

func RegionIsNil

func RegionIsNil() predicate.Location

RegionIsNil applies the IsNil predicate on the "region" field.

func RegionLT

func RegionLT(v string) predicate.Location

RegionLT applies the LT predicate on the "region" field.

func RegionLTE

func RegionLTE(v string) predicate.Location

RegionLTE applies the LTE predicate on the "region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.Location

RegionNEQ applies the NEQ predicate on the "region" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.Location

RegionNotIn applies the NotIn predicate on the "region" field.

func RegionNotNil

func RegionNotNil() predicate.Location

RegionNotNil applies the NotNil predicate on the "region" field.

func State

func State(v string) predicate.Location

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateContains

func StateContains(v string) predicate.Location

StateContains applies the Contains predicate on the "state" field.

func StateContainsFold

func StateContainsFold(v string) predicate.Location

StateContainsFold applies the ContainsFold predicate on the "state" field.

func StateEQ

func StateEQ(v string) predicate.Location

StateEQ applies the EQ predicate on the "state" field.

func StateEqualFold

func StateEqualFold(v string) predicate.Location

StateEqualFold applies the EqualFold predicate on the "state" field.

func StateGT

func StateGT(v string) predicate.Location

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v string) predicate.Location

StateGTE applies the GTE predicate on the "state" field.

func StateHasPrefix

func StateHasPrefix(v string) predicate.Location

StateHasPrefix applies the HasPrefix predicate on the "state" field.

func StateHasSuffix

func StateHasSuffix(v string) predicate.Location

StateHasSuffix applies the HasSuffix predicate on the "state" field.

func StateIn

func StateIn(vs ...string) predicate.Location

StateIn applies the In predicate on the "state" field.

func StateIsNil

func StateIsNil() predicate.Location

StateIsNil applies the IsNil predicate on the "state" field.

func StateLT

func StateLT(v string) predicate.Location

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v string) predicate.Location

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v string) predicate.Location

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...string) predicate.Location

StateNotIn applies the NotIn predicate on the "state" field.

func StateNotNil

func StateNotNil() predicate.Location

StateNotNil applies the NotNil predicate on the "state" field.

func Street

func Street(v string) predicate.Location

Street applies equality check predicate on the "street" field. It's identical to StreetEQ.

func StreetContains

func StreetContains(v string) predicate.Location

StreetContains applies the Contains predicate on the "street" field.

func StreetContainsFold

func StreetContainsFold(v string) predicate.Location

StreetContainsFold applies the ContainsFold predicate on the "street" field.

func StreetEQ

func StreetEQ(v string) predicate.Location

StreetEQ applies the EQ predicate on the "street" field.

func StreetEqualFold

func StreetEqualFold(v string) predicate.Location

StreetEqualFold applies the EqualFold predicate on the "street" field.

func StreetGT

func StreetGT(v string) predicate.Location

StreetGT applies the GT predicate on the "street" field.

func StreetGTE

func StreetGTE(v string) predicate.Location

StreetGTE applies the GTE predicate on the "street" field.

func StreetHasPrefix

func StreetHasPrefix(v string) predicate.Location

StreetHasPrefix applies the HasPrefix predicate on the "street" field.

func StreetHasSuffix

func StreetHasSuffix(v string) predicate.Location

StreetHasSuffix applies the HasSuffix predicate on the "street" field.

func StreetIn

func StreetIn(vs ...string) predicate.Location

StreetIn applies the In predicate on the "street" field.

func StreetIsNil

func StreetIsNil() predicate.Location

StreetIsNil applies the IsNil predicate on the "street" field.

func StreetLT

func StreetLT(v string) predicate.Location

StreetLT applies the LT predicate on the "street" field.

func StreetLTE

func StreetLTE(v string) predicate.Location

StreetLTE applies the LTE predicate on the "street" field.

func StreetNEQ

func StreetNEQ(v string) predicate.Location

StreetNEQ applies the NEQ predicate on the "street" field.

func StreetNotIn

func StreetNotIn(vs ...string) predicate.Location

StreetNotIn applies the NotIn predicate on the "street" field.

func StreetNotNil

func StreetNotNil() predicate.Location

StreetNotNil applies the NotNil predicate on the "street" field.

func Timezone

func Timezone(v string) predicate.Location

Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.

func TimezoneContains

func TimezoneContains(v string) predicate.Location

TimezoneContains applies the Contains predicate on the "timezone" field.

func TimezoneContainsFold

func TimezoneContainsFold(v string) predicate.Location

TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.

func TimezoneEQ

func TimezoneEQ(v string) predicate.Location

TimezoneEQ applies the EQ predicate on the "timezone" field.

func TimezoneEqualFold

func TimezoneEqualFold(v string) predicate.Location

TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.

func TimezoneGT

func TimezoneGT(v string) predicate.Location

TimezoneGT applies the GT predicate on the "timezone" field.

func TimezoneGTE

func TimezoneGTE(v string) predicate.Location

TimezoneGTE applies the GTE predicate on the "timezone" field.

func TimezoneHasPrefix

func TimezoneHasPrefix(v string) predicate.Location

TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.

func TimezoneHasSuffix

func TimezoneHasSuffix(v string) predicate.Location

TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.

func TimezoneIn

func TimezoneIn(vs ...string) predicate.Location

TimezoneIn applies the In predicate on the "timezone" field.

func TimezoneIsNil

func TimezoneIsNil() predicate.Location

TimezoneIsNil applies the IsNil predicate on the "timezone" field.

func TimezoneLT

func TimezoneLT(v string) predicate.Location

TimezoneLT applies the LT predicate on the "timezone" field.

func TimezoneLTE

func TimezoneLTE(v string) predicate.Location

TimezoneLTE applies the LTE predicate on the "timezone" field.

func TimezoneNEQ

func TimezoneNEQ(v string) predicate.Location

TimezoneNEQ applies the NEQ predicate on the "timezone" field.

func TimezoneNotIn

func TimezoneNotIn(vs ...string) predicate.Location

TimezoneNotIn applies the NotIn predicate on the "timezone" field.

func TimezoneNotNil

func TimezoneNotNil() predicate.Location

TimezoneNotNil applies the NotNil predicate on the "timezone" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL