Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Location) predicate.Location
- func Coordinate(v *postgis.PointS) predicate.Location
- func CoordinateEQ(v *postgis.PointS) predicate.Location
- func CoordinateGT(v *postgis.PointS) predicate.Location
- func CoordinateGTE(v *postgis.PointS) predicate.Location
- func CoordinateIn(vs ...*postgis.PointS) predicate.Location
- func CoordinateIsNil() predicate.Location
- func CoordinateLT(v *postgis.PointS) predicate.Location
- func CoordinateLTE(v *postgis.PointS) predicate.Location
- func CoordinateNEQ(v *postgis.PointS) predicate.Location
- func CoordinateNotIn(vs ...*postgis.PointS) predicate.Location
- func CoordinateNotNil() predicate.Location
- func DeduplicationKey(v string) predicate.Location
- func DeduplicationKeyContains(v string) predicate.Location
- func DeduplicationKeyContainsFold(v string) predicate.Location
- func DeduplicationKeyEQ(v string) predicate.Location
- func DeduplicationKeyEqualFold(v string) predicate.Location
- func DeduplicationKeyGT(v string) predicate.Location
- func DeduplicationKeyGTE(v string) predicate.Location
- func DeduplicationKeyHasPrefix(v string) predicate.Location
- func DeduplicationKeyHasSuffix(v string) predicate.Location
- func DeduplicationKeyIn(vs ...string) predicate.Location
- func DeduplicationKeyLT(v string) predicate.Location
- func DeduplicationKeyLTE(v string) predicate.Location
- func DeduplicationKeyNEQ(v string) predicate.Location
- func DeduplicationKeyNotIn(vs ...string) predicate.Location
- func HasCabinets() predicate.Location
- func HasCabinetsWith(preds ...predicate.Cabinet) predicate.Location
- func ID(id string) predicate.Location
- func IDContainsFold(id string) predicate.Location
- func IDEQ(id string) predicate.Location
- func IDEqualFold(id string) predicate.Location
- func IDGT(id string) predicate.Location
- func IDGTE(id string) predicate.Location
- func IDIn(ids ...string) predicate.Location
- func IDLT(id string) predicate.Location
- func IDLTE(id string) predicate.Location
- func IDNEQ(id string) predicate.Location
- func IDNotIn(ids ...string) 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 RawAddress(v string) predicate.Location
- func RawAddressContains(v string) predicate.Location
- func RawAddressContainsFold(v string) predicate.Location
- func RawAddressEQ(v string) predicate.Location
- func RawAddressEqualFold(v string) predicate.Location
- func RawAddressGT(v string) predicate.Location
- func RawAddressGTE(v string) predicate.Location
- func RawAddressHasPrefix(v string) predicate.Location
- func RawAddressHasSuffix(v string) predicate.Location
- func RawAddressIn(vs ...string) predicate.Location
- func RawAddressIsNil() predicate.Location
- func RawAddressLT(v string) predicate.Location
- func RawAddressLTE(v string) predicate.Location
- func RawAddressNEQ(v string) predicate.Location
- func RawAddressNotIn(vs ...string) predicate.Location
- func RawAddressNotNil() predicate.Location
- func ValidColumn(column string) bool
- type OrderOption
- func ByCabinets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCabinetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCoordinate(opts ...sql.OrderTermOption) OrderOption
- func ByDeduplicationKey(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRawAddress(opts ...sql.OrderTermOption) OrderOption
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 = "location_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDeduplicationKey holds the string denoting the deduplication_key field in the database. FieldDeduplicationKey = "deduplication_key" // FieldRawAddress holds the string denoting the raw_address field in the database. FieldRawAddress = "raw_address" // FieldCoordinate holds the string denoting the coordinate field in the database. FieldCoordinate = "coordinate" // EdgeCabinets holds the string denoting the cabinets edge name in mutations. EdgeCabinets = "cabinets" // CabinetFieldID holds the string denoting the ID field of the Cabinet. CabinetFieldID = "cabinet_id" // Table holds the table name of the location in the database. Table = "locations" // CabinetsTable is the table that holds the cabinets relation/edge. CabinetsTable = "cabinets" // CabinetsInverseTable is the table name for the Cabinet entity. // It exists in this package in order to avoid circular dependency with the "cabinet" package. CabinetsInverseTable = "cabinets" // CabinetsColumn is the table column denoting the cabinets relation/edge. CabinetsColumn = "location_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DeduplicationKeyValidator is a validator for the "deduplication_key" field. It is called by the builders before save. DeduplicationKeyValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldName, FieldDeduplicationKey, FieldRawAddress, FieldCoordinate, }
Columns holds all SQL columns for location fields.
Functions ¶
func Coordinate ¶
Coordinate applies equality check predicate on the "coordinate" field. It's identical to CoordinateEQ.
func CoordinateEQ ¶
CoordinateEQ applies the EQ predicate on the "coordinate" field.
func CoordinateGT ¶
CoordinateGT applies the GT predicate on the "coordinate" field.
func CoordinateGTE ¶
CoordinateGTE applies the GTE predicate on the "coordinate" field.
func CoordinateIn ¶
CoordinateIn applies the In predicate on the "coordinate" field.
func CoordinateIsNil ¶
CoordinateIsNil applies the IsNil predicate on the "coordinate" field.
func CoordinateLT ¶
CoordinateLT applies the LT predicate on the "coordinate" field.
func CoordinateLTE ¶
CoordinateLTE applies the LTE predicate on the "coordinate" field.
func CoordinateNEQ ¶
CoordinateNEQ applies the NEQ predicate on the "coordinate" field.
func CoordinateNotIn ¶
CoordinateNotIn applies the NotIn predicate on the "coordinate" field.
func CoordinateNotNil ¶
CoordinateNotNil applies the NotNil predicate on the "coordinate" field.
func DeduplicationKey ¶
DeduplicationKey applies equality check predicate on the "deduplication_key" field. It's identical to DeduplicationKeyEQ.
func DeduplicationKeyContains ¶
DeduplicationKeyContains applies the Contains predicate on the "deduplication_key" field.
func DeduplicationKeyContainsFold ¶
DeduplicationKeyContainsFold applies the ContainsFold predicate on the "deduplication_key" field.
func DeduplicationKeyEQ ¶
DeduplicationKeyEQ applies the EQ predicate on the "deduplication_key" field.
func DeduplicationKeyEqualFold ¶
DeduplicationKeyEqualFold applies the EqualFold predicate on the "deduplication_key" field.
func DeduplicationKeyGT ¶
DeduplicationKeyGT applies the GT predicate on the "deduplication_key" field.
func DeduplicationKeyGTE ¶
DeduplicationKeyGTE applies the GTE predicate on the "deduplication_key" field.
func DeduplicationKeyHasPrefix ¶
DeduplicationKeyHasPrefix applies the HasPrefix predicate on the "deduplication_key" field.
func DeduplicationKeyHasSuffix ¶
DeduplicationKeyHasSuffix applies the HasSuffix predicate on the "deduplication_key" field.
func DeduplicationKeyIn ¶
DeduplicationKeyIn applies the In predicate on the "deduplication_key" field.
func DeduplicationKeyLT ¶
DeduplicationKeyLT applies the LT predicate on the "deduplication_key" field.
func DeduplicationKeyLTE ¶
DeduplicationKeyLTE applies the LTE predicate on the "deduplication_key" field.
func DeduplicationKeyNEQ ¶
DeduplicationKeyNEQ applies the NEQ predicate on the "deduplication_key" field.
func DeduplicationKeyNotIn ¶
DeduplicationKeyNotIn applies the NotIn predicate on the "deduplication_key" field.
func HasCabinets ¶
HasCabinets applies the HasEdge predicate on the "cabinets" edge.
func HasCabinetsWith ¶
HasCabinetsWith applies the HasEdge predicate on the "cabinets" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 RawAddress ¶
RawAddress applies equality check predicate on the "raw_address" field. It's identical to RawAddressEQ.
func RawAddressContains ¶
RawAddressContains applies the Contains predicate on the "raw_address" field.
func RawAddressContainsFold ¶
RawAddressContainsFold applies the ContainsFold predicate on the "raw_address" field.
func RawAddressEQ ¶
RawAddressEQ applies the EQ predicate on the "raw_address" field.
func RawAddressEqualFold ¶
RawAddressEqualFold applies the EqualFold predicate on the "raw_address" field.
func RawAddressGT ¶
RawAddressGT applies the GT predicate on the "raw_address" field.
func RawAddressGTE ¶
RawAddressGTE applies the GTE predicate on the "raw_address" field.
func RawAddressHasPrefix ¶
RawAddressHasPrefix applies the HasPrefix predicate on the "raw_address" field.
func RawAddressHasSuffix ¶
RawAddressHasSuffix applies the HasSuffix predicate on the "raw_address" field.
func RawAddressIn ¶
RawAddressIn applies the In predicate on the "raw_address" field.
func RawAddressIsNil ¶
RawAddressIsNil applies the IsNil predicate on the "raw_address" field.
func RawAddressLT ¶
RawAddressLT applies the LT predicate on the "raw_address" field.
func RawAddressLTE ¶
RawAddressLTE applies the LTE predicate on the "raw_address" field.
func RawAddressNEQ ¶
RawAddressNEQ applies the NEQ predicate on the "raw_address" field.
func RawAddressNotIn ¶
RawAddressNotIn applies the NotIn predicate on the "raw_address" field.
func RawAddressNotNil ¶
RawAddressNotNil applies the NotNil predicate on the "raw_address" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Location queries.
func ByCabinets ¶
func ByCabinets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCabinets orders the results by cabinets terms.
func ByCabinetsCount ¶
func ByCabinetsCount(opts ...sql.OrderTermOption) OrderOption
ByCabinetsCount orders the results by cabinets count.
func ByCoordinate ¶
func ByCoordinate(opts ...sql.OrderTermOption) OrderOption
ByCoordinate orders the results by the coordinate field.
func ByDeduplicationKey ¶
func ByDeduplicationKey(opts ...sql.OrderTermOption) OrderOption
ByDeduplicationKey orders the results by the deduplication_key field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRawAddress ¶
func ByRawAddress(opts ...sql.OrderTermOption) OrderOption
ByRawAddress orders the results by the raw_address field.