location

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 4 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 = "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

View Source
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
)

Columns holds all SQL columns for location fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func Coordinate

func Coordinate(v *postgis.PointS) predicate.Location

Coordinate applies equality check predicate on the "coordinate" field. It's identical to CoordinateEQ.

func CoordinateEQ

func CoordinateEQ(v *postgis.PointS) predicate.Location

CoordinateEQ applies the EQ predicate on the "coordinate" field.

func CoordinateGT

func CoordinateGT(v *postgis.PointS) predicate.Location

CoordinateGT applies the GT predicate on the "coordinate" field.

func CoordinateGTE

func CoordinateGTE(v *postgis.PointS) predicate.Location

CoordinateGTE applies the GTE predicate on the "coordinate" field.

func CoordinateIn

func CoordinateIn(vs ...*postgis.PointS) predicate.Location

CoordinateIn applies the In predicate on the "coordinate" field.

func CoordinateIsNil

func CoordinateIsNil() predicate.Location

CoordinateIsNil applies the IsNil predicate on the "coordinate" field.

func CoordinateLT

func CoordinateLT(v *postgis.PointS) predicate.Location

CoordinateLT applies the LT predicate on the "coordinate" field.

func CoordinateLTE

func CoordinateLTE(v *postgis.PointS) predicate.Location

CoordinateLTE applies the LTE predicate on the "coordinate" field.

func CoordinateNEQ

func CoordinateNEQ(v *postgis.PointS) predicate.Location

CoordinateNEQ applies the NEQ predicate on the "coordinate" field.

func CoordinateNotIn

func CoordinateNotIn(vs ...*postgis.PointS) predicate.Location

CoordinateNotIn applies the NotIn predicate on the "coordinate" field.

func CoordinateNotNil

func CoordinateNotNil() predicate.Location

CoordinateNotNil applies the NotNil predicate on the "coordinate" field.

func DeduplicationKey

func DeduplicationKey(v string) predicate.Location

DeduplicationKey applies equality check predicate on the "deduplication_key" field. It's identical to DeduplicationKeyEQ.

func DeduplicationKeyContains

func DeduplicationKeyContains(v string) predicate.Location

DeduplicationKeyContains applies the Contains predicate on the "deduplication_key" field.

func DeduplicationKeyContainsFold

func DeduplicationKeyContainsFold(v string) predicate.Location

DeduplicationKeyContainsFold applies the ContainsFold predicate on the "deduplication_key" field.

func DeduplicationKeyEQ

func DeduplicationKeyEQ(v string) predicate.Location

DeduplicationKeyEQ applies the EQ predicate on the "deduplication_key" field.

func DeduplicationKeyEqualFold

func DeduplicationKeyEqualFold(v string) predicate.Location

DeduplicationKeyEqualFold applies the EqualFold predicate on the "deduplication_key" field.

func DeduplicationKeyGT

func DeduplicationKeyGT(v string) predicate.Location

DeduplicationKeyGT applies the GT predicate on the "deduplication_key" field.

func DeduplicationKeyGTE

func DeduplicationKeyGTE(v string) predicate.Location

DeduplicationKeyGTE applies the GTE predicate on the "deduplication_key" field.

func DeduplicationKeyHasPrefix

func DeduplicationKeyHasPrefix(v string) predicate.Location

DeduplicationKeyHasPrefix applies the HasPrefix predicate on the "deduplication_key" field.

func DeduplicationKeyHasSuffix

func DeduplicationKeyHasSuffix(v string) predicate.Location

DeduplicationKeyHasSuffix applies the HasSuffix predicate on the "deduplication_key" field.

func DeduplicationKeyIn

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

DeduplicationKeyIn applies the In predicate on the "deduplication_key" field.

func DeduplicationKeyLT

func DeduplicationKeyLT(v string) predicate.Location

DeduplicationKeyLT applies the LT predicate on the "deduplication_key" field.

func DeduplicationKeyLTE

func DeduplicationKeyLTE(v string) predicate.Location

DeduplicationKeyLTE applies the LTE predicate on the "deduplication_key" field.

func DeduplicationKeyNEQ

func DeduplicationKeyNEQ(v string) predicate.Location

DeduplicationKeyNEQ applies the NEQ predicate on the "deduplication_key" field.

func DeduplicationKeyNotIn

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

DeduplicationKeyNotIn applies the NotIn predicate on the "deduplication_key" field.

func HasCabinets

func HasCabinets() predicate.Location

HasCabinets applies the HasEdge predicate on the "cabinets" edge.

func HasCabinetsWith

func HasCabinetsWith(preds ...predicate.Cabinet) predicate.Location

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

func ID

func ID(id string) predicate.Location

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Location

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Location

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Location

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Location

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Location

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Location

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Location

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Location

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID 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 RawAddress

func RawAddress(v string) predicate.Location

RawAddress applies equality check predicate on the "raw_address" field. It's identical to RawAddressEQ.

func RawAddressContains

func RawAddressContains(v string) predicate.Location

RawAddressContains applies the Contains predicate on the "raw_address" field.

func RawAddressContainsFold

func RawAddressContainsFold(v string) predicate.Location

RawAddressContainsFold applies the ContainsFold predicate on the "raw_address" field.

func RawAddressEQ

func RawAddressEQ(v string) predicate.Location

RawAddressEQ applies the EQ predicate on the "raw_address" field.

func RawAddressEqualFold

func RawAddressEqualFold(v string) predicate.Location

RawAddressEqualFold applies the EqualFold predicate on the "raw_address" field.

func RawAddressGT

func RawAddressGT(v string) predicate.Location

RawAddressGT applies the GT predicate on the "raw_address" field.

func RawAddressGTE

func RawAddressGTE(v string) predicate.Location

RawAddressGTE applies the GTE predicate on the "raw_address" field.

func RawAddressHasPrefix

func RawAddressHasPrefix(v string) predicate.Location

RawAddressHasPrefix applies the HasPrefix predicate on the "raw_address" field.

func RawAddressHasSuffix

func RawAddressHasSuffix(v string) predicate.Location

RawAddressHasSuffix applies the HasSuffix predicate on the "raw_address" field.

func RawAddressIn

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

RawAddressIn applies the In predicate on the "raw_address" field.

func RawAddressIsNil

func RawAddressIsNil() predicate.Location

RawAddressIsNil applies the IsNil predicate on the "raw_address" field.

func RawAddressLT

func RawAddressLT(v string) predicate.Location

RawAddressLT applies the LT predicate on the "raw_address" field.

func RawAddressLTE

func RawAddressLTE(v string) predicate.Location

RawAddressLTE applies the LTE predicate on the "raw_address" field.

func RawAddressNEQ

func RawAddressNEQ(v string) predicate.Location

RawAddressNEQ applies the NEQ predicate on the "raw_address" field.

func RawAddressNotIn

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

RawAddressNotIn applies the NotIn predicate on the "raw_address" field.

func RawAddressNotNil

func RawAddressNotNil() predicate.Location

RawAddressNotNil applies the NotNil predicate on the "raw_address" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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