Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Location) predicate.Location
- func Coords(v *schema.Point) predicate.Location
- func CoordsEQ(v *schema.Point) predicate.Location
- func CoordsGT(v *schema.Point) predicate.Location
- func CoordsGTE(v *schema.Point) predicate.Location
- func CoordsIn(vs ...*schema.Point) predicate.Location
- func CoordsLT(v *schema.Point) predicate.Location
- func CoordsLTE(v *schema.Point) predicate.Location
- func CoordsNEQ(v *schema.Point) predicate.Location
- func CoordsNotIn(vs ...*schema.Point) predicate.Location
- func HasChildren() predicate.Location
- func HasChildrenWith(preds ...predicate.Location) predicate.Location
- func HasParent() predicate.Location
- func HasParentWith(preds ...predicate.Location) predicate.Location
- func ID(id int) predicate.Location
- func IDEQ(id int) predicate.Location
- func IDGT(id int) predicate.Location
- func IDGTE(id int) predicate.Location
- func IDIn(ids ...int) predicate.Location
- func IDLT(id int) predicate.Location
- func IDLTE(id int) predicate.Location
- func IDNEQ(id int) predicate.Location
- func IDNotIn(ids ...int) 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 ValidColumn(column string) bool
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" // 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 ¶
var Columns = []string{ FieldID, FieldName, FieldCoords, }
Columns holds all SQL columns for location fields.
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 Coords ¶
Coords applies equality check predicate on the "coords" field. It's identical to CoordsEQ.
func CoordsNotIn ¶
CoordsNotIn applies the NotIn predicate on the "coords" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.