Documentation ¶
Index ¶
- Constants
- Variables
- func AdminId(v string) predicate.Reply
- func AdminIdContains(v string) predicate.Reply
- func AdminIdContainsFold(v string) predicate.Reply
- func AdminIdEQ(v string) predicate.Reply
- func AdminIdEqualFold(v string) predicate.Reply
- func AdminIdGT(v string) predicate.Reply
- func AdminIdGTE(v string) predicate.Reply
- func AdminIdHasPrefix(v string) predicate.Reply
- func AdminIdHasSuffix(v string) predicate.Reply
- func AdminIdIn(vs ...string) predicate.Reply
- func AdminIdLT(v string) predicate.Reply
- func AdminIdLTE(v string) predicate.Reply
- func AdminIdNEQ(v string) predicate.Reply
- func AdminIdNotIn(vs ...string) predicate.Reply
- func AdminName(v string) predicate.Reply
- func AdminNameContains(v string) predicate.Reply
- func AdminNameContainsFold(v string) predicate.Reply
- func AdminNameEQ(v string) predicate.Reply
- func AdminNameEqualFold(v string) predicate.Reply
- func AdminNameGT(v string) predicate.Reply
- func AdminNameGTE(v string) predicate.Reply
- func AdminNameHasPrefix(v string) predicate.Reply
- func AdminNameHasSuffix(v string) predicate.Reply
- func AdminNameIn(vs ...string) predicate.Reply
- func AdminNameLT(v string) predicate.Reply
- func AdminNameLTE(v string) predicate.Reply
- func AdminNameNEQ(v string) predicate.Reply
- func AdminNameNotIn(vs ...string) predicate.Reply
- func And(predicates ...predicate.Reply) predicate.Reply
- func CommentID(v uint64) predicate.Reply
- func CommentIDEQ(v uint64) predicate.Reply
- func CommentIDIn(vs ...uint64) predicate.Reply
- func CommentIDNEQ(v uint64) predicate.Reply
- func CommentIDNotIn(vs ...uint64) predicate.Reply
- func CreateTime(v time.Time) predicate.Reply
- func CreateTimeEQ(v time.Time) predicate.Reply
- func CreateTimeGT(v time.Time) predicate.Reply
- func CreateTimeGTE(v time.Time) predicate.Reply
- func CreateTimeIn(vs ...time.Time) predicate.Reply
- func CreateTimeLT(v time.Time) predicate.Reply
- func CreateTimeLTE(v time.Time) predicate.Reply
- func CreateTimeNEQ(v time.Time) predicate.Reply
- func CreateTimeNotIn(vs ...time.Time) 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 HasComment() predicate.Reply
- func HasCommentWith(preds ...predicate.Comment) predicate.Reply
- func ID(id uint64) predicate.Reply
- func IDEQ(id uint64) predicate.Reply
- func IDGT(id uint64) predicate.Reply
- func IDGTE(id uint64) predicate.Reply
- func IDIn(ids ...uint64) predicate.Reply
- func IDLT(id uint64) predicate.Reply
- func IDLTE(id uint64) predicate.Reply
- func IDNEQ(id uint64) predicate.Reply
- func IDNotIn(ids ...uint64) predicate.Reply
- func Not(p predicate.Reply) predicate.Reply
- func Or(predicates ...predicate.Reply) predicate.Reply
- func Reply(v string) predicate.Reply
- func ReplyContains(v string) predicate.Reply
- func ReplyContainsFold(v string) predicate.Reply
- func ReplyEQ(v string) predicate.Reply
- func ReplyEqualFold(v string) predicate.Reply
- func ReplyGT(v string) predicate.Reply
- func ReplyGTE(v string) predicate.Reply
- func ReplyHasPrefix(v string) predicate.Reply
- func ReplyHasSuffix(v string) predicate.Reply
- func ReplyIn(vs ...string) predicate.Reply
- func ReplyLT(v string) predicate.Reply
- func ReplyLTE(v string) predicate.Reply
- func ReplyNEQ(v string) predicate.Reply
- func ReplyNotIn(vs ...string) predicate.Reply
- func UpdateTime(v time.Time) predicate.Reply
- func UpdateTimeEQ(v time.Time) predicate.Reply
- func UpdateTimeGT(v time.Time) predicate.Reply
- func UpdateTimeGTE(v time.Time) predicate.Reply
- func UpdateTimeIn(vs ...time.Time) predicate.Reply
- func UpdateTimeLT(v time.Time) predicate.Reply
- func UpdateTimeLTE(v time.Time) predicate.Reply
- func UpdateTimeNEQ(v time.Time) predicate.Reply
- func UpdateTimeNotIn(vs ...time.Time) 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 ByAdminId(opts ...sql.OrderTermOption) OrderOption
- func ByAdminName(opts ...sql.OrderTermOption) OrderOption
- func ByCommentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCommentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByReply(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(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" // FieldCommentID holds the string denoting the comment_id field in the database. FieldCommentID = "comment_id" // FieldReply holds the string denoting the reply field in the database. FieldReply = "reply" // FieldAdminId holds the string denoting the adminid field in the database. FieldAdminId = "admin_id" // FieldAdminName holds the string denoting the adminname field in the database. FieldAdminName = "admin_name" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeComment holds the string denoting the comment edge name in mutations. EdgeComment = "comment" // Table holds the table name of the reply in the database. Table = "mms_reply" // CommentTable is the table that holds the comment relation/edge. CommentTable = "mms_reply" // 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 = "mms_comment" // CommentColumn is the table column denoting the comment relation/edge. CommentColumn = "comment_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 // AdminIdValidator is a validator for the "adminId" field. It is called by the builders before save. AdminIdValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCommentID, FieldReply, FieldAdminId, FieldAdminName, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for reply fields.
Functions ¶
func AdminId ¶
AdminId applies equality check predicate on the "adminId" field. It's identical to AdminIdEQ.
func AdminIdContains ¶
AdminIdContains applies the Contains predicate on the "adminId" field.
func AdminIdContainsFold ¶
AdminIdContainsFold applies the ContainsFold predicate on the "adminId" field.
func AdminIdEqualFold ¶
AdminIdEqualFold applies the EqualFold predicate on the "adminId" field.
func AdminIdGTE ¶
AdminIdGTE applies the GTE predicate on the "adminId" field.
func AdminIdHasPrefix ¶
AdminIdHasPrefix applies the HasPrefix predicate on the "adminId" field.
func AdminIdHasSuffix ¶
AdminIdHasSuffix applies the HasSuffix predicate on the "adminId" field.
func AdminIdLTE ¶
AdminIdLTE applies the LTE predicate on the "adminId" field.
func AdminIdNEQ ¶
AdminIdNEQ applies the NEQ predicate on the "adminId" field.
func AdminIdNotIn ¶
AdminIdNotIn applies the NotIn predicate on the "adminId" field.
func AdminName ¶
AdminName applies equality check predicate on the "adminName" field. It's identical to AdminNameEQ.
func AdminNameContains ¶
AdminNameContains applies the Contains predicate on the "adminName" field.
func AdminNameContainsFold ¶
AdminNameContainsFold applies the ContainsFold predicate on the "adminName" field.
func AdminNameEQ ¶
AdminNameEQ applies the EQ predicate on the "adminName" field.
func AdminNameEqualFold ¶
AdminNameEqualFold applies the EqualFold predicate on the "adminName" field.
func AdminNameGT ¶
AdminNameGT applies the GT predicate on the "adminName" field.
func AdminNameGTE ¶
AdminNameGTE applies the GTE predicate on the "adminName" field.
func AdminNameHasPrefix ¶
AdminNameHasPrefix applies the HasPrefix predicate on the "adminName" field.
func AdminNameHasSuffix ¶
AdminNameHasSuffix applies the HasSuffix predicate on the "adminName" field.
func AdminNameIn ¶
AdminNameIn applies the In predicate on the "adminName" field.
func AdminNameLT ¶
AdminNameLT applies the LT predicate on the "adminName" field.
func AdminNameLTE ¶
AdminNameLTE applies the LTE predicate on the "adminName" field.
func AdminNameNEQ ¶
AdminNameNEQ applies the NEQ predicate on the "adminName" field.
func AdminNameNotIn ¶
AdminNameNotIn applies the NotIn predicate on the "adminName" 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 CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" 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 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 Reply ¶
Reply applies equality check predicate on the "reply" field. It's identical to ReplyEQ.
func ReplyContains ¶
ReplyContains applies the Contains predicate on the "reply" field.
func ReplyContainsFold ¶
ReplyContainsFold applies the ContainsFold predicate on the "reply" field.
func ReplyEqualFold ¶
ReplyEqualFold applies the EqualFold predicate on the "reply" field.
func ReplyHasPrefix ¶
ReplyHasPrefix applies the HasPrefix predicate on the "reply" field.
func ReplyHasSuffix ¶
ReplyHasSuffix applies the HasSuffix predicate on the "reply" field.
func ReplyNotIn ¶
ReplyNotIn applies the NotIn predicate on the "reply" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 ByAdminId ¶
func ByAdminId(opts ...sql.OrderTermOption) OrderOption
ByAdminId orders the results by the adminId field.
func ByAdminName ¶
func ByAdminName(opts ...sql.OrderTermOption) OrderOption
ByAdminName orders the results by the adminName 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 ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time 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 ByReply ¶
func ByReply(opts ...sql.OrderTermOption) OrderOption
ByReply orders the results by the reply field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.