Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Reply) predicate.Reply
- func AuthorID(v uuid.UUID) predicate.Reply
- func AuthorIDEQ(v uuid.UUID) predicate.Reply
- func AuthorIDIn(vs ...uuid.UUID) predicate.Reply
- func AuthorIDNEQ(v uuid.UUID) predicate.Reply
- func AuthorIDNotIn(vs ...uuid.UUID) predicate.Reply
- func CommentID(v uuid.UUID) predicate.Reply
- func CommentIDEQ(v uuid.UUID) predicate.Reply
- func CommentIDIn(vs ...uuid.UUID) predicate.Reply
- func CommentIDNEQ(v uuid.UUID) predicate.Reply
- func CommentIDNotIn(vs ...uuid.UUID) predicate.Reply
- func CreatedAt(v time.Time) predicate.Reply
- func CreatedAtEQ(v time.Time) predicate.Reply
- func CreatedAtGT(v time.Time) predicate.Reply
- func CreatedAtGTE(v time.Time) predicate.Reply
- func CreatedAtIn(vs ...time.Time) predicate.Reply
- func CreatedAtLT(v time.Time) predicate.Reply
- func CreatedAtLTE(v time.Time) predicate.Reply
- func CreatedAtNEQ(v time.Time) predicate.Reply
- func CreatedAtNotIn(vs ...time.Time) predicate.Reply
- func HasAuthor() predicate.Reply
- func HasAuthorWith(preds ...predicate.User) predicate.Reply
- func HasComment() predicate.Reply
- func HasCommentWith(preds ...predicate.Comment) predicate.Reply
- func HasNotifications() predicate.Reply
- func HasNotificationsWith(preds ...predicate.Notification) predicate.Reply
- func HasReactions() predicate.Reply
- func HasReactionsWith(preds ...predicate.Reaction) predicate.Reply
- func ID(id uuid.UUID) predicate.Reply
- func IDEQ(id uuid.UUID) predicate.Reply
- func IDGT(id uuid.UUID) predicate.Reply
- func IDGTE(id uuid.UUID) predicate.Reply
- func IDIn(ids ...uuid.UUID) predicate.Reply
- func IDLT(id uuid.UUID) predicate.Reply
- func IDLTE(id uuid.UUID) predicate.Reply
- func IDNEQ(id uuid.UUID) predicate.Reply
- func IDNotIn(ids ...uuid.UUID) predicate.Reply
- func Not(p predicate.Reply) predicate.Reply
- func Or(predicates ...predicate.Reply) predicate.Reply
- func Slug(v string) predicate.Reply
- func SlugContains(v string) predicate.Reply
- func SlugContainsFold(v string) predicate.Reply
- func SlugEQ(v string) predicate.Reply
- func SlugEqualFold(v string) predicate.Reply
- func SlugGT(v string) predicate.Reply
- func SlugGTE(v string) predicate.Reply
- func SlugHasPrefix(v string) predicate.Reply
- func SlugHasSuffix(v string) predicate.Reply
- func SlugIn(vs ...string) predicate.Reply
- func SlugLT(v string) predicate.Reply
- func SlugLTE(v string) predicate.Reply
- func SlugNEQ(v string) predicate.Reply
- func SlugNotIn(vs ...string) predicate.Reply
- func Text(v string) predicate.Reply
- func TextContains(v string) predicate.Reply
- func TextContainsFold(v string) predicate.Reply
- func TextEQ(v string) predicate.Reply
- func TextEqualFold(v string) predicate.Reply
- func TextGT(v string) predicate.Reply
- func TextGTE(v string) predicate.Reply
- func TextHasPrefix(v string) predicate.Reply
- func TextHasSuffix(v string) predicate.Reply
- func TextIn(vs ...string) predicate.Reply
- func TextLT(v string) predicate.Reply
- func TextLTE(v string) predicate.Reply
- func TextNEQ(v string) predicate.Reply
- func TextNotIn(vs ...string) predicate.Reply
- func UpdatedAt(v time.Time) predicate.Reply
- func UpdatedAtEQ(v time.Time) predicate.Reply
- func UpdatedAtGT(v time.Time) predicate.Reply
- func UpdatedAtGTE(v time.Time) predicate.Reply
- func UpdatedAtIn(vs ...time.Time) predicate.Reply
- func UpdatedAtLT(v time.Time) predicate.Reply
- func UpdatedAtLTE(v time.Time) predicate.Reply
- func UpdatedAtNEQ(v time.Time) predicate.Reply
- func UpdatedAtNotIn(vs ...time.Time) predicate.Reply
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
- func ByCommentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCommentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNotifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotificationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReactions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReactionsCount(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func ByText(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the reply type in the database. Label = "reply" // FieldID holds the string denoting the id field in the database. FieldID = "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" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldAuthorID holds the string denoting the author_id field in the database. FieldAuthorID = "author_id" // FieldCommentID holds the string denoting the comment_id field in the database. FieldCommentID = "comment_id" // EdgeReactions holds the string denoting the reactions edge name in mutations. EdgeReactions = "reactions" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeComment holds the string denoting the comment edge name in mutations. EdgeComment = "comment" // EdgeNotifications holds the string denoting the notifications edge name in mutations. EdgeNotifications = "notifications" // Table holds the table name of the reply in the database. Table = "replies" // ReactionsTable is the table that holds the reactions relation/edge. ReactionsTable = "reactions" // ReactionsInverseTable is the table name for the Reaction entity. // It exists in this package in order to avoid circular dependency with the "reaction" package. ReactionsInverseTable = "reactions" // ReactionsColumn is the table column denoting the reactions relation/edge. ReactionsColumn = "reply_id" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "replies" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "author_id" // CommentTable is the table that holds the comment relation/edge. CommentTable = "replies" // CommentInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentInverseTable = "comments" // CommentColumn is the table column denoting the comment relation/edge. CommentColumn = "comment_id" // NotificationsTable is the table that holds the notifications relation/edge. NotificationsTable = "notifications" // NotificationsInverseTable is the table name for the Notification entity. // It exists in this package in order to avoid circular dependency with the "notification" package. NotificationsInverseTable = "notifications" // NotificationsColumn is the table column denoting the notifications relation/edge. NotificationsColumn = "reply_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 // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error // SlugValidator is a validator for the "slug" field. It is called by the builders before save. SlugValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldText, FieldSlug, FieldAuthorID, FieldCommentID, }
Columns holds all SQL columns for reply fields.
Functions ¶
func AuthorID ¶
AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.
func AuthorIDEQ ¶
AuthorIDEQ applies the EQ predicate on the "author_id" field.
func AuthorIDIn ¶
AuthorIDIn applies the In predicate on the "author_id" field.
func AuthorIDNEQ ¶
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
func AuthorIDNotIn ¶
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
func CommentID ¶
CommentID applies equality check predicate on the "comment_id" field. It's identical to CommentIDEQ.
func CommentIDEQ ¶
CommentIDEQ applies the EQ predicate on the "comment_id" field.
func CommentIDIn ¶
CommentIDIn applies the In predicate on the "comment_id" field.
func CommentIDNEQ ¶
CommentIDNEQ applies the NEQ predicate on the "comment_id" field.
func CommentIDNotIn ¶
CommentIDNotIn applies the NotIn predicate on the "comment_id" field.
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 HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasComment ¶
HasComment applies the HasEdge predicate on the "comment" edge.
func HasCommentWith ¶
HasCommentWith applies the HasEdge predicate on the "comment" edge with a given conditions (other predicates).
func HasNotifications ¶
HasNotifications applies the HasEdge predicate on the "notifications" edge.
func HasNotificationsWith ¶
func HasNotificationsWith(preds ...predicate.Notification) predicate.Reply
HasNotificationsWith applies the HasEdge predicate on the "notifications" edge with a given conditions (other predicates).
func HasReactions ¶
HasReactions applies the HasEdge predicate on the "reactions" edge.
func HasReactionsWith ¶
HasReactionsWith applies the HasEdge predicate on the "reactions" edge with a given conditions (other predicates).
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" 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 OrderOption ¶
OrderOption defines the ordering options for the Reply queries.
func ByAuthorField ¶
func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
ByAuthorField orders the results by author field.
func ByAuthorID ¶
func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
ByAuthorID orders the results by the author_id field.
func ByCommentField ¶
func ByCommentField(field string, opts ...sql.OrderTermOption) OrderOption
ByCommentField orders the results by comment field.
func ByCommentID ¶
func ByCommentID(opts ...sql.OrderTermOption) OrderOption
ByCommentID orders the results by the comment_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 ByNotifications ¶
func ByNotifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNotifications orders the results by notifications terms.
func ByNotificationsCount ¶
func ByNotificationsCount(opts ...sql.OrderTermOption) OrderOption
ByNotificationsCount orders the results by notifications count.
func ByReactions ¶
func ByReactions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReactions orders the results by reactions terms.
func ByReactionsCount ¶
func ByReactionsCount(opts ...sql.OrderTermOption) OrderOption
ByReactionsCount orders the results by reactions count.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.