Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Channel) predicate.Channel
- func ChannelID(v string) predicate.Channel
- func ChannelIDContains(v string) predicate.Channel
- func ChannelIDContainsFold(v string) predicate.Channel
- func ChannelIDEQ(v string) predicate.Channel
- func ChannelIDEqualFold(v string) predicate.Channel
- func ChannelIDGT(v string) predicate.Channel
- func ChannelIDGTE(v string) predicate.Channel
- func ChannelIDHasPrefix(v string) predicate.Channel
- func ChannelIDHasSuffix(v string) predicate.Channel
- func ChannelIDIn(vs ...string) predicate.Channel
- func ChannelIDLT(v string) predicate.Channel
- func ChannelIDLTE(v string) predicate.Channel
- func ChannelIDNEQ(v string) predicate.Channel
- func ChannelIDNotIn(vs ...string) predicate.Channel
- func HasSubscribers() predicate.Channel
- func HasSubscribersWith(preds ...predicate.User) predicate.Channel
- func ID(id int) predicate.Channel
- func IDEQ(id int) predicate.Channel
- func IDGT(id int) predicate.Channel
- func IDGTE(id int) predicate.Channel
- func IDIn(ids ...int) predicate.Channel
- func IDLT(id int) predicate.Channel
- func IDLTE(id int) predicate.Channel
- func IDNEQ(id int) predicate.Channel
- func IDNotIn(ids ...int) predicate.Channel
- func Name(v string) predicate.Channel
- func NameContains(v string) predicate.Channel
- func NameContainsFold(v string) predicate.Channel
- func NameEQ(v string) predicate.Channel
- func NameEqualFold(v string) predicate.Channel
- func NameGT(v string) predicate.Channel
- func NameGTE(v string) predicate.Channel
- func NameHasPrefix(v string) predicate.Channel
- func NameHasSuffix(v string) predicate.Channel
- func NameIn(vs ...string) predicate.Channel
- func NameLT(v string) predicate.Channel
- func NameLTE(v string) predicate.Channel
- func NameNEQ(v string) predicate.Channel
- func NameNotIn(vs ...string) predicate.Channel
- func Not(p predicate.Channel) predicate.Channel
- func Or(predicates ...predicate.Channel) predicate.Channel
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the channel type in the database. Label = "channel" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChannelID holds the string denoting the channelid field in the database. FieldChannelID = "channel_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeSubscribers holds the string denoting the subscribers edge name in mutations. EdgeSubscribers = "Subscribers" // Table holds the table name of the channel in the database. Table = "channels" // SubscribersTable is the table the holds the Subscribers relation/edge. The primary key declared below. SubscribersTable = "channel_Subscribers" // SubscribersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. SubscribersInverseTable = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldChannelID, FieldName, }
Columns holds all SQL columns for channel fields.
var ( // SubscribersPrimaryKey and SubscribersColumn2 are the table columns denoting the // primary key for the Subscribers relation (M2M). SubscribersPrimaryKey = []string{"channel_id", "user_id"} )
Functions ¶
func ChannelID ¶
ChannelID applies equality check predicate on the "ChannelID" field. It's identical to ChannelIDEQ.
func ChannelIDContains ¶
ChannelIDContains applies the Contains predicate on the "ChannelID" field.
func ChannelIDContainsFold ¶
ChannelIDContainsFold applies the ContainsFold predicate on the "ChannelID" field.
func ChannelIDEQ ¶
ChannelIDEQ applies the EQ predicate on the "ChannelID" field.
func ChannelIDEqualFold ¶
ChannelIDEqualFold applies the EqualFold predicate on the "ChannelID" field.
func ChannelIDGT ¶
ChannelIDGT applies the GT predicate on the "ChannelID" field.
func ChannelIDGTE ¶
ChannelIDGTE applies the GTE predicate on the "ChannelID" field.
func ChannelIDHasPrefix ¶
ChannelIDHasPrefix applies the HasPrefix predicate on the "ChannelID" field.
func ChannelIDHasSuffix ¶
ChannelIDHasSuffix applies the HasSuffix predicate on the "ChannelID" field.
func ChannelIDIn ¶
ChannelIDIn applies the In predicate on the "ChannelID" field.
func ChannelIDLT ¶
ChannelIDLT applies the LT predicate on the "ChannelID" field.
func ChannelIDLTE ¶
ChannelIDLTE applies the LTE predicate on the "ChannelID" field.
func ChannelIDNEQ ¶
ChannelIDNEQ applies the NEQ predicate on the "ChannelID" field.
func ChannelIDNotIn ¶
ChannelIDNotIn applies the NotIn predicate on the "ChannelID" field.
func HasSubscribers ¶
HasSubscribers applies the HasEdge predicate on the "Subscribers" edge.
func HasSubscribersWith ¶
HasSubscribersWith applies the HasEdge predicate on the "Subscribers" 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 ¶
This section is empty.