location

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 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"
	// FieldBusinessUnitID holds the string denoting the business_unit_id field in the database.
	FieldBusinessUnitID = "business_unit_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldLocationCategoryID holds the string denoting the location_category_id field in the database.
	FieldLocationCategoryID = "location_category_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAddressLine1 holds the string denoting the address_line_1 field in the database.
	FieldAddressLine1 = "address_line_1"
	// FieldAddressLine2 holds the string denoting the address_line_2 field in the database.
	FieldAddressLine2 = "address_line_2"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldStateID holds the string denoting the state_id field in the database.
	FieldStateID = "state_id"
	// FieldPostalCode holds the string denoting the postal_code field in the database.
	FieldPostalCode = "postal_code"
	// 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"
	// FieldPlaceID holds the string denoting the place_id field in the database.
	FieldPlaceID = "place_id"
	// FieldIsGeocoded holds the string denoting the is_geocoded field in the database.
	FieldIsGeocoded = "is_geocoded"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeLocationCategory holds the string denoting the location_category edge name in mutations.
	EdgeLocationCategory = "location_category"
	// EdgeState holds the string denoting the state edge name in mutations.
	EdgeState = "state"
	// EdgeComments holds the string denoting the comments edge name in mutations.
	EdgeComments = "comments"
	// EdgeContacts holds the string denoting the contacts edge name in mutations.
	EdgeContacts = "contacts"
	// Table holds the table name of the location in the database.
	Table = "locations"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "locations"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "locations"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// LocationCategoryTable is the table that holds the location_category relation/edge.
	LocationCategoryTable = "locations"
	// LocationCategoryInverseTable is the table name for the LocationCategory entity.
	// It exists in this package in order to avoid circular dependency with the "locationcategory" package.
	LocationCategoryInverseTable = "location_categories"
	// LocationCategoryColumn is the table column denoting the location_category relation/edge.
	LocationCategoryColumn = "location_category_id"
	// StateTable is the table that holds the state relation/edge.
	StateTable = "locations"
	// StateInverseTable is the table name for the UsState entity.
	// It exists in this package in order to avoid circular dependency with the "usstate" package.
	StateInverseTable = "us_states"
	// StateColumn is the table column denoting the state relation/edge.
	StateColumn = "state_id"
	// CommentsTable is the table that holds the comments relation/edge.
	CommentsTable = "location_comments"
	// CommentsInverseTable is the table name for the LocationComment entity.
	// It exists in this package in order to avoid circular dependency with the "locationcomment" package.
	CommentsInverseTable = "location_comments"
	// CommentsColumn is the table column denoting the comments relation/edge.
	CommentsColumn = "location_id"
	// ContactsTable is the table that holds the contacts relation/edge.
	ContactsTable = "location_contacts"
	// ContactsInverseTable is the table name for the LocationContact entity.
	// It exists in this package in order to avoid circular dependency with the "locationcontact" package.
	ContactsInverseTable = "location_contacts"
	// ContactsColumn is the table column denoting the contacts relation/edge.
	ContactsColumn = "location_id"
)
View Source
const DefaultStatus = StatusA

StatusA is the default value of the Status enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// AddressLine1Validator is a validator for the "address_line_1" field. It is called by the builders before save.
	AddressLine1Validator func(string) error
	// AddressLine2Validator is a validator for the "address_line_2" field. It is called by the builders before save.
	AddressLine2Validator func(string) error
	// CityValidator is a validator for the "city" field. It is called by the builders before save.
	CityValidator func(string) error
	// PostalCodeValidator is a validator for the "postal_code" field. It is called by the builders before save.
	PostalCodeValidator func(string) error
	// PlaceIDValidator is a validator for the "place_id" field. It is called by the builders before save.
	PlaceIDValidator func(string) error
	// DefaultIsGeocoded holds the default value on creation for the "is_geocoded" field.
	DefaultIsGeocoded bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for location fields.

Functions

func AddressLine1

func AddressLine1(v string) predicate.Location

AddressLine1 applies equality check predicate on the "address_line_1" field. It's identical to AddressLine1EQ.

func AddressLine1Contains

func AddressLine1Contains(v string) predicate.Location

AddressLine1Contains applies the Contains predicate on the "address_line_1" field.

func AddressLine1ContainsFold

func AddressLine1ContainsFold(v string) predicate.Location

AddressLine1ContainsFold applies the ContainsFold predicate on the "address_line_1" field.

func AddressLine1EQ

func AddressLine1EQ(v string) predicate.Location

AddressLine1EQ applies the EQ predicate on the "address_line_1" field.

func AddressLine1EqualFold

func AddressLine1EqualFold(v string) predicate.Location

AddressLine1EqualFold applies the EqualFold predicate on the "address_line_1" field.

func AddressLine1GT

func AddressLine1GT(v string) predicate.Location

AddressLine1GT applies the GT predicate on the "address_line_1" field.

func AddressLine1GTE

func AddressLine1GTE(v string) predicate.Location

AddressLine1GTE applies the GTE predicate on the "address_line_1" field.

func AddressLine1HasPrefix

func AddressLine1HasPrefix(v string) predicate.Location

AddressLine1HasPrefix applies the HasPrefix predicate on the "address_line_1" field.

func AddressLine1HasSuffix

func AddressLine1HasSuffix(v string) predicate.Location

AddressLine1HasSuffix applies the HasSuffix predicate on the "address_line_1" field.

func AddressLine1In

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

AddressLine1In applies the In predicate on the "address_line_1" field.

func AddressLine1LT

func AddressLine1LT(v string) predicate.Location

AddressLine1LT applies the LT predicate on the "address_line_1" field.

func AddressLine1LTE

func AddressLine1LTE(v string) predicate.Location

AddressLine1LTE applies the LTE predicate on the "address_line_1" field.

func AddressLine1NEQ

func AddressLine1NEQ(v string) predicate.Location

AddressLine1NEQ applies the NEQ predicate on the "address_line_1" field.

func AddressLine1NotIn

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

AddressLine1NotIn applies the NotIn predicate on the "address_line_1" field.

func AddressLine2

func AddressLine2(v string) predicate.Location

AddressLine2 applies equality check predicate on the "address_line_2" field. It's identical to AddressLine2EQ.

func AddressLine2Contains

func AddressLine2Contains(v string) predicate.Location

AddressLine2Contains applies the Contains predicate on the "address_line_2" field.

func AddressLine2ContainsFold

func AddressLine2ContainsFold(v string) predicate.Location

AddressLine2ContainsFold applies the ContainsFold predicate on the "address_line_2" field.

func AddressLine2EQ

func AddressLine2EQ(v string) predicate.Location

AddressLine2EQ applies the EQ predicate on the "address_line_2" field.

func AddressLine2EqualFold

func AddressLine2EqualFold(v string) predicate.Location

AddressLine2EqualFold applies the EqualFold predicate on the "address_line_2" field.

func AddressLine2GT

func AddressLine2GT(v string) predicate.Location

AddressLine2GT applies the GT predicate on the "address_line_2" field.

func AddressLine2GTE

func AddressLine2GTE(v string) predicate.Location

AddressLine2GTE applies the GTE predicate on the "address_line_2" field.

func AddressLine2HasPrefix

func AddressLine2HasPrefix(v string) predicate.Location

AddressLine2HasPrefix applies the HasPrefix predicate on the "address_line_2" field.

func AddressLine2HasSuffix

func AddressLine2HasSuffix(v string) predicate.Location

AddressLine2HasSuffix applies the HasSuffix predicate on the "address_line_2" field.

func AddressLine2In

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

AddressLine2In applies the In predicate on the "address_line_2" field.

func AddressLine2IsNil

func AddressLine2IsNil() predicate.Location

AddressLine2IsNil applies the IsNil predicate on the "address_line_2" field.

func AddressLine2LT

func AddressLine2LT(v string) predicate.Location

AddressLine2LT applies the LT predicate on the "address_line_2" field.

func AddressLine2LTE

func AddressLine2LTE(v string) predicate.Location

AddressLine2LTE applies the LTE predicate on the "address_line_2" field.

func AddressLine2NEQ

func AddressLine2NEQ(v string) predicate.Location

AddressLine2NEQ applies the NEQ predicate on the "address_line_2" field.

func AddressLine2NotIn

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

AddressLine2NotIn applies the NotIn predicate on the "address_line_2" field.

func AddressLine2NotNil

func AddressLine2NotNil() predicate.Location

AddressLine2NotNil applies the NotNil predicate on the "address_line_2" field.

func And

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

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.Location

BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.Location

BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.

func BusinessUnitIDIn

func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Location

BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.Location

BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.

func BusinessUnitIDNotIn

func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Location

BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.

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 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 Code

func Code(v string) predicate.Location

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Location

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Location

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Location

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Location

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Location

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Location

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Location

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Location

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

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

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Location

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Location

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Location

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

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

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Location

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Location

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Location

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Location

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Location

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Location

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Location

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Location

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Location

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Location

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Location

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Location

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Location

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Location

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Location

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Location

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Location

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Location

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

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

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Location

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Location

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Location

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Location

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

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

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Location

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.Location

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Location

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

func HasComments

func HasComments() predicate.Location

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.LocationComment) predicate.Location

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

func HasContacts

func HasContacts() predicate.Location

HasContacts applies the HasEdge predicate on the "contacts" edge.

func HasContactsWith

func HasContactsWith(preds ...predicate.LocationContact) predicate.Location

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

func HasLocationCategory

func HasLocationCategory() predicate.Location

HasLocationCategory applies the HasEdge predicate on the "location_category" edge.

func HasLocationCategoryWith

func HasLocationCategoryWith(preds ...predicate.LocationCategory) predicate.Location

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

func HasOrganization

func HasOrganization() predicate.Location

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Location

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

func HasState

func HasState() predicate.Location

HasState applies the HasEdge predicate on the "state" edge.

func HasStateWith

func HasStateWith(preds ...predicate.UsState) predicate.Location

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

func ID

func ID(id uuid.UUID) predicate.Location

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Location

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Location

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Location

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Location

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Location

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Location

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Location

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Location

IDNotIn applies the NotIn predicate on the ID field.

func IsGeocoded

func IsGeocoded(v bool) predicate.Location

IsGeocoded applies equality check predicate on the "is_geocoded" field. It's identical to IsGeocodedEQ.

func IsGeocodedEQ

func IsGeocodedEQ(v bool) predicate.Location

IsGeocodedEQ applies the EQ predicate on the "is_geocoded" field.

func IsGeocodedNEQ

func IsGeocodedNEQ(v bool) predicate.Location

IsGeocodedNEQ applies the NEQ predicate on the "is_geocoded" 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 LocationCategoryID

func LocationCategoryID(v uuid.UUID) predicate.Location

LocationCategoryID applies equality check predicate on the "location_category_id" field. It's identical to LocationCategoryIDEQ.

func LocationCategoryIDEQ

func LocationCategoryIDEQ(v uuid.UUID) predicate.Location

LocationCategoryIDEQ applies the EQ predicate on the "location_category_id" field.

func LocationCategoryIDIn

func LocationCategoryIDIn(vs ...uuid.UUID) predicate.Location

LocationCategoryIDIn applies the In predicate on the "location_category_id" field.

func LocationCategoryIDIsNil

func LocationCategoryIDIsNil() predicate.Location

LocationCategoryIDIsNil applies the IsNil predicate on the "location_category_id" field.

func LocationCategoryIDNEQ

func LocationCategoryIDNEQ(v uuid.UUID) predicate.Location

LocationCategoryIDNEQ applies the NEQ predicate on the "location_category_id" field.

func LocationCategoryIDNotIn

func LocationCategoryIDNotIn(vs ...uuid.UUID) predicate.Location

LocationCategoryIDNotIn applies the NotIn predicate on the "location_category_id" field.

func LocationCategoryIDNotNil

func LocationCategoryIDNotNil() predicate.Location

LocationCategoryIDNotNil applies the NotNil predicate on the "location_category_id" 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 Name

func Name(v string) predicate.Location

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Location

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Location

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Location

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Location

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Location

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Location

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Location

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Location

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Location

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Location

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Location

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Location

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Location

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Location

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Location

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Location

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func PlaceID

func PlaceID(v string) predicate.Location

PlaceID applies equality check predicate on the "place_id" field. It's identical to PlaceIDEQ.

func PlaceIDContains

func PlaceIDContains(v string) predicate.Location

PlaceIDContains applies the Contains predicate on the "place_id" field.

func PlaceIDContainsFold

func PlaceIDContainsFold(v string) predicate.Location

PlaceIDContainsFold applies the ContainsFold predicate on the "place_id" field.

func PlaceIDEQ

func PlaceIDEQ(v string) predicate.Location

PlaceIDEQ applies the EQ predicate on the "place_id" field.

func PlaceIDEqualFold

func PlaceIDEqualFold(v string) predicate.Location

PlaceIDEqualFold applies the EqualFold predicate on the "place_id" field.

func PlaceIDGT

func PlaceIDGT(v string) predicate.Location

PlaceIDGT applies the GT predicate on the "place_id" field.

func PlaceIDGTE

func PlaceIDGTE(v string) predicate.Location

PlaceIDGTE applies the GTE predicate on the "place_id" field.

func PlaceIDHasPrefix

func PlaceIDHasPrefix(v string) predicate.Location

PlaceIDHasPrefix applies the HasPrefix predicate on the "place_id" field.

func PlaceIDHasSuffix

func PlaceIDHasSuffix(v string) predicate.Location

PlaceIDHasSuffix applies the HasSuffix predicate on the "place_id" field.

func PlaceIDIn

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

PlaceIDIn applies the In predicate on the "place_id" field.

func PlaceIDIsNil

func PlaceIDIsNil() predicate.Location

PlaceIDIsNil applies the IsNil predicate on the "place_id" field.

func PlaceIDLT

func PlaceIDLT(v string) predicate.Location

PlaceIDLT applies the LT predicate on the "place_id" field.

func PlaceIDLTE

func PlaceIDLTE(v string) predicate.Location

PlaceIDLTE applies the LTE predicate on the "place_id" field.

func PlaceIDNEQ

func PlaceIDNEQ(v string) predicate.Location

PlaceIDNEQ applies the NEQ predicate on the "place_id" field.

func PlaceIDNotIn

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

PlaceIDNotIn applies the NotIn predicate on the "place_id" field.

func PlaceIDNotNil

func PlaceIDNotNil() predicate.Location

PlaceIDNotNil applies the NotNil predicate on the "place_id" field.

func PostalCode

func PostalCode(v string) predicate.Location

PostalCode applies equality check predicate on the "postal_code" field. It's identical to PostalCodeEQ.

func PostalCodeContains

func PostalCodeContains(v string) predicate.Location

PostalCodeContains applies the Contains predicate on the "postal_code" field.

func PostalCodeContainsFold

func PostalCodeContainsFold(v string) predicate.Location

PostalCodeContainsFold applies the ContainsFold predicate on the "postal_code" field.

func PostalCodeEQ

func PostalCodeEQ(v string) predicate.Location

PostalCodeEQ applies the EQ predicate on the "postal_code" field.

func PostalCodeEqualFold

func PostalCodeEqualFold(v string) predicate.Location

PostalCodeEqualFold applies the EqualFold predicate on the "postal_code" field.

func PostalCodeGT

func PostalCodeGT(v string) predicate.Location

PostalCodeGT applies the GT predicate on the "postal_code" field.

func PostalCodeGTE

func PostalCodeGTE(v string) predicate.Location

PostalCodeGTE applies the GTE predicate on the "postal_code" field.

func PostalCodeHasPrefix

func PostalCodeHasPrefix(v string) predicate.Location

PostalCodeHasPrefix applies the HasPrefix predicate on the "postal_code" field.

func PostalCodeHasSuffix

func PostalCodeHasSuffix(v string) predicate.Location

PostalCodeHasSuffix applies the HasSuffix predicate on the "postal_code" field.

func PostalCodeIn

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

PostalCodeIn applies the In predicate on the "postal_code" field.

func PostalCodeLT

func PostalCodeLT(v string) predicate.Location

PostalCodeLT applies the LT predicate on the "postal_code" field.

func PostalCodeLTE

func PostalCodeLTE(v string) predicate.Location

PostalCodeLTE applies the LTE predicate on the "postal_code" field.

func PostalCodeNEQ

func PostalCodeNEQ(v string) predicate.Location

PostalCodeNEQ applies the NEQ predicate on the "postal_code" field.

func PostalCodeNotIn

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

PostalCodeNotIn applies the NotIn predicate on the "postal_code" field.

func StateID

func StateID(v uuid.UUID) predicate.Location

StateID applies equality check predicate on the "state_id" field. It's identical to StateIDEQ.

func StateIDEQ

func StateIDEQ(v uuid.UUID) predicate.Location

StateIDEQ applies the EQ predicate on the "state_id" field.

func StateIDIn

func StateIDIn(vs ...uuid.UUID) predicate.Location

StateIDIn applies the In predicate on the "state_id" field.

func StateIDNEQ

func StateIDNEQ(v uuid.UUID) predicate.Location

StateIDNEQ applies the NEQ predicate on the "state_id" field.

func StateIDNotIn

func StateIDNotIn(vs ...uuid.UUID) predicate.Location

StateIDNotIn applies the NotIn predicate on the "state_id" field.

func StatusEQ

func StatusEQ(v Status) predicate.Location

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Location

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Location

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Location

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Location

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Location

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Location

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Location

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Location

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Location

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Location

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Location

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Location

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v int) predicate.Location

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Location

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Location

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Location

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Location

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Location

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Location

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Location

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Location

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Location queries.

func ByAddressLine1

func ByAddressLine1(opts ...sql.OrderTermOption) OrderOption

ByAddressLine1 orders the results by the address_line_1 field.

func ByAddressLine2

func ByAddressLine2(opts ...sql.OrderTermOption) OrderOption

ByAddressLine2 orders the results by the address_line_2 field.

func ByBusinessUnitField

func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitField orders the results by business_unit field.

func ByBusinessUnitID

func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitID orders the results by the business_unit_id field.

func ByCity

func ByCity(opts ...sql.OrderTermOption) OrderOption

ByCity orders the results by the city field.

func ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code field.

func ByComments

func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByComments orders the results by comments terms.

func ByCommentsCount

func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption

ByCommentsCount orders the results by comments count.

func ByContacts

func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByContacts orders the results by contacts terms.

func ByContactsCount

func ByContactsCount(opts ...sql.OrderTermOption) OrderOption

ByContactsCount orders the results by contacts count.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsGeocoded

func ByIsGeocoded(opts ...sql.OrderTermOption) OrderOption

ByIsGeocoded orders the results by the is_geocoded field.

func ByLatitude

func ByLatitude(opts ...sql.OrderTermOption) OrderOption

ByLatitude orders the results by the latitude field.

func ByLocationCategoryField

func ByLocationCategoryField(field string, opts ...sql.OrderTermOption) OrderOption

ByLocationCategoryField orders the results by location_category field.

func ByLocationCategoryID

func ByLocationCategoryID(opts ...sql.OrderTermOption) OrderOption

ByLocationCategoryID orders the results by the location_category_id field.

func ByLongitude

func ByLongitude(opts ...sql.OrderTermOption) OrderOption

ByLongitude orders the results by the longitude field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByOrganizationID

func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption

ByOrganizationID orders the results by the organization_id field.

func ByPlaceID

func ByPlaceID(opts ...sql.OrderTermOption) OrderOption

ByPlaceID orders the results by the place_id field.

func ByPostalCode

func ByPostalCode(opts ...sql.OrderTermOption) OrderOption

ByPostalCode orders the results by the postal_code field.

func ByStateField

func ByStateField(field string, opts ...sql.OrderTermOption) OrderOption

ByStateField orders the results by state field.

func ByStateID

func ByStateID(opts ...sql.OrderTermOption) OrderOption

ByStateID orders the results by the state_id field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

func ByVersion(opts ...sql.OrderTermOption) OrderOption

ByVersion orders the results by the version field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusA Status = "A"
	StatusI Status = "I"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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