scaleitem

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the scaleitem type in the database.
	Label = "scale_item"
	// FieldReverse holds the string denoting the reverse field in the database.
	FieldReverse = "reverse"
	// FieldScaleID holds the string denoting the scale_id field in the database.
	FieldScaleID = "scale_id"
	// FieldItemID holds the string denoting the item_id field in the database.
	FieldItemID = "item_id"
	// EdgeItem holds the string denoting the item edge name in mutations.
	EdgeItem = "item"
	// EdgeScale holds the string denoting the scale edge name in mutations.
	EdgeScale = "scale"
	// ItemFieldID holds the string denoting the ID field of the Item.
	ItemFieldID = "id"
	// ScaleFieldID holds the string denoting the ID field of the Scale.
	ScaleFieldID = "id"
	// Table holds the table name of the scaleitem in the database.
	Table = "scale_items"
	// ItemTable is the table that holds the item relation/edge.
	ItemTable = "scale_items"
	// ItemInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ItemInverseTable = "items"
	// ItemColumn is the table column denoting the item relation/edge.
	ItemColumn = "item_id"
	// ScaleTable is the table that holds the scale relation/edge.
	ScaleTable = "scale_items"
	// ScaleInverseTable is the table name for the Scale entity.
	// It exists in this package in order to avoid circular dependency with the "scale" package.
	ScaleInverseTable = "scales"
	// ScaleColumn is the table column denoting the scale relation/edge.
	ScaleColumn = "scale_id"
)

Variables

Columns holds all SQL columns for scaleitem fields.

View Source
var (
	// DefaultReverse holds the default value on creation for the "reverse" field.
	DefaultReverse bool
)

Functions

func And

func And(predicates ...predicate.ScaleItem) predicate.ScaleItem

And groups predicates with the AND operator between them.

func HasItem

func HasItem() predicate.ScaleItem

HasItem applies the HasEdge predicate on the "item" edge.

func HasItemWith

func HasItemWith(preds ...predicate.Item) predicate.ScaleItem

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

func HasScale

func HasScale() predicate.ScaleItem

HasScale applies the HasEdge predicate on the "scale" edge.

func HasScaleWith

func HasScaleWith(preds ...predicate.Scale) predicate.ScaleItem

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

func ItemID

func ItemID(v uuid.UUID) predicate.ScaleItem

ItemID applies equality check predicate on the "item_id" field. It's identical to ItemIDEQ.

func ItemIDEQ

func ItemIDEQ(v uuid.UUID) predicate.ScaleItem

ItemIDEQ applies the EQ predicate on the "item_id" field.

func ItemIDIn

func ItemIDIn(vs ...uuid.UUID) predicate.ScaleItem

ItemIDIn applies the In predicate on the "item_id" field.

func ItemIDNEQ

func ItemIDNEQ(v uuid.UUID) predicate.ScaleItem

ItemIDNEQ applies the NEQ predicate on the "item_id" field.

func ItemIDNotIn

func ItemIDNotIn(vs ...uuid.UUID) predicate.ScaleItem

ItemIDNotIn applies the NotIn predicate on the "item_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ScaleItem) predicate.ScaleItem

Or groups predicates with the OR operator between them.

func Reverse

func Reverse(v bool) predicate.ScaleItem

Reverse applies equality check predicate on the "reverse" field. It's identical to ReverseEQ.

func ReverseEQ

func ReverseEQ(v bool) predicate.ScaleItem

ReverseEQ applies the EQ predicate on the "reverse" field.

func ReverseNEQ

func ReverseNEQ(v bool) predicate.ScaleItem

ReverseNEQ applies the NEQ predicate on the "reverse" field.

func ScaleID

func ScaleID(v uuid.UUID) predicate.ScaleItem

ScaleID applies equality check predicate on the "scale_id" field. It's identical to ScaleIDEQ.

func ScaleIDEQ

func ScaleIDEQ(v uuid.UUID) predicate.ScaleItem

ScaleIDEQ applies the EQ predicate on the "scale_id" field.

func ScaleIDIn

func ScaleIDIn(vs ...uuid.UUID) predicate.ScaleItem

ScaleIDIn applies the In predicate on the "scale_id" field.

func ScaleIDNEQ

func ScaleIDNEQ(v uuid.UUID) predicate.ScaleItem

ScaleIDNEQ applies the NEQ predicate on the "scale_id" field.

func ScaleIDNotIn

func ScaleIDNotIn(vs ...uuid.UUID) predicate.ScaleItem

ScaleIDNotIn applies the NotIn predicate on the "scale_id" field.

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