Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ReadArticle) predicate.ReadArticle
- func ArticleID(v uuid.UUID) predicate.ReadArticle
- func ArticleIDEQ(v uuid.UUID) predicate.ReadArticle
- func ArticleIDIn(vs ...uuid.UUID) predicate.ReadArticle
- func ArticleIDNEQ(v uuid.UUID) predicate.ReadArticle
- func ArticleIDNotIn(vs ...uuid.UUID) predicate.ReadArticle
- func HasArticle() predicate.ReadArticle
- func HasArticleWith(preds ...predicate.Article) predicate.ReadArticle
- func ID(id uuid.UUID) predicate.ReadArticle
- func IDEQ(id uuid.UUID) predicate.ReadArticle
- func IDGT(id uuid.UUID) predicate.ReadArticle
- func IDGTE(id uuid.UUID) predicate.ReadArticle
- func IDIn(ids ...uuid.UUID) predicate.ReadArticle
- func IDLT(id uuid.UUID) predicate.ReadArticle
- func IDLTE(id uuid.UUID) predicate.ReadArticle
- func IDNEQ(id uuid.UUID) predicate.ReadArticle
- func IDNotIn(ids ...uuid.UUID) predicate.ReadArticle
- func Not(p predicate.ReadArticle) predicate.ReadArticle
- func Or(predicates ...predicate.ReadArticle) predicate.ReadArticle
- func ReadAt(v time.Time) predicate.ReadArticle
- func ReadAtEQ(v time.Time) predicate.ReadArticle
- func ReadAtGT(v time.Time) predicate.ReadArticle
- func ReadAtGTE(v time.Time) predicate.ReadArticle
- func ReadAtIn(vs ...time.Time) predicate.ReadArticle
- func ReadAtLT(v time.Time) predicate.ReadArticle
- func ReadAtLTE(v time.Time) predicate.ReadArticle
- func ReadAtNEQ(v time.Time) predicate.ReadArticle
- func ReadAtNotIn(vs ...time.Time) predicate.ReadArticle
- func UserID(v uuid.UUID) predicate.ReadArticle
- func UserIDEQ(v uuid.UUID) predicate.ReadArticle
- func UserIDGT(v uuid.UUID) predicate.ReadArticle
- func UserIDGTE(v uuid.UUID) predicate.ReadArticle
- func UserIDIn(vs ...uuid.UUID) predicate.ReadArticle
- func UserIDLT(v uuid.UUID) predicate.ReadArticle
- func UserIDLTE(v uuid.UUID) predicate.ReadArticle
- func UserIDNEQ(v uuid.UUID) predicate.ReadArticle
- func UserIDNotIn(vs ...uuid.UUID) predicate.ReadArticle
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the readarticle type in the database. Label = "read_article" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldArticleID holds the string denoting the article_id field in the database. FieldArticleID = "article_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldReadAt holds the string denoting the read_at field in the database. FieldReadAt = "read_at" // EdgeArticle holds the string denoting the article edge name in mutations. EdgeArticle = "article" // Table holds the table name of the readarticle in the database. Table = "read_articles" // ArticleTable is the table that holds the article relation/edge. ArticleTable = "read_articles" // 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 ( // DefaultReadAt holds the default value on creation for the "read_at" field. DefaultReadAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldArticleID, FieldUserID, FieldReadAt, }
Columns holds all SQL columns for readarticle fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ReadArticle) predicate.ReadArticle
And groups predicates with the AND operator between them.
func ArticleID ¶
func ArticleID(v uuid.UUID) predicate.ReadArticle
ArticleID applies equality check predicate on the "article_id" field. It's identical to ArticleIDEQ.
func ArticleIDEQ ¶
func ArticleIDEQ(v uuid.UUID) predicate.ReadArticle
ArticleIDEQ applies the EQ predicate on the "article_id" field.
func ArticleIDIn ¶
func ArticleIDIn(vs ...uuid.UUID) predicate.ReadArticle
ArticleIDIn applies the In predicate on the "article_id" field.
func ArticleIDNEQ ¶
func ArticleIDNEQ(v uuid.UUID) predicate.ReadArticle
ArticleIDNEQ applies the NEQ predicate on the "article_id" field.
func ArticleIDNotIn ¶
func ArticleIDNotIn(vs ...uuid.UUID) predicate.ReadArticle
ArticleIDNotIn applies the NotIn predicate on the "article_id" field.
func HasArticle ¶
func HasArticle() predicate.ReadArticle
HasArticle applies the HasEdge predicate on the "article" edge.
func HasArticleWith ¶
func HasArticleWith(preds ...predicate.Article) predicate.ReadArticle
HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ReadArticle
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ReadArticle
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ReadArticle
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ReadArticle
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ReadArticle
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ReadArticle
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ReadArticle
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ReadArticle
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ReadArticle) predicate.ReadArticle
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ReadArticle) predicate.ReadArticle
Or groups predicates with the OR operator between them.
func ReadAt ¶
func ReadAt(v time.Time) predicate.ReadArticle
ReadAt applies equality check predicate on the "read_at" field. It's identical to ReadAtEQ.
func ReadAtEQ ¶
func ReadAtEQ(v time.Time) predicate.ReadArticle
ReadAtEQ applies the EQ predicate on the "read_at" field.
func ReadAtGT ¶
func ReadAtGT(v time.Time) predicate.ReadArticle
ReadAtGT applies the GT predicate on the "read_at" field.
func ReadAtGTE ¶
func ReadAtGTE(v time.Time) predicate.ReadArticle
ReadAtGTE applies the GTE predicate on the "read_at" field.
func ReadAtIn ¶
func ReadAtIn(vs ...time.Time) predicate.ReadArticle
ReadAtIn applies the In predicate on the "read_at" field.
func ReadAtLT ¶
func ReadAtLT(v time.Time) predicate.ReadArticle
ReadAtLT applies the LT predicate on the "read_at" field.
func ReadAtLTE ¶
func ReadAtLTE(v time.Time) predicate.ReadArticle
ReadAtLTE applies the LTE predicate on the "read_at" field.
func ReadAtNEQ ¶
func ReadAtNEQ(v time.Time) predicate.ReadArticle
ReadAtNEQ applies the NEQ predicate on the "read_at" field.
func ReadAtNotIn ¶
func ReadAtNotIn(vs ...time.Time) predicate.ReadArticle
ReadAtNotIn applies the NotIn predicate on the "read_at" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.ReadArticle
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.ReadArticle
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v uuid.UUID) predicate.ReadArticle
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v uuid.UUID) predicate.ReadArticle
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.ReadArticle
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v uuid.UUID) predicate.ReadArticle
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v uuid.UUID) predicate.ReadArticle
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.ReadArticle
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.ReadArticle
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.