location

package
v0.0.0-...-482f3e0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 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 = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCoords holds the string denoting the coords field in the database.
	FieldCoords = "coords"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// Table holds the table name of the location in the database.
	Table = "locations"
	// ParentTable is the table the holds the parent relation/edge.
	ParentTable = "locations"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "location_children"
	// ChildrenTable is the table the holds the children relation/edge.
	ChildrenTable = "locations"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "location_children"
)

Variables

Columns holds all SQL columns for location fields.

View Source
var ForeignKeys = []string{
	"location_children",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "locations" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func Coords

func Coords(v *schema.Point) predicate.Location

Coords applies equality check predicate on the "coords" field. It's identical to CoordsEQ.

func CoordsEQ

func CoordsEQ(v *schema.Point) predicate.Location

CoordsEQ applies the EQ predicate on the "coords" field.

func CoordsGT

func CoordsGT(v *schema.Point) predicate.Location

CoordsGT applies the GT predicate on the "coords" field.

func CoordsGTE

func CoordsGTE(v *schema.Point) predicate.Location

CoordsGTE applies the GTE predicate on the "coords" field.

func CoordsIn

func CoordsIn(vs ...*schema.Point) predicate.Location

CoordsIn applies the In predicate on the "coords" field.

func CoordsLT

func CoordsLT(v *schema.Point) predicate.Location

CoordsLT applies the LT predicate on the "coords" field.

func CoordsLTE

func CoordsLTE(v *schema.Point) predicate.Location

CoordsLTE applies the LTE predicate on the "coords" field.

func CoordsNEQ

func CoordsNEQ(v *schema.Point) predicate.Location

CoordsNEQ applies the NEQ predicate on the "coords" field.

func CoordsNotIn

func CoordsNotIn(vs ...*schema.Point) predicate.Location

CoordsNotIn applies the NotIn predicate on the "coords" field.

func HasChildren

func HasChildren() predicate.Location

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Location) predicate.Location

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

func HasParent

func HasParent() predicate.Location

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Location) predicate.Location

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

func ID

func ID(id int) predicate.Location

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Location

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Location

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Location

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Location

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Location

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Location

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func 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 ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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