Documentation ¶
Index ¶
- Constants
- Variables
- func AddressLine1(v string) predicate.Location
- func AddressLine1Contains(v string) predicate.Location
- func AddressLine1ContainsFold(v string) predicate.Location
- func AddressLine1EQ(v string) predicate.Location
- func AddressLine1EqualFold(v string) predicate.Location
- func AddressLine1GT(v string) predicate.Location
- func AddressLine1GTE(v string) predicate.Location
- func AddressLine1HasPrefix(v string) predicate.Location
- func AddressLine1HasSuffix(v string) predicate.Location
- func AddressLine1In(vs ...string) predicate.Location
- func AddressLine1LT(v string) predicate.Location
- func AddressLine1LTE(v string) predicate.Location
- func AddressLine1NEQ(v string) predicate.Location
- func AddressLine1NotIn(vs ...string) predicate.Location
- func AddressLine2(v string) predicate.Location
- func AddressLine2Contains(v string) predicate.Location
- func AddressLine2ContainsFold(v string) predicate.Location
- func AddressLine2EQ(v string) predicate.Location
- func AddressLine2EqualFold(v string) predicate.Location
- func AddressLine2GT(v string) predicate.Location
- func AddressLine2GTE(v string) predicate.Location
- func AddressLine2HasPrefix(v string) predicate.Location
- func AddressLine2HasSuffix(v string) predicate.Location
- func AddressLine2In(vs ...string) predicate.Location
- func AddressLine2IsNil() predicate.Location
- func AddressLine2LT(v string) predicate.Location
- func AddressLine2LTE(v string) predicate.Location
- func AddressLine2NEQ(v string) predicate.Location
- func AddressLine2NotIn(vs ...string) predicate.Location
- func AddressLine2NotNil() predicate.Location
- func And(predicates ...predicate.Location) predicate.Location
- func BusinessUnitID(v uuid.UUID) predicate.Location
- func BusinessUnitIDEQ(v uuid.UUID) predicate.Location
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Location
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.Location
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Location
- func City(v string) predicate.Location
- func CityContains(v string) predicate.Location
- func CityContainsFold(v string) predicate.Location
- func CityEQ(v string) predicate.Location
- func CityEqualFold(v string) predicate.Location
- func CityGT(v string) predicate.Location
- func CityGTE(v string) predicate.Location
- func CityHasPrefix(v string) predicate.Location
- func CityHasSuffix(v string) predicate.Location
- func CityIn(vs ...string) predicate.Location
- func CityLT(v string) predicate.Location
- func CityLTE(v string) predicate.Location
- func CityNEQ(v string) predicate.Location
- func CityNotIn(vs ...string) predicate.Location
- func Code(v string) predicate.Location
- func CodeContains(v string) predicate.Location
- func CodeContainsFold(v string) predicate.Location
- func CodeEQ(v string) predicate.Location
- func CodeEqualFold(v string) predicate.Location
- func CodeGT(v string) predicate.Location
- func CodeGTE(v string) predicate.Location
- func CodeHasPrefix(v string) predicate.Location
- func CodeHasSuffix(v string) predicate.Location
- func CodeIn(vs ...string) predicate.Location
- func CodeLT(v string) predicate.Location
- func CodeLTE(v string) predicate.Location
- func CodeNEQ(v string) predicate.Location
- func CodeNotIn(vs ...string) predicate.Location
- func CreatedAt(v time.Time) predicate.Location
- func CreatedAtEQ(v time.Time) predicate.Location
- func CreatedAtGT(v time.Time) predicate.Location
- func CreatedAtGTE(v time.Time) predicate.Location
- func CreatedAtIn(vs ...time.Time) predicate.Location
- func CreatedAtLT(v time.Time) predicate.Location
- func CreatedAtLTE(v time.Time) predicate.Location
- func CreatedAtNEQ(v time.Time) predicate.Location
- func CreatedAtNotIn(vs ...time.Time) 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 DescriptionIsNil() 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 DescriptionNotNil() predicate.Location
- func HasBusinessUnit() predicate.Location
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Location
- func HasComments() predicate.Location
- func HasCommentsWith(preds ...predicate.LocationComment) predicate.Location
- func HasContacts() predicate.Location
- func HasContactsWith(preds ...predicate.LocationContact) predicate.Location
- func HasLocationCategory() predicate.Location
- func HasLocationCategoryWith(preds ...predicate.LocationCategory) predicate.Location
- func HasOrganization() predicate.Location
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Location
- func HasState() predicate.Location
- func HasStateWith(preds ...predicate.UsState) 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 IsGeocoded(v bool) predicate.Location
- func IsGeocodedEQ(v bool) predicate.Location
- func IsGeocodedNEQ(v bool) 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 LatitudeIsNil() 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 LatitudeNotNil() predicate.Location
- func LocationCategoryID(v uuid.UUID) predicate.Location
- func LocationCategoryIDEQ(v uuid.UUID) predicate.Location
- func LocationCategoryIDIn(vs ...uuid.UUID) predicate.Location
- func LocationCategoryIDIsNil() predicate.Location
- func LocationCategoryIDNEQ(v uuid.UUID) predicate.Location
- func LocationCategoryIDNotIn(vs ...uuid.UUID) predicate.Location
- func LocationCategoryIDNotNil() 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 LongitudeIsNil() 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 LongitudeNotNil() predicate.Location
- func Name(v string) predicate.Location
- func NameContains(v string) predicate.Location
- func NameContainsFold(v string) predicate.Location
- func NameEQ(v string) predicate.Location
- func NameEqualFold(v string) predicate.Location
- func NameGT(v string) predicate.Location
- func NameGTE(v string) predicate.Location
- func NameHasPrefix(v string) predicate.Location
- func NameHasSuffix(v string) predicate.Location
- func NameIn(vs ...string) predicate.Location
- func NameLT(v string) predicate.Location
- func NameLTE(v string) predicate.Location
- func NameNEQ(v string) predicate.Location
- func NameNotIn(vs ...string) predicate.Location
- func Not(p predicate.Location) predicate.Location
- func Or(predicates ...predicate.Location) predicate.Location
- func OrganizationID(v uuid.UUID) predicate.Location
- func OrganizationIDEQ(v uuid.UUID) predicate.Location
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Location
- func OrganizationIDNEQ(v uuid.UUID) predicate.Location
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Location
- func PlaceID(v string) predicate.Location
- func PlaceIDContains(v string) predicate.Location
- func PlaceIDContainsFold(v string) predicate.Location
- func PlaceIDEQ(v string) predicate.Location
- func PlaceIDEqualFold(v string) predicate.Location
- func PlaceIDGT(v string) predicate.Location
- func PlaceIDGTE(v string) predicate.Location
- func PlaceIDHasPrefix(v string) predicate.Location
- func PlaceIDHasSuffix(v string) predicate.Location
- func PlaceIDIn(vs ...string) predicate.Location
- func PlaceIDIsNil() predicate.Location
- func PlaceIDLT(v string) predicate.Location
- func PlaceIDLTE(v string) predicate.Location
- func PlaceIDNEQ(v string) predicate.Location
- func PlaceIDNotIn(vs ...string) predicate.Location
- func PlaceIDNotNil() predicate.Location
- func PostalCode(v string) predicate.Location
- func PostalCodeContains(v string) predicate.Location
- func PostalCodeContainsFold(v string) predicate.Location
- func PostalCodeEQ(v string) predicate.Location
- func PostalCodeEqualFold(v string) predicate.Location
- func PostalCodeGT(v string) predicate.Location
- func PostalCodeGTE(v string) predicate.Location
- func PostalCodeHasPrefix(v string) predicate.Location
- func PostalCodeHasSuffix(v string) predicate.Location
- func PostalCodeIn(vs ...string) predicate.Location
- func PostalCodeLT(v string) predicate.Location
- func PostalCodeLTE(v string) predicate.Location
- func PostalCodeNEQ(v string) predicate.Location
- func PostalCodeNotIn(vs ...string) predicate.Location
- func StateID(v uuid.UUID) predicate.Location
- func StateIDEQ(v uuid.UUID) predicate.Location
- func StateIDIn(vs ...uuid.UUID) predicate.Location
- func StateIDNEQ(v uuid.UUID) predicate.Location
- func StateIDNotIn(vs ...uuid.UUID) predicate.Location
- func StatusEQ(v Status) predicate.Location
- func StatusIn(vs ...Status) predicate.Location
- func StatusNEQ(v Status) predicate.Location
- func StatusNotIn(vs ...Status) predicate.Location
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Location
- func UpdatedAtEQ(v time.Time) predicate.Location
- func UpdatedAtGT(v time.Time) predicate.Location
- func UpdatedAtGTE(v time.Time) predicate.Location
- func UpdatedAtIn(vs ...time.Time) predicate.Location
- func UpdatedAtLT(v time.Time) predicate.Location
- func UpdatedAtLTE(v time.Time) predicate.Location
- func UpdatedAtNEQ(v time.Time) predicate.Location
- func UpdatedAtNotIn(vs ...time.Time) predicate.Location
- func ValidColumn(column string) bool
- func Version(v int) predicate.Location
- func VersionEQ(v int) predicate.Location
- func VersionGT(v int) predicate.Location
- func VersionGTE(v int) predicate.Location
- func VersionIn(vs ...int) predicate.Location
- func VersionLT(v int) predicate.Location
- func VersionLTE(v int) predicate.Location
- func VersionNEQ(v int) predicate.Location
- func VersionNotIn(vs ...int) predicate.Location
- type OrderOption
- func ByAddressLine1(opts ...sql.OrderTermOption) OrderOption
- func ByAddressLine2(opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCity(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsGeocoded(opts ...sql.OrderTermOption) OrderOption
- func ByLatitude(opts ...sql.OrderTermOption) OrderOption
- func ByLocationCategoryField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLocationCategoryID(opts ...sql.OrderTermOption) OrderOption
- func ByLongitude(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPlaceID(opts ...sql.OrderTermOption) OrderOption
- func ByPostalCode(opts ...sql.OrderTermOption) OrderOption
- func ByStateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStateID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type Status
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" // 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" )
const DefaultStatus = StatusA
StatusA is the default value of the Status enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldStatus, FieldCode, FieldLocationCategoryID, FieldName, FieldDescription, FieldAddressLine1, FieldAddressLine2, FieldCity, FieldStateID, FieldPostalCode, FieldLongitude, FieldLatitude, FieldPlaceID, FieldIsGeocoded, }
Columns holds all SQL columns for location fields.
Functions ¶
func AddressLine1 ¶
AddressLine1 applies equality check predicate on the "address_line_1" field. It's identical to AddressLine1EQ.
func AddressLine1Contains ¶
AddressLine1Contains applies the Contains predicate on the "address_line_1" field.
func AddressLine1ContainsFold ¶
AddressLine1ContainsFold applies the ContainsFold predicate on the "address_line_1" field.
func AddressLine1EQ ¶
AddressLine1EQ applies the EQ predicate on the "address_line_1" field.
func AddressLine1EqualFold ¶
AddressLine1EqualFold applies the EqualFold predicate on the "address_line_1" field.
func AddressLine1GT ¶
AddressLine1GT applies the GT predicate on the "address_line_1" field.
func AddressLine1GTE ¶
AddressLine1GTE applies the GTE predicate on the "address_line_1" field.
func AddressLine1HasPrefix ¶
AddressLine1HasPrefix applies the HasPrefix predicate on the "address_line_1" field.
func AddressLine1HasSuffix ¶
AddressLine1HasSuffix applies the HasSuffix predicate on the "address_line_1" field.
func AddressLine1In ¶
AddressLine1In applies the In predicate on the "address_line_1" field.
func AddressLine1LT ¶
AddressLine1LT applies the LT predicate on the "address_line_1" field.
func AddressLine1LTE ¶
AddressLine1LTE applies the LTE predicate on the "address_line_1" field.
func AddressLine1NEQ ¶
AddressLine1NEQ applies the NEQ predicate on the "address_line_1" field.
func AddressLine1NotIn ¶
AddressLine1NotIn applies the NotIn predicate on the "address_line_1" field.
func AddressLine2 ¶
AddressLine2 applies equality check predicate on the "address_line_2" field. It's identical to AddressLine2EQ.
func AddressLine2Contains ¶
AddressLine2Contains applies the Contains predicate on the "address_line_2" field.
func AddressLine2ContainsFold ¶
AddressLine2ContainsFold applies the ContainsFold predicate on the "address_line_2" field.
func AddressLine2EQ ¶
AddressLine2EQ applies the EQ predicate on the "address_line_2" field.
func AddressLine2EqualFold ¶
AddressLine2EqualFold applies the EqualFold predicate on the "address_line_2" field.
func AddressLine2GT ¶
AddressLine2GT applies the GT predicate on the "address_line_2" field.
func AddressLine2GTE ¶
AddressLine2GTE applies the GTE predicate on the "address_line_2" field.
func AddressLine2HasPrefix ¶
AddressLine2HasPrefix applies the HasPrefix predicate on the "address_line_2" field.
func AddressLine2HasSuffix ¶
AddressLine2HasSuffix applies the HasSuffix predicate on the "address_line_2" field.
func AddressLine2In ¶
AddressLine2In applies the In predicate on the "address_line_2" field.
func AddressLine2IsNil ¶
AddressLine2IsNil applies the IsNil predicate on the "address_line_2" field.
func AddressLine2LT ¶
AddressLine2LT applies the LT predicate on the "address_line_2" field.
func AddressLine2LTE ¶
AddressLine2LTE applies the LTE predicate on the "address_line_2" field.
func AddressLine2NEQ ¶
AddressLine2NEQ applies the NEQ predicate on the "address_line_2" field.
func AddressLine2NotIn ¶
AddressLine2NotIn applies the NotIn predicate on the "address_line_2" field.
func AddressLine2NotNil ¶
AddressLine2NotNil applies the NotNil predicate on the "address_line_2" field.
func BusinessUnitID ¶
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func CityContains ¶
CityContains applies the Contains predicate on the "city" field.
func CityContainsFold ¶
CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityEqualFold ¶
CityEqualFold applies the EqualFold predicate on the "city" field.
func CityHasPrefix ¶
CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasSuffix ¶
CityHasSuffix applies the HasSuffix predicate on the "city" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" 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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasBusinessUnit ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 HasStateWith ¶
HasStateWith applies the HasEdge predicate on the "state" edge with a given conditions (other predicates).
func IsGeocoded ¶
IsGeocoded applies equality check predicate on the "is_geocoded" field. It's identical to IsGeocodedEQ.
func IsGeocodedEQ ¶
IsGeocodedEQ applies the EQ predicate on the "is_geocoded" field.
func IsGeocodedNEQ ¶
IsGeocodedNEQ applies the NEQ predicate on the "is_geocoded" field.
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 LatitudeIsNil ¶
LatitudeIsNil applies the IsNil 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 LatitudeNotNil ¶
LatitudeNotNil applies the NotNil predicate on the "latitude" field.
func LocationCategoryID ¶
LocationCategoryID applies equality check predicate on the "location_category_id" field. It's identical to LocationCategoryIDEQ.
func LocationCategoryIDEQ ¶
LocationCategoryIDEQ applies the EQ predicate on the "location_category_id" field.
func LocationCategoryIDIn ¶
LocationCategoryIDIn applies the In predicate on the "location_category_id" field.
func LocationCategoryIDIsNil ¶
LocationCategoryIDIsNil applies the IsNil predicate on the "location_category_id" field.
func LocationCategoryIDNEQ ¶
LocationCategoryIDNEQ applies the NEQ predicate on the "location_category_id" field.
func LocationCategoryIDNotIn ¶
LocationCategoryIDNotIn applies the NotIn predicate on the "location_category_id" field.
func LocationCategoryIDNotNil ¶
LocationCategoryIDNotNil applies the NotNil predicate on the "location_category_id" 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 LongitudeIsNil ¶
LongitudeIsNil applies the IsNil 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 LongitudeNotNil ¶
LongitudeNotNil applies the NotNil predicate on the "longitude" field.
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 OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PlaceID ¶
PlaceID applies equality check predicate on the "place_id" field. It's identical to PlaceIDEQ.
func PlaceIDContains ¶
PlaceIDContains applies the Contains predicate on the "place_id" field.
func PlaceIDContainsFold ¶
PlaceIDContainsFold applies the ContainsFold predicate on the "place_id" field.
func PlaceIDEqualFold ¶
PlaceIDEqualFold applies the EqualFold predicate on the "place_id" field.
func PlaceIDGTE ¶
PlaceIDGTE applies the GTE predicate on the "place_id" field.
func PlaceIDHasPrefix ¶
PlaceIDHasPrefix applies the HasPrefix predicate on the "place_id" field.
func PlaceIDHasSuffix ¶
PlaceIDHasSuffix applies the HasSuffix predicate on the "place_id" field.
func PlaceIDIsNil ¶
PlaceIDIsNil applies the IsNil predicate on the "place_id" field.
func PlaceIDLTE ¶
PlaceIDLTE applies the LTE predicate on the "place_id" field.
func PlaceIDNEQ ¶
PlaceIDNEQ applies the NEQ predicate on the "place_id" field.
func PlaceIDNotIn ¶
PlaceIDNotIn applies the NotIn predicate on the "place_id" field.
func PlaceIDNotNil ¶
PlaceIDNotNil applies the NotNil predicate on the "place_id" field.
func PostalCode ¶
PostalCode applies equality check predicate on the "postal_code" field. It's identical to PostalCodeEQ.
func PostalCodeContains ¶
PostalCodeContains applies the Contains predicate on the "postal_code" field.
func PostalCodeContainsFold ¶
PostalCodeContainsFold applies the ContainsFold predicate on the "postal_code" field.
func PostalCodeEQ ¶
PostalCodeEQ applies the EQ predicate on the "postal_code" field.
func PostalCodeEqualFold ¶
PostalCodeEqualFold applies the EqualFold predicate on the "postal_code" field.
func PostalCodeGT ¶
PostalCodeGT applies the GT predicate on the "postal_code" field.
func PostalCodeGTE ¶
PostalCodeGTE applies the GTE predicate on the "postal_code" field.
func PostalCodeHasPrefix ¶
PostalCodeHasPrefix applies the HasPrefix predicate on the "postal_code" field.
func PostalCodeHasSuffix ¶
PostalCodeHasSuffix applies the HasSuffix predicate on the "postal_code" field.
func PostalCodeIn ¶
PostalCodeIn applies the In predicate on the "postal_code" field.
func PostalCodeLT ¶
PostalCodeLT applies the LT predicate on the "postal_code" field.
func PostalCodeLTE ¶
PostalCodeLTE applies the LTE predicate on the "postal_code" field.
func PostalCodeNEQ ¶
PostalCodeNEQ applies the NEQ predicate on the "postal_code" field.
func PostalCodeNotIn ¶
PostalCodeNotIn applies the NotIn predicate on the "postal_code" field.
func StateID ¶
StateID applies equality check predicate on the "state_id" field. It's identical to StateIDEQ.
func StateIDNEQ ¶
StateIDNEQ applies the NEQ predicate on the "state_id" field.
func StateIDNotIn ¶
StateIDNotIn applies the NotIn predicate on the "state_id" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.