construction

package
v0.0.0-...-8b1d7e1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for construction fields.

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

func ID(id int) predicate.Construction

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Construction

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Construction

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Construction

IDLT applies the LT 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

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

X applies equality check predicate on the "x" field. It's identical to XEQ.

func XEQ

func XEQ(v int) predicate.Construction

XEQ applies the EQ predicate on the "x" field.

func XGT

func XGT(v int) predicate.Construction

XGT applies the GT predicate on the "x" field.

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 XLT

func XLT(v int) predicate.Construction

XLT applies the LT 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

Y applies equality check predicate on the "y" field. It's identical to YEQ.

func YEQ

func YEQ(v int) predicate.Construction

YEQ applies the EQ predicate on the "y" field.

func YGT

func YGT(v int) predicate.Construction

YGT applies the GT predicate on the "y" field.

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 YLT

func YLT(v int) predicate.Construction

YLT applies the LT 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.

Jump to

Keyboard shortcuts

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