setref

package
v1.66.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the setref type in the database.
	Label = "set_ref"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSetID holds the string denoting the set_id field in the database.
	FieldSetID = "set_id"
	// FieldRef holds the string denoting the ref field in the database.
	FieldRef = "ref"
	// EdgeSet holds the string denoting the set edge name in mutations.
	EdgeSet = "set"
	// Table holds the table name of the setref in the database.
	Table = "set_refs"
	// SetTable is the table that holds the set relation/edge.
	SetTable = "set_refs"
	// SetInverseTable is the table name for the Set entity.
	// It exists in this package in order to avoid circular dependency with the "set" package.
	SetInverseTable = "sets"
	// SetColumn is the table column denoting the set relation/edge.
	SetColumn = "set_id"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldSetID,
	FieldRef,
}

Columns holds all SQL columns for setref fields.

Functions

func And

func And(predicates ...predicate.SetRef) predicate.SetRef

And groups predicates with the AND operator between them.

func HasSet

func HasSet() predicate.SetRef

HasSet applies the HasEdge predicate on the "set" edge.

func HasSetWith

func HasSetWith(preds ...predicate.Set) predicate.SetRef

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

func ID

func ID(id int) predicate.SetRef

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SetRef

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SetRef

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SetRef

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SetRef

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SetRef

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SetRef

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SetRef) predicate.SetRef

Or groups predicates with the OR operator between them.

func Ref

func Ref(v []byte) predicate.SetRef

Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.

func RefEQ

func RefEQ(v []byte) predicate.SetRef

RefEQ applies the EQ predicate on the "ref" field.

func RefGT

func RefGT(v []byte) predicate.SetRef

RefGT applies the GT predicate on the "ref" field.

func RefGTE

func RefGTE(v []byte) predicate.SetRef

RefGTE applies the GTE predicate on the "ref" field.

func RefIn

func RefIn(vs ...[]byte) predicate.SetRef

RefIn applies the In predicate on the "ref" field.

func RefLT

func RefLT(v []byte) predicate.SetRef

RefLT applies the LT predicate on the "ref" field.

func RefLTE

func RefLTE(v []byte) predicate.SetRef

RefLTE applies the LTE predicate on the "ref" field.

func RefNEQ

func RefNEQ(v []byte) predicate.SetRef

RefNEQ applies the NEQ predicate on the "ref" field.

func RefNotIn

func RefNotIn(vs ...[]byte) predicate.SetRef

RefNotIn applies the NotIn predicate on the "ref" field.

func SetID

func SetID(v int64) predicate.SetRef

SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.

func SetIDEQ

func SetIDEQ(v int64) predicate.SetRef

SetIDEQ applies the EQ predicate on the "set_id" field.

func SetIDIn

func SetIDIn(vs ...int64) predicate.SetRef

SetIDIn applies the In predicate on the "set_id" field.

func SetIDNEQ

func SetIDNEQ(v int64) predicate.SetRef

SetIDNEQ applies the NEQ predicate on the "set_id" field.

func SetIDNotIn

func SetIDNotIn(vs ...int64) predicate.SetRef

SetIDNotIn applies the NotIn predicate on the "set_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SetRef queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func BySetField

func BySetField(field string, opts ...sql.OrderTermOption) OrderOption

BySetField orders the results by set field.

func BySetID

func BySetID(opts ...sql.OrderTermOption) OrderOption

BySetID orders the results by the set_id field.

Jump to

Keyboard shortcuts

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