subscribe

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subscribe type in the database.
	Label = "subscribe"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldLink holds the string denoting the link field in the database.
	FieldLink = "link"
	// FieldConf holds the string denoting the conf field in the database.
	FieldConf = "conf"
	// EdgeProvider holds the string denoting the provider edge name in mutations.
	EdgeProvider = "provider"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// Table holds the table name of the subscribe in the database.
	Table = "subscribes"
	// ProviderTable is the table that holds the provider relation/edge.
	ProviderTable = "subscribes"
	// ProviderInverseTable is the table name for the Provider entity.
	// It exists in this package in order to avoid circular dependency with the "provider" package.
	ProviderInverseTable = "providers"
	// ProviderColumn is the table column denoting the provider relation/edge.
	ProviderColumn = "provider_subscribes"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "users"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "subscribe_user"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "nodes"
	// NodesInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodesInverseTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "subscribe_nodes"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ConfValidator is a validator for the "conf" field. It is called by the builders before save.
	ConfValidator func(string) error
)

Columns holds all SQL columns for subscribe fields.

View Source
var ForeignKeys = []string{
	"provider_subscribes",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "subscribes" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Subscribe) predicate.Subscribe

And groups predicates with the AND operator between them.

func Conf

func Conf(v string) predicate.Subscribe

Conf applies equality check predicate on the "conf" field. It's identical to ConfEQ.

func ConfContains

func ConfContains(v string) predicate.Subscribe

ConfContains applies the Contains predicate on the "conf" field.

func ConfContainsFold

func ConfContainsFold(v string) predicate.Subscribe

ConfContainsFold applies the ContainsFold predicate on the "conf" field.

func ConfEQ

func ConfEQ(v string) predicate.Subscribe

ConfEQ applies the EQ predicate on the "conf" field.

func ConfEqualFold

func ConfEqualFold(v string) predicate.Subscribe

ConfEqualFold applies the EqualFold predicate on the "conf" field.

func ConfGT

func ConfGT(v string) predicate.Subscribe

ConfGT applies the GT predicate on the "conf" field.

func ConfGTE

func ConfGTE(v string) predicate.Subscribe

ConfGTE applies the GTE predicate on the "conf" field.

func ConfHasPrefix

func ConfHasPrefix(v string) predicate.Subscribe

ConfHasPrefix applies the HasPrefix predicate on the "conf" field.

func ConfHasSuffix

func ConfHasSuffix(v string) predicate.Subscribe

ConfHasSuffix applies the HasSuffix predicate on the "conf" field.

func ConfIn

func ConfIn(vs ...string) predicate.Subscribe

ConfIn applies the In predicate on the "conf" field.

func ConfLT

func ConfLT(v string) predicate.Subscribe

ConfLT applies the LT predicate on the "conf" field.

func ConfLTE

func ConfLTE(v string) predicate.Subscribe

ConfLTE applies the LTE predicate on the "conf" field.

func ConfNEQ

func ConfNEQ(v string) predicate.Subscribe

ConfNEQ applies the NEQ predicate on the "conf" field.

func ConfNotIn

func ConfNotIn(vs ...string) predicate.Subscribe

ConfNotIn applies the NotIn predicate on the "conf" field.

func HasNodes

func HasNodes() predicate.Subscribe

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.Subscribe

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

func HasProvider

func HasProvider() predicate.Subscribe

HasProvider applies the HasEdge predicate on the "provider" edge.

func HasProviderWith

func HasProviderWith(preds ...predicate.Provider) predicate.Subscribe

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

func HasUser

func HasUser() predicate.Subscribe

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Subscribe

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

func ID

func ID(id int) predicate.Subscribe

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Subscribe

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Subscribe

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Subscribe

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Subscribe

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Subscribe

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Subscribe

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Link(v string) predicate.Subscribe

Link applies equality check predicate on the "link" field. It's identical to LinkEQ.

func LinkContains

func LinkContains(v string) predicate.Subscribe

LinkContains applies the Contains predicate on the "link" field.

func LinkContainsFold

func LinkContainsFold(v string) predicate.Subscribe

LinkContainsFold applies the ContainsFold predicate on the "link" field.

func LinkEQ

func LinkEQ(v string) predicate.Subscribe

LinkEQ applies the EQ predicate on the "link" field.

func LinkEqualFold

func LinkEqualFold(v string) predicate.Subscribe

LinkEqualFold applies the EqualFold predicate on the "link" field.

func LinkGT

func LinkGT(v string) predicate.Subscribe

LinkGT applies the GT predicate on the "link" field.

func LinkGTE

func LinkGTE(v string) predicate.Subscribe

LinkGTE applies the GTE predicate on the "link" field.

func LinkHasPrefix

func LinkHasPrefix(v string) predicate.Subscribe

LinkHasPrefix applies the HasPrefix predicate on the "link" field.

func LinkHasSuffix

func LinkHasSuffix(v string) predicate.Subscribe

LinkHasSuffix applies the HasSuffix predicate on the "link" field.

func LinkIn

func LinkIn(vs ...string) predicate.Subscribe

LinkIn applies the In predicate on the "link" field.

func LinkIsNil

func LinkIsNil() predicate.Subscribe

LinkIsNil applies the IsNil predicate on the "link" field.

func LinkLT

func LinkLT(v string) predicate.Subscribe

LinkLT applies the LT predicate on the "link" field.

func LinkLTE

func LinkLTE(v string) predicate.Subscribe

LinkLTE applies the LTE predicate on the "link" field.

func LinkNEQ

func LinkNEQ(v string) predicate.Subscribe

LinkNEQ applies the NEQ predicate on the "link" field.

func LinkNotIn

func LinkNotIn(vs ...string) predicate.Subscribe

LinkNotIn applies the NotIn predicate on the "link" field.

func LinkNotNil

func LinkNotNil() predicate.Subscribe

LinkNotNil applies the NotNil predicate on the "link" field.

func Name

func Name(v string) predicate.Subscribe

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

func NameContains

func NameContains(v string) predicate.Subscribe

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

func NameContainsFold

func NameContainsFold(v string) predicate.Subscribe

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

func NameEQ

func NameEQ(v string) predicate.Subscribe

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

func NameEqualFold

func NameEqualFold(v string) predicate.Subscribe

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

func NameGT

func NameGT(v string) predicate.Subscribe

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

func NameGTE

func NameGTE(v string) predicate.Subscribe

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Subscribe

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Subscribe

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Subscribe

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

func NameLTE

func NameLTE(v string) predicate.Subscribe

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

func NameNEQ

func NameNEQ(v string) predicate.Subscribe

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Subscribe) predicate.Subscribe

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

func ByConf

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

ByConf orders the results by the conf field.

func ByID

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

ByID orders the results by the id field.

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

ByLink orders the results by the link field.

func ByName

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

ByName orders the results by the name field.

func ByNodes

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

ByNodes orders the results by nodes terms.

func ByNodesCount

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

ByNodesCount orders the results by nodes count.

func ByProviderField

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

ByProviderField orders the results by provider field.

func ByUserField

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

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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