Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func Group(v string) predicate.Node
- func GroupContains(v string) predicate.Node
- func GroupContainsFold(v string) predicate.Node
- func GroupEQ(v string) predicate.Node
- func GroupEqualFold(v string) predicate.Node
- func GroupGT(v string) predicate.Node
- func GroupGTE(v string) predicate.Node
- func GroupHasPrefix(v string) predicate.Node
- func GroupHasSuffix(v string) predicate.Node
- func GroupIn(vs ...string) predicate.Node
- func GroupLT(v string) predicate.Node
- func GroupLTE(v string) predicate.Node
- func GroupNEQ(v string) predicate.Node
- func GroupNotIn(vs ...string) predicate.Node
- func HasSubscribe() predicate.Node
- func HasSubscribeWith(preds ...predicate.Subscribe) predicate.Node
- func ID(id int) predicate.Node
- func IDEQ(id int) predicate.Node
- func IDGT(id int) predicate.Node
- func IDGTE(id int) predicate.Node
- func IDIn(ids ...int) predicate.Node
- func IDLT(id int) predicate.Node
- func IDLTE(id int) predicate.Node
- func IDNEQ(id int) predicate.Node
- func IDNotIn(ids ...int) predicate.Node
- func Name(v string) predicate.Node
- func NameContains(v string) predicate.Node
- func NameContainsFold(v string) predicate.Node
- func NameEQ(v string) predicate.Node
- func NameEqualFold(v string) predicate.Node
- func NameGT(v string) predicate.Node
- func NameGTE(v string) predicate.Node
- func NameHasPrefix(v string) predicate.Node
- func NameHasSuffix(v string) predicate.Node
- func NameIn(vs ...string) predicate.Node
- func NameLT(v string) predicate.Node
- func NameLTE(v string) predicate.Node
- func NameNEQ(v string) predicate.Node
- func NameNotIn(vs ...string) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the node type in the database. Label = "node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGroup holds the string denoting the group field in the database. FieldGroup = "group" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeSubscribe holds the string denoting the subscribe edge name in mutations. EdgeSubscribe = "subscribe" // Table holds the table name of the node in the database. Table = "nodes" // SubscribeTable is the table that holds the subscribe relation/edge. SubscribeTable = "nodes" // SubscribeInverseTable is the table name for the Subscribe entity. // It exists in this package in order to avoid circular dependency with the "subscribe" package. SubscribeInverseTable = "subscribes" // SubscribeColumn is the table column denoting the subscribe relation/edge. SubscribeColumn = "subscribe_nodes" )
Variables ¶
var Columns = []string{ FieldID, FieldGroup, FieldName, }
Columns holds all SQL columns for node fields.
var ForeignKeys = []string{
"subscribe_nodes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "nodes" table and are not defined as standalone fields in the schema.
Functions ¶
func Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func HasSubscribe ¶
HasSubscribe applies the HasEdge predicate on the "subscribe" edge.
func HasSubscribeWith ¶
HasSubscribeWith applies the HasEdge predicate on the "subscribe" edge with a given conditions (other predicates).
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 Node queries.
func ByGroup ¶
func ByGroup(opts ...sql.OrderTermOption) OrderOption
ByGroup orders the results by the group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySubscribeField ¶
func BySubscribeField(field string, opts ...sql.OrderTermOption) OrderOption
BySubscribeField orders the results by subscribe field.