set

package
v0.0.0-...-ab1f78f Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the set type in the database.
	Label = "set"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSpec holds the string denoting the spec field in the database.
	FieldSpec = "spec"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeItems holds the string denoting the items edge name in mutations.
	EdgeItems = "items"
	// Table holds the table name of the set in the database.
	Table = "sets"
	// ItemsTable is the table that holds the items relation/edge. The primary key declared below.
	ItemsTable = "item_sets"
	// ItemsInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ItemsInverseTable = "items"
)

Variables

Columns holds all SQL columns for set fields.

View Source
var (
	// ItemsPrimaryKey and ItemsColumn2 are the table columns denoting the
	// primary key for the items relation (M2M).
	ItemsPrimaryKey = []string{"item_id", "set_id"}
)

Functions

func And

func And(predicates ...predicate.Set) predicate.Set

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Set

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Set

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Set

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Set

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Set

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Set

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Set

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Set

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Set

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Set

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Set

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Set

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Set

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Set

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Set

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Set

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasItems

func HasItems() predicate.Set

HasItems applies the HasEdge predicate on the "items" edge.

func HasItemsWith

func HasItemsWith(preds ...predicate.Item) predicate.Set

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

func ID

func ID(id int64) predicate.Set

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Set

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Set

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Set

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Set

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Set

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Set

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Set

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Set

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Set

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Set

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Set

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Set

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Set

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Set

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Set

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Set

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Set

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Set

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Set

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Set

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Set

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Set

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.Set) predicate.Set

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Set) predicate.Set

Or groups predicates with the OR operator between them.

func Spec

func Spec(v string) predicate.Set

Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.

func SpecContains

func SpecContains(v string) predicate.Set

SpecContains applies the Contains predicate on the "spec" field.

func SpecContainsFold

func SpecContainsFold(v string) predicate.Set

SpecContainsFold applies the ContainsFold predicate on the "spec" field.

func SpecEQ

func SpecEQ(v string) predicate.Set

SpecEQ applies the EQ predicate on the "spec" field.

func SpecEqualFold

func SpecEqualFold(v string) predicate.Set

SpecEqualFold applies the EqualFold predicate on the "spec" field.

func SpecGT

func SpecGT(v string) predicate.Set

SpecGT applies the GT predicate on the "spec" field.

func SpecGTE

func SpecGTE(v string) predicate.Set

SpecGTE applies the GTE predicate on the "spec" field.

func SpecHasPrefix

func SpecHasPrefix(v string) predicate.Set

SpecHasPrefix applies the HasPrefix predicate on the "spec" field.

func SpecHasSuffix

func SpecHasSuffix(v string) predicate.Set

SpecHasSuffix applies the HasSuffix predicate on the "spec" field.

func SpecIn

func SpecIn(vs ...string) predicate.Set

SpecIn applies the In predicate on the "spec" field.

func SpecLT

func SpecLT(v string) predicate.Set

SpecLT applies the LT predicate on the "spec" field.

func SpecLTE

func SpecLTE(v string) predicate.Set

SpecLTE applies the LTE predicate on the "spec" field.

func SpecNEQ

func SpecNEQ(v string) predicate.Set

SpecNEQ applies the NEQ predicate on the "spec" field.

func SpecNotIn

func SpecNotIn(vs ...string) predicate.Set

SpecNotIn applies the NotIn predicate on the "spec" 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 Set queries.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByItems

func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByItems orders the results by items terms.

func ByItemsCount

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

ByItemsCount orders the results by items count.

func ByName

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

ByName orders the results by the name field.

func BySpec

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

BySpec orders the results by the spec field.

Jump to

Keyboard shortcuts

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