Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ArticleTag) predicate.ArticleTag
- func ArticleID(v uuid.UUID) predicate.ArticleTag
- func ArticleIDEQ(v uuid.UUID) predicate.ArticleTag
- func ArticleIDIn(vs ...uuid.UUID) predicate.ArticleTag
- func ArticleIDNEQ(v uuid.UUID) predicate.ArticleTag
- func ArticleIDNotIn(vs ...uuid.UUID) predicate.ArticleTag
- func HasArticle() predicate.ArticleTag
- func HasArticleWith(preds ...predicate.Article) predicate.ArticleTag
- func ID(id uuid.UUID) predicate.ArticleTag
- func IDEQ(id uuid.UUID) predicate.ArticleTag
- func IDGT(id uuid.UUID) predicate.ArticleTag
- func IDGTE(id uuid.UUID) predicate.ArticleTag
- func IDIn(ids ...uuid.UUID) predicate.ArticleTag
- func IDLT(id uuid.UUID) predicate.ArticleTag
- func IDLTE(id uuid.UUID) predicate.ArticleTag
- func IDNEQ(id uuid.UUID) predicate.ArticleTag
- func IDNotIn(ids ...uuid.UUID) predicate.ArticleTag
- func Not(p predicate.ArticleTag) predicate.ArticleTag
- func Or(predicates ...predicate.ArticleTag) predicate.ArticleTag
- func Tag(v string) predicate.ArticleTag
- func TagContains(v string) predicate.ArticleTag
- func TagContainsFold(v string) predicate.ArticleTag
- func TagEQ(v string) predicate.ArticleTag
- func TagEqualFold(v string) predicate.ArticleTag
- func TagGT(v string) predicate.ArticleTag
- func TagGTE(v string) predicate.ArticleTag
- func TagHasPrefix(v string) predicate.ArticleTag
- func TagHasSuffix(v string) predicate.ArticleTag
- func TagIn(vs ...string) predicate.ArticleTag
- func TagLT(v string) predicate.ArticleTag
- func TagLTE(v string) predicate.ArticleTag
- func TagNEQ(v string) predicate.ArticleTag
- func TagNotIn(vs ...string) predicate.ArticleTag
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the articletag type in the database. Label = "article_tag" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTag holds the string denoting the tag field in the database. FieldTag = "tag" // FieldArticleID holds the string denoting the article_id field in the database. FieldArticleID = "article_id" // EdgeArticle holds the string denoting the article edge name in mutations. EdgeArticle = "article" // Table holds the table name of the articletag in the database. Table = "article_tags" // ArticleTable is the table that holds the article relation/edge. ArticleTable = "article_tags" // ArticleInverseTable is the table name for the Article entity. // It exists in this package in order to avoid circular dependency with the "article" package. ArticleInverseTable = "articles" // ArticleColumn is the table column denoting the article relation/edge. ArticleColumn = "article_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTag, FieldArticleID, }
Columns holds all SQL columns for articletag fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.ArticleTag) predicate.ArticleTag
And groups predicates with the AND operator between them.
func ArticleID ¶
func ArticleID(v uuid.UUID) predicate.ArticleTag
ArticleID applies equality check predicate on the "article_id" field. It's identical to ArticleIDEQ.
func ArticleIDEQ ¶
func ArticleIDEQ(v uuid.UUID) predicate.ArticleTag
ArticleIDEQ applies the EQ predicate on the "article_id" field.
func ArticleIDIn ¶
func ArticleIDIn(vs ...uuid.UUID) predicate.ArticleTag
ArticleIDIn applies the In predicate on the "article_id" field.
func ArticleIDNEQ ¶
func ArticleIDNEQ(v uuid.UUID) predicate.ArticleTag
ArticleIDNEQ applies the NEQ predicate on the "article_id" field.
func ArticleIDNotIn ¶
func ArticleIDNotIn(vs ...uuid.UUID) predicate.ArticleTag
ArticleIDNotIn applies the NotIn predicate on the "article_id" field.
func HasArticle ¶
func HasArticle() predicate.ArticleTag
HasArticle applies the HasEdge predicate on the "article" edge.
func HasArticleWith ¶
func HasArticleWith(preds ...predicate.Article) predicate.ArticleTag
HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ArticleTag
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ArticleTag
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ArticleTag
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ArticleTag
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ArticleTag
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ArticleTag
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ArticleTag
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ArticleTag
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ArticleTag) predicate.ArticleTag
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ArticleTag) predicate.ArticleTag
Or groups predicates with the OR operator between them.
func Tag ¶
func Tag(v string) predicate.ArticleTag
Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.
func TagContains ¶
func TagContains(v string) predicate.ArticleTag
TagContains applies the Contains predicate on the "tag" field.
func TagContainsFold ¶
func TagContainsFold(v string) predicate.ArticleTag
TagContainsFold applies the ContainsFold predicate on the "tag" field.
func TagEQ ¶
func TagEQ(v string) predicate.ArticleTag
TagEQ applies the EQ predicate on the "tag" field.
func TagEqualFold ¶
func TagEqualFold(v string) predicate.ArticleTag
TagEqualFold applies the EqualFold predicate on the "tag" field.
func TagGT ¶
func TagGT(v string) predicate.ArticleTag
TagGT applies the GT predicate on the "tag" field.
func TagGTE ¶
func TagGTE(v string) predicate.ArticleTag
TagGTE applies the GTE predicate on the "tag" field.
func TagHasPrefix ¶
func TagHasPrefix(v string) predicate.ArticleTag
TagHasPrefix applies the HasPrefix predicate on the "tag" field.
func TagHasSuffix ¶
func TagHasSuffix(v string) predicate.ArticleTag
TagHasSuffix applies the HasSuffix predicate on the "tag" field.
func TagIn ¶
func TagIn(vs ...string) predicate.ArticleTag
TagIn applies the In predicate on the "tag" field.
func TagLT ¶
func TagLT(v string) predicate.ArticleTag
TagLT applies the LT predicate on the "tag" field.
func TagLTE ¶
func TagLTE(v string) predicate.ArticleTag
TagLTE applies the LTE predicate on the "tag" field.
func TagNEQ ¶
func TagNEQ(v string) predicate.ArticleTag
TagNEQ applies the NEQ predicate on the "tag" field.
func TagNotIn ¶
func TagNotIn(vs ...string) predicate.ArticleTag
TagNotIn applies the NotIn predicate on the "tag" 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 ArticleTag queries.
func ByArticleField ¶
func ByArticleField(field string, opts ...sql.OrderTermOption) OrderOption
ByArticleField orders the results by article field.
func ByArticleID ¶
func ByArticleID(opts ...sql.OrderTermOption) OrderOption
ByArticleID orders the results by the article_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTag ¶
func ByTag(opts ...sql.OrderTermOption) OrderOption
ByTag orders the results by the tag field.