favorite

package
v5.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the favorite type in the database.
	Label = "favorite"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldNamespaceID holds the string denoting the namespace_id field in the database.
	FieldNamespaceID = "namespace_id"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// Table holds the table name of the favorite in the database.
	Table = "favorites"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "favorites"
	// NamespaceInverseTable is the table name for the Namespace entity.
	// It exists in this package in order to avoid circular dependency with the "namespace" package.
	NamespaceInverseTable = "namespaces"
	// NamespaceColumn is the table column denoting the namespace relation/edge.
	NamespaceColumn = "namespace_id"
)

Variables

Columns holds all SQL columns for favorite fields.

Functions

func And

func And(predicates ...predicate.Favorite) predicate.Favorite

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.Favorite

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Favorite

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Favorite

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Favorite

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Favorite

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Favorite

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Favorite

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Favorite

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Favorite

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Favorite

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Favorite

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Favorite

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Favorite

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Favorite

EmailNotIn applies the NotIn predicate on the "email" field.

func HasNamespace

func HasNamespace() predicate.Favorite

HasNamespace applies the HasEdge predicate on the "namespace" edge.

func HasNamespaceWith

func HasNamespaceWith(preds ...predicate.Namespace) predicate.Favorite

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

func ID

func ID(id int) predicate.Favorite

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Favorite

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Favorite

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Favorite

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Favorite

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Favorite

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Favorite

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NamespaceID

func NamespaceID(v int) predicate.Favorite

NamespaceID applies equality check predicate on the "namespace_id" field. It's identical to NamespaceIDEQ.

func NamespaceIDEQ

func NamespaceIDEQ(v int) predicate.Favorite

NamespaceIDEQ applies the EQ predicate on the "namespace_id" field.

func NamespaceIDIn

func NamespaceIDIn(vs ...int) predicate.Favorite

NamespaceIDIn applies the In predicate on the "namespace_id" field.

func NamespaceIDIsNil

func NamespaceIDIsNil() predicate.Favorite

NamespaceIDIsNil applies the IsNil predicate on the "namespace_id" field.

func NamespaceIDNEQ

func NamespaceIDNEQ(v int) predicate.Favorite

NamespaceIDNEQ applies the NEQ predicate on the "namespace_id" field.

func NamespaceIDNotIn

func NamespaceIDNotIn(vs ...int) predicate.Favorite

NamespaceIDNotIn applies the NotIn predicate on the "namespace_id" field.

func NamespaceIDNotNil

func NamespaceIDNotNil() predicate.Favorite

NamespaceIDNotNil applies the NotNil predicate on the "namespace_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Favorite) predicate.Favorite

Or groups predicates with the OR operator between them.

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 Favorite queries.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByNamespaceField

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

ByNamespaceField orders the results by namespace field.

func ByNamespaceID

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

ByNamespaceID orders the results by the namespace_id field.

Jump to

Keyboard shortcuts

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