Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasComments() predicate.User
- func HasCommentsWith(preds ...predicate.Comment) predicate.User
- func HasPosts() predicate.User
- func HasPostsWith(preds ...predicate.Post) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Secret(v string) predicate.User
- func SecretContains(v string) predicate.User
- func SecretContainsFold(v string) predicate.User
- func SecretEQ(v string) predicate.User
- func SecretEqualFold(v string) predicate.User
- func SecretGT(v string) predicate.User
- func SecretGTE(v string) predicate.User
- func SecretHasPrefix(v string) predicate.User
- func SecretHasSuffix(v string) predicate.User
- func SecretIn(vs ...string) predicate.User
- func SecretLT(v string) predicate.User
- func SecretLTE(v string) predicate.User
- func SecretNEQ(v string) predicate.User
- func SecretNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type Order
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) Order
- func ByCommentsCount(opts ...sql.OrderTermOption) Order
- func ByCreatedAt(opts ...sql.OrderTermOption) Order
- func ByEmail(opts ...sql.OrderTermOption) Order
- func ByID(opts ...sql.OrderTermOption) Order
- func ByName(opts ...sql.OrderTermOption) Order
- func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) Order
- func ByPostsCount(opts ...sql.OrderTermOption) Order
- func BySecret(opts ...sql.OrderTermOption) Order
- func ByUpdatedAt(opts ...sql.OrderTermOption) Order
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // 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" // FieldSecret holds the string denoting the secret field in the database. FieldSecret = "secret" // FieldName holds the string denoting the name field in the database. FieldName = "name" // 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" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // Table holds the table name of the user in the database. Table = "users" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "user_posts" // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "comments" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "comments" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "user_comments" )
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, FieldEmail, FieldSecret, FieldName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" 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 Secret ¶
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretContains ¶
SecretContains applies the Contains predicate on the "secret" field.
func SecretContainsFold ¶
SecretContainsFold applies the ContainsFold predicate on the "secret" field.
func SecretEqualFold ¶
SecretEqualFold applies the EqualFold predicate on the "secret" field.
func SecretHasPrefix ¶
SecretHasPrefix applies the HasPrefix predicate on the "secret" field.
func SecretHasSuffix ¶
SecretHasSuffix applies the HasSuffix predicate on the "secret" field.
func SecretNotIn ¶
SecretNotIn applies the NotIn predicate on the "secret" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Order ¶
Order defines the ordering method for the User queries.
func ByComments ¶
ByComments orders the results by comments terms.
func ByCommentsCount ¶
func ByCommentsCount(opts ...sql.OrderTermOption) Order
ByCommentsCount orders the results by comments count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) Order
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) Order
ByEmail orders the results by the email field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) Order
ByName orders the results by the name field.
func ByPostsCount ¶
func ByPostsCount(opts ...sql.OrderTermOption) Order
ByPostsCount orders the results by posts count.
func BySecret ¶
func BySecret(opts ...sql.OrderTermOption) Order
BySecret orders the results by the secret field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) Order
ByUpdatedAt orders the results by the updated_at field.