Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserArticle) predicate.UserArticle
- func ArticleID(v uuid.UUID) predicate.UserArticle
- func ArticleIDEQ(v uuid.UUID) predicate.UserArticle
- func ArticleIDIn(vs ...uuid.UUID) predicate.UserArticle
- func ArticleIDNEQ(v uuid.UUID) predicate.UserArticle
- func ArticleIDNotIn(vs ...uuid.UUID) predicate.UserArticle
- func CreatedAt(v time.Time) predicate.UserArticle
- func CreatedAtEQ(v time.Time) predicate.UserArticle
- func CreatedAtGT(v time.Time) predicate.UserArticle
- func CreatedAtGTE(v time.Time) predicate.UserArticle
- func CreatedAtIn(vs ...time.Time) predicate.UserArticle
- func CreatedAtLT(v time.Time) predicate.UserArticle
- func CreatedAtLTE(v time.Time) predicate.UserArticle
- func CreatedAtNEQ(v time.Time) predicate.UserArticle
- func CreatedAtNotIn(vs ...time.Time) predicate.UserArticle
- func HasArticle() predicate.UserArticle
- func HasArticleWith(preds ...predicate.Article) predicate.UserArticle
- func HasUser() predicate.UserArticle
- func HasUserWith(preds ...predicate.User) predicate.UserArticle
- func ID(id uuid.UUID) predicate.UserArticle
- func IDEQ(id uuid.UUID) predicate.UserArticle
- func IDGT(id uuid.UUID) predicate.UserArticle
- func IDGTE(id uuid.UUID) predicate.UserArticle
- func IDIn(ids ...uuid.UUID) predicate.UserArticle
- func IDLT(id uuid.UUID) predicate.UserArticle
- func IDLTE(id uuid.UUID) predicate.UserArticle
- func IDNEQ(id uuid.UUID) predicate.UserArticle
- func IDNotIn(ids ...uuid.UUID) predicate.UserArticle
- func Not(p predicate.UserArticle) predicate.UserArticle
- func Or(predicates ...predicate.UserArticle) predicate.UserArticle
- func UpdatedAt(v time.Time) predicate.UserArticle
- func UpdatedAtEQ(v time.Time) predicate.UserArticle
- func UpdatedAtGT(v time.Time) predicate.UserArticle
- func UpdatedAtGTE(v time.Time) predicate.UserArticle
- func UpdatedAtIn(vs ...time.Time) predicate.UserArticle
- func UpdatedAtLT(v time.Time) predicate.UserArticle
- func UpdatedAtLTE(v time.Time) predicate.UserArticle
- func UpdatedAtNEQ(v time.Time) predicate.UserArticle
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserArticle
- func UserID(v uuid.UUID) predicate.UserArticle
- func UserIDEQ(v uuid.UUID) predicate.UserArticle
- func UserIDIn(vs ...uuid.UUID) predicate.UserArticle
- func UserIDNEQ(v uuid.UUID) predicate.UserArticle
- func UserIDNotIn(vs ...uuid.UUID) predicate.UserArticle
- func ValidColumn(column string) bool
- type OrderOption
- func ByArticleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByArticleID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userarticle type in the database. Label = "user_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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeArticle holds the string denoting the article edge name in mutations. EdgeArticle = "article" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userarticle in the database. Table = "user_articles" // ArticleTable is the table that holds the article relation/edge. ArticleTable = "user_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" // UserTable is the table that holds the user relation/edge. UserTable = "user_articles" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldArticleID, FieldUserID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for userarticle fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserArticle) predicate.UserArticle
And groups predicates with the AND operator between them.
func ArticleID ¶
func ArticleID(v uuid.UUID) predicate.UserArticle
ArticleID applies equality check predicate on the "article_id" field. It's identical to ArticleIDEQ.
func ArticleIDEQ ¶
func ArticleIDEQ(v uuid.UUID) predicate.UserArticle
ArticleIDEQ applies the EQ predicate on the "article_id" field.
func ArticleIDIn ¶
func ArticleIDIn(vs ...uuid.UUID) predicate.UserArticle
ArticleIDIn applies the In predicate on the "article_id" field.
func ArticleIDNEQ ¶
func ArticleIDNEQ(v uuid.UUID) predicate.UserArticle
ArticleIDNEQ applies the NEQ predicate on the "article_id" field.
func ArticleIDNotIn ¶
func ArticleIDNotIn(vs ...uuid.UUID) predicate.UserArticle
ArticleIDNotIn applies the NotIn predicate on the "article_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserArticle
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserArticle
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserArticle
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserArticle
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserArticle
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserArticle
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserArticle
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserArticle
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserArticle
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasArticle ¶
func HasArticle() predicate.UserArticle
HasArticle applies the HasEdge predicate on the "article" edge.
func HasArticleWith ¶
func HasArticleWith(preds ...predicate.Article) predicate.UserArticle
HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.UserArticle
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserArticle
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.UserArticle
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.UserArticle
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.UserArticle
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.UserArticle
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.UserArticle
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.UserArticle
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.UserArticle
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.UserArticle
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserArticle) predicate.UserArticle
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserArticle) predicate.UserArticle
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserArticle
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserArticle
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserArticle
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserArticle
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserArticle
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserArticle
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserArticle
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserArticle
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserArticle
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.UserArticle
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.UserArticle
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.UserArticle
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.UserArticle
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.UserArticle
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserArticle 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.