Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Favorite) predicate.Favorite
- func Email(v string) predicate.Favorite
- func EmailContains(v string) predicate.Favorite
- func EmailContainsFold(v string) predicate.Favorite
- func EmailEQ(v string) predicate.Favorite
- func EmailEqualFold(v string) predicate.Favorite
- func EmailGT(v string) predicate.Favorite
- func EmailGTE(v string) predicate.Favorite
- func EmailHasPrefix(v string) predicate.Favorite
- func EmailHasSuffix(v string) predicate.Favorite
- func EmailIn(vs ...string) predicate.Favorite
- func EmailLT(v string) predicate.Favorite
- func EmailLTE(v string) predicate.Favorite
- func EmailNEQ(v string) predicate.Favorite
- func EmailNotIn(vs ...string) predicate.Favorite
- func HasNamespace() predicate.Favorite
- func HasNamespaceWith(preds ...predicate.Namespace) predicate.Favorite
- func ID(id int) predicate.Favorite
- func IDEQ(id int) predicate.Favorite
- func IDGT(id int) predicate.Favorite
- func IDGTE(id int) predicate.Favorite
- func IDIn(ids ...int) predicate.Favorite
- func IDLT(id int) predicate.Favorite
- func IDLTE(id int) predicate.Favorite
- func IDNEQ(id int) predicate.Favorite
- func IDNotIn(ids ...int) predicate.Favorite
- func NamespaceID(v int) predicate.Favorite
- func NamespaceIDEQ(v int) predicate.Favorite
- func NamespaceIDIn(vs ...int) predicate.Favorite
- func NamespaceIDIsNil() predicate.Favorite
- func NamespaceIDNEQ(v int) predicate.Favorite
- func NamespaceIDNotIn(vs ...int) predicate.Favorite
- func NamespaceIDNotNil() predicate.Favorite
- func Not(p predicate.Favorite) predicate.Favorite
- func Or(predicates ...predicate.Favorite) predicate.Favorite
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldEmail, FieldNamespaceID, }
Columns holds all SQL columns for favorite fields.
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func NamespaceID ¶
NamespaceID applies equality check predicate on the "namespace_id" field. It's identical to NamespaceIDEQ.
func NamespaceIDEQ ¶
NamespaceIDEQ applies the EQ predicate on the "namespace_id" field.
func NamespaceIDIn ¶
NamespaceIDIn applies the In predicate on the "namespace_id" field.
func NamespaceIDIsNil ¶
NamespaceIDIsNil applies the IsNil predicate on the "namespace_id" field.
func NamespaceIDNEQ ¶
NamespaceIDNEQ applies the NEQ predicate on the "namespace_id" field.
func NamespaceIDNotIn ¶
NamespaceIDNotIn applies the NotIn predicate on the "namespace_id" field.
func NamespaceIDNotNil ¶
NamespaceIDNotNil applies the NotNil predicate on the "namespace_id" 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 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.