Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscribe) predicate.Subscribe
- func Conf(v string) predicate.Subscribe
- func ConfContains(v string) predicate.Subscribe
- func ConfContainsFold(v string) predicate.Subscribe
- func ConfEQ(v string) predicate.Subscribe
- func ConfEqualFold(v string) predicate.Subscribe
- func ConfGT(v string) predicate.Subscribe
- func ConfGTE(v string) predicate.Subscribe
- func ConfHasPrefix(v string) predicate.Subscribe
- func ConfHasSuffix(v string) predicate.Subscribe
- func ConfIn(vs ...string) predicate.Subscribe
- func ConfLT(v string) predicate.Subscribe
- func ConfLTE(v string) predicate.Subscribe
- func ConfNEQ(v string) predicate.Subscribe
- func ConfNotIn(vs ...string) predicate.Subscribe
- func HasNodes() predicate.Subscribe
- func HasNodesWith(preds ...predicate.Node) predicate.Subscribe
- func HasProvider() predicate.Subscribe
- func HasProviderWith(preds ...predicate.Provider) predicate.Subscribe
- func HasUser() predicate.Subscribe
- func HasUserWith(preds ...predicate.User) predicate.Subscribe
- func ID(id int) predicate.Subscribe
- func IDEQ(id int) predicate.Subscribe
- func IDGT(id int) predicate.Subscribe
- func IDGTE(id int) predicate.Subscribe
- func IDIn(ids ...int) predicate.Subscribe
- func IDLT(id int) predicate.Subscribe
- func IDLTE(id int) predicate.Subscribe
- func IDNEQ(id int) predicate.Subscribe
- func IDNotIn(ids ...int) predicate.Subscribe
- func Link(v string) predicate.Subscribe
- func LinkContains(v string) predicate.Subscribe
- func LinkContainsFold(v string) predicate.Subscribe
- func LinkEQ(v string) predicate.Subscribe
- func LinkEqualFold(v string) predicate.Subscribe
- func LinkGT(v string) predicate.Subscribe
- func LinkGTE(v string) predicate.Subscribe
- func LinkHasPrefix(v string) predicate.Subscribe
- func LinkHasSuffix(v string) predicate.Subscribe
- func LinkIn(vs ...string) predicate.Subscribe
- func LinkIsNil() predicate.Subscribe
- func LinkLT(v string) predicate.Subscribe
- func LinkLTE(v string) predicate.Subscribe
- func LinkNEQ(v string) predicate.Subscribe
- func LinkNotIn(vs ...string) predicate.Subscribe
- func LinkNotNil() predicate.Subscribe
- func Name(v string) predicate.Subscribe
- func NameContains(v string) predicate.Subscribe
- func NameContainsFold(v string) predicate.Subscribe
- func NameEQ(v string) predicate.Subscribe
- func NameEqualFold(v string) predicate.Subscribe
- func NameGT(v string) predicate.Subscribe
- func NameGTE(v string) predicate.Subscribe
- func NameHasPrefix(v string) predicate.Subscribe
- func NameHasSuffix(v string) predicate.Subscribe
- func NameIn(vs ...string) predicate.Subscribe
- func NameLT(v string) predicate.Subscribe
- func NameLTE(v string) predicate.Subscribe
- func NameNEQ(v string) predicate.Subscribe
- func NameNotIn(vs ...string) predicate.Subscribe
- func Not(p predicate.Subscribe) predicate.Subscribe
- func Or(predicates ...predicate.Subscribe) predicate.Subscribe
- func ValidColumn(column string) bool
- type OrderOption
- func ByConf(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLink(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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.
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 ConfContains ¶
ConfContains applies the Contains predicate on the "conf" field.
func ConfContainsFold ¶
ConfContainsFold applies the ContainsFold predicate on the "conf" field.
func ConfEqualFold ¶
ConfEqualFold applies the EqualFold predicate on the "conf" field.
func ConfHasPrefix ¶
ConfHasPrefix applies the HasPrefix predicate on the "conf" field.
func ConfHasSuffix ¶
ConfHasSuffix applies the HasSuffix predicate on the "conf" field.
func HasNodesWith ¶
HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).
func HasProvider ¶
HasProvider applies the HasEdge predicate on the "provider" edge.
func HasProviderWith ¶
HasProviderWith applies the HasEdge predicate on the "provider" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LinkContains ¶
LinkContains applies the Contains predicate on the "link" field.
func LinkContainsFold ¶
LinkContainsFold applies the ContainsFold predicate on the "link" field.
func LinkEqualFold ¶
LinkEqualFold applies the EqualFold predicate on the "link" field.
func LinkHasPrefix ¶
LinkHasPrefix applies the HasPrefix predicate on the "link" field.
func LinkHasSuffix ¶
LinkHasSuffix applies the HasSuffix predicate on the "link" field.
func LinkNotNil ¶
LinkNotNil applies the NotNil predicate on the "link" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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 ¶
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.