Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Construction) predicate.Construction
- func HasCity() predicate.Construction
- func HasCityWith(preds ...predicate.City) predicate.Construction
- func HasQueue() predicate.Construction
- func HasQueueWith(preds ...predicate.Queue) predicate.Construction
- func ID(id int) predicate.Construction
- func IDEQ(id int) predicate.Construction
- func IDGT(id int) predicate.Construction
- func IDGTE(id int) predicate.Construction
- func IDIn(ids ...int) predicate.Construction
- func IDLT(id int) predicate.Construction
- func IDLTE(id int) predicate.Construction
- func IDNEQ(id int) predicate.Construction
- func IDNotIn(ids ...int) predicate.Construction
- func Level(v int) predicate.Construction
- func LevelEQ(v int) predicate.Construction
- func LevelGT(v int) predicate.Construction
- func LevelGTE(v int) predicate.Construction
- func LevelIn(vs ...int) predicate.Construction
- func LevelLT(v int) predicate.Construction
- func LevelLTE(v int) predicate.Construction
- func LevelNEQ(v int) predicate.Construction
- func LevelNotIn(vs ...int) predicate.Construction
- func Modifier(v float64) predicate.Construction
- func ModifierEQ(v float64) predicate.Construction
- func ModifierGT(v float64) predicate.Construction
- func ModifierGTE(v float64) predicate.Construction
- func ModifierIn(vs ...float64) predicate.Construction
- func ModifierLT(v float64) predicate.Construction
- func ModifierLTE(v float64) predicate.Construction
- func ModifierNEQ(v float64) predicate.Construction
- func ModifierNotIn(vs ...float64) predicate.Construction
- func NeedRefresh(v bool) predicate.Construction
- func NeedRefreshEQ(v bool) predicate.Construction
- func NeedRefreshNEQ(v bool) predicate.Construction
- func Not(p predicate.Construction) predicate.Construction
- func Or(predicates ...predicate.Construction) predicate.Construction
- func RawProduction(v int) predicate.Construction
- func RawProductionEQ(v int) predicate.Construction
- func RawProductionGT(v int) predicate.Construction
- func RawProductionGTE(v int) predicate.Construction
- func RawProductionIn(vs ...int) predicate.Construction
- func RawProductionLT(v int) predicate.Construction
- func RawProductionLTE(v int) predicate.Construction
- func RawProductionNEQ(v int) predicate.Construction
- func RawProductionNotIn(vs ...int) predicate.Construction
- func Type(v int) predicate.Construction
- func TypeEQ(v int) predicate.Construction
- func TypeGT(v int) predicate.Construction
- func TypeGTE(v int) predicate.Construction
- func TypeIn(vs ...int) predicate.Construction
- func TypeLT(v int) predicate.Construction
- func TypeLTE(v int) predicate.Construction
- func TypeNEQ(v int) predicate.Construction
- func TypeNotIn(vs ...int) predicate.Construction
- func X(v int) predicate.Construction
- func XEQ(v int) predicate.Construction
- func XGT(v int) predicate.Construction
- func XGTE(v int) predicate.Construction
- func XIn(vs ...int) predicate.Construction
- func XLT(v int) predicate.Construction
- func XLTE(v int) predicate.Construction
- func XNEQ(v int) predicate.Construction
- func XNotIn(vs ...int) predicate.Construction
- func Y(v int) predicate.Construction
- func YEQ(v int) predicate.Construction
- func YGT(v int) predicate.Construction
- func YGTE(v int) predicate.Construction
- func YIn(vs ...int) predicate.Construction
- func YLT(v int) predicate.Construction
- func YLTE(v int) predicate.Construction
- func YNEQ(v int) predicate.Construction
- func YNotIn(vs ...int) predicate.Construction
Constants ¶
const ( // Label holds the string label denoting the construction type in the database. Label = "construction" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldX holds the string denoting the x vertex property in the database. FieldX = "x" // FieldY holds the string denoting the y vertex property in the database. FieldY = "y" // FieldRawProduction holds the string denoting the raw_production vertex property in the database. FieldRawProduction = "raw_production" // FieldType holds the string denoting the type vertex property in the database. FieldType = "type" // FieldLevel holds the string denoting the level vertex property in the database. FieldLevel = "level" // FieldModifier holds the string denoting the modifier vertex property in the database. FieldModifier = "modifier" // FieldNeedRefresh holds the string denoting the need_refresh vertex property in the database. FieldNeedRefresh = "need_refresh" // EdgeCity holds the string denoting the city edge name in mutations. EdgeCity = "city" // EdgeQueue holds the string denoting the queue edge name in mutations. EdgeQueue = "queue" // Table holds the table name of the construction in the database. Table = "constructions" // CityTable is the table the holds the city relation/edge. CityTable = "constructions" // CityInverseTable is the table name for the City entity. // It exists in this package in order to avoid circular dependency with the "city" package. CityInverseTable = "cities" // CityColumn is the table column denoting the city relation/edge. CityColumn = "city_constructions" // QueueTable is the table the holds the queue relation/edge. QueueTable = "queues" // QueueInverseTable is the table name for the Queue entity. // It exists in this package in order to avoid circular dependency with the "queue" package. QueueInverseTable = "queues" // QueueColumn is the table column denoting the queue relation/edge. QueueColumn = "construction_queue" )
Variables ¶
var ( // DefaultRawProduction holds the default value on creation for the raw_production field. DefaultRawProduction int // DefaultType holds the default value on creation for the type field. DefaultType int // DefaultLevel holds the default value on creation for the level field. DefaultLevel int // DefaultModifier holds the default value on creation for the modifier field. DefaultModifier float64 // DefaultNeedRefresh holds the default value on creation for the need_refresh field. DefaultNeedRefresh bool )
var Columns = []string{ FieldID, FieldX, FieldY, FieldRawProduction, FieldType, FieldLevel, FieldModifier, FieldNeedRefresh, }
Columns holds all SQL columns for construction fields.
var ForeignKeys = []string{
"city_constructions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Construction type.
Functions ¶
func And ¶
func And(predicates ...predicate.Construction) predicate.Construction
And groups list of predicates with the AND operator between them.
func HasCity ¶
func HasCity() predicate.Construction
HasCity applies the HasEdge predicate on the "city" edge.
func HasCityWith ¶
func HasCityWith(preds ...predicate.City) predicate.Construction
HasCityWith applies the HasEdge predicate on the "city" edge with a given conditions (other predicates).
func HasQueue ¶
func HasQueue() predicate.Construction
HasQueue applies the HasEdge predicate on the "queue" edge.
func HasQueueWith ¶
func HasQueueWith(preds ...predicate.Queue) predicate.Construction
HasQueueWith applies the HasEdge predicate on the "queue" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Construction
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Construction
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Construction
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Construction
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Construction
IDNotIn applies the NotIn predicate on the ID field.
func Level ¶
func Level(v int) predicate.Construction
Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
func LevelEQ ¶
func LevelEQ(v int) predicate.Construction
LevelEQ applies the EQ predicate on the "level" field.
func LevelGT ¶
func LevelGT(v int) predicate.Construction
LevelGT applies the GT predicate on the "level" field.
func LevelGTE ¶
func LevelGTE(v int) predicate.Construction
LevelGTE applies the GTE predicate on the "level" field.
func LevelIn ¶
func LevelIn(vs ...int) predicate.Construction
LevelIn applies the In predicate on the "level" field.
func LevelLT ¶
func LevelLT(v int) predicate.Construction
LevelLT applies the LT predicate on the "level" field.
func LevelLTE ¶
func LevelLTE(v int) predicate.Construction
LevelLTE applies the LTE predicate on the "level" field.
func LevelNEQ ¶
func LevelNEQ(v int) predicate.Construction
LevelNEQ applies the NEQ predicate on the "level" field.
func LevelNotIn ¶
func LevelNotIn(vs ...int) predicate.Construction
LevelNotIn applies the NotIn predicate on the "level" field.
func Modifier ¶
func Modifier(v float64) predicate.Construction
Modifier applies equality check predicate on the "modifier" field. It's identical to ModifierEQ.
func ModifierEQ ¶
func ModifierEQ(v float64) predicate.Construction
ModifierEQ applies the EQ predicate on the "modifier" field.
func ModifierGT ¶
func ModifierGT(v float64) predicate.Construction
ModifierGT applies the GT predicate on the "modifier" field.
func ModifierGTE ¶
func ModifierGTE(v float64) predicate.Construction
ModifierGTE applies the GTE predicate on the "modifier" field.
func ModifierIn ¶
func ModifierIn(vs ...float64) predicate.Construction
ModifierIn applies the In predicate on the "modifier" field.
func ModifierLT ¶
func ModifierLT(v float64) predicate.Construction
ModifierLT applies the LT predicate on the "modifier" field.
func ModifierLTE ¶
func ModifierLTE(v float64) predicate.Construction
ModifierLTE applies the LTE predicate on the "modifier" field.
func ModifierNEQ ¶
func ModifierNEQ(v float64) predicate.Construction
ModifierNEQ applies the NEQ predicate on the "modifier" field.
func ModifierNotIn ¶
func ModifierNotIn(vs ...float64) predicate.Construction
ModifierNotIn applies the NotIn predicate on the "modifier" field.
func NeedRefresh ¶
func NeedRefresh(v bool) predicate.Construction
NeedRefresh applies equality check predicate on the "need_refresh" field. It's identical to NeedRefreshEQ.
func NeedRefreshEQ ¶
func NeedRefreshEQ(v bool) predicate.Construction
NeedRefreshEQ applies the EQ predicate on the "need_refresh" field.
func NeedRefreshNEQ ¶
func NeedRefreshNEQ(v bool) predicate.Construction
NeedRefreshNEQ applies the NEQ predicate on the "need_refresh" field.
func Not ¶
func Not(p predicate.Construction) predicate.Construction
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Construction) predicate.Construction
Or groups list of predicates with the OR operator between them.
func RawProduction ¶
func RawProduction(v int) predicate.Construction
RawProduction applies equality check predicate on the "raw_production" field. It's identical to RawProductionEQ.
func RawProductionEQ ¶
func RawProductionEQ(v int) predicate.Construction
RawProductionEQ applies the EQ predicate on the "raw_production" field.
func RawProductionGT ¶
func RawProductionGT(v int) predicate.Construction
RawProductionGT applies the GT predicate on the "raw_production" field.
func RawProductionGTE ¶
func RawProductionGTE(v int) predicate.Construction
RawProductionGTE applies the GTE predicate on the "raw_production" field.
func RawProductionIn ¶
func RawProductionIn(vs ...int) predicate.Construction
RawProductionIn applies the In predicate on the "raw_production" field.
func RawProductionLT ¶
func RawProductionLT(v int) predicate.Construction
RawProductionLT applies the LT predicate on the "raw_production" field.
func RawProductionLTE ¶
func RawProductionLTE(v int) predicate.Construction
RawProductionLTE applies the LTE predicate on the "raw_production" field.
func RawProductionNEQ ¶
func RawProductionNEQ(v int) predicate.Construction
RawProductionNEQ applies the NEQ predicate on the "raw_production" field.
func RawProductionNotIn ¶
func RawProductionNotIn(vs ...int) predicate.Construction
RawProductionNotIn applies the NotIn predicate on the "raw_production" field.
func Type ¶
func Type(v int) predicate.Construction
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeEQ ¶
func TypeEQ(v int) predicate.Construction
TypeEQ applies the EQ predicate on the "type" field.
func TypeGT ¶
func TypeGT(v int) predicate.Construction
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v int) predicate.Construction
TypeGTE applies the GTE predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...int) predicate.Construction
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v int) predicate.Construction
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v int) predicate.Construction
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v int) predicate.Construction
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...int) predicate.Construction
TypeNotIn applies the NotIn predicate on the "type" field.
func X ¶
func X(v int) predicate.Construction
X applies equality check predicate on the "x" field. It's identical to XEQ.
func XGTE ¶
func XGTE(v int) predicate.Construction
XGTE applies the GTE predicate on the "x" field.
func XIn ¶
func XIn(vs ...int) predicate.Construction
XIn applies the In predicate on the "x" field.
func XLTE ¶
func XLTE(v int) predicate.Construction
XLTE applies the LTE predicate on the "x" field.
func XNEQ ¶
func XNEQ(v int) predicate.Construction
XNEQ applies the NEQ predicate on the "x" field.
func XNotIn ¶
func XNotIn(vs ...int) predicate.Construction
XNotIn applies the NotIn predicate on the "x" field.
func Y ¶
func Y(v int) predicate.Construction
Y applies equality check predicate on the "y" field. It's identical to YEQ.
func YGTE ¶
func YGTE(v int) predicate.Construction
YGTE applies the GTE predicate on the "y" field.
func YIn ¶
func YIn(vs ...int) predicate.Construction
YIn applies the In predicate on the "y" field.
func YLTE ¶
func YLTE(v int) predicate.Construction
YLTE applies the LTE predicate on the "y" field.
func YNEQ ¶
func YNEQ(v int) predicate.Construction
YNEQ applies the NEQ predicate on the "y" field.
func YNotIn ¶
func YNotIn(vs ...int) predicate.Construction
YNotIn applies the NotIn predicate on the "y" field.
Types ¶
This section is empty.