Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func Content(v string) predicate.Comment
- func ContentContains(v string) predicate.Comment
- func ContentContainsFold(v string) predicate.Comment
- func ContentEQ(v string) predicate.Comment
- func ContentEqualFold(v string) predicate.Comment
- func ContentGT(v string) predicate.Comment
- func ContentGTE(v string) predicate.Comment
- func ContentHasPrefix(v string) predicate.Comment
- func ContentHasSuffix(v string) predicate.Comment
- func ContentIn(vs ...string) predicate.Comment
- func ContentIsNil() predicate.Comment
- func ContentLT(v string) predicate.Comment
- func ContentLTE(v string) predicate.Comment
- func ContentNEQ(v string) predicate.Comment
- func ContentNotIn(vs ...string) predicate.Comment
- func ContentNotNil() predicate.Comment
- func CreateTime(v time.Time) predicate.Comment
- func CreateTimeEQ(v time.Time) predicate.Comment
- func CreateTimeGT(v time.Time) predicate.Comment
- func CreateTimeGTE(v time.Time) predicate.Comment
- func CreateTimeIn(vs ...time.Time) predicate.Comment
- func CreateTimeLT(v time.Time) predicate.Comment
- func CreateTimeLTE(v time.Time) predicate.Comment
- func CreateTimeNEQ(v time.Time) predicate.Comment
- func CreateTimeNotIn(vs ...time.Time) predicate.Comment
- func CreatedAt(v time.Time) predicate.Comment
- func CreatedAtEQ(v time.Time) predicate.Comment
- func CreatedAtGT(v time.Time) predicate.Comment
- func CreatedAtGTE(v time.Time) predicate.Comment
- func CreatedAtIn(vs ...time.Time) predicate.Comment
- func CreatedAtLT(v time.Time) predicate.Comment
- func CreatedAtLTE(v time.Time) predicate.Comment
- func CreatedAtNEQ(v time.Time) predicate.Comment
- func CreatedAtNotIn(vs ...time.Time) predicate.Comment
- func HasReplys() predicate.Comment
- func HasReplysWith(preds ...predicate.Reply) predicate.Comment
- func ID(id uint64) predicate.Comment
- func IDEQ(id uint64) predicate.Comment
- func IDGT(id uint64) predicate.Comment
- func IDGTE(id uint64) predicate.Comment
- func IDIn(ids ...uint64) predicate.Comment
- func IDLT(id uint64) predicate.Comment
- func IDLTE(id uint64) predicate.Comment
- func IDNEQ(id uint64) predicate.Comment
- func IDNotIn(ids ...uint64) predicate.Comment
- func IsReply(v bool) predicate.Comment
- func IsReplyEQ(v bool) predicate.Comment
- func IsReplyNEQ(v bool) predicate.Comment
- func MemberId(v string) predicate.Comment
- func MemberIdContains(v string) predicate.Comment
- func MemberIdContainsFold(v string) predicate.Comment
- func MemberIdEQ(v string) predicate.Comment
- func MemberIdEqualFold(v string) predicate.Comment
- func MemberIdGT(v string) predicate.Comment
- func MemberIdGTE(v string) predicate.Comment
- func MemberIdHasPrefix(v string) predicate.Comment
- func MemberIdHasSuffix(v string) predicate.Comment
- func MemberIdIn(vs ...string) predicate.Comment
- func MemberIdLT(v string) predicate.Comment
- func MemberIdLTE(v string) predicate.Comment
- func MemberIdNEQ(v string) predicate.Comment
- func MemberIdNotIn(vs ...string) predicate.Comment
- func Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func Title(v string) predicate.Comment
- func TitleContains(v string) predicate.Comment
- func TitleContainsFold(v string) predicate.Comment
- func TitleEQ(v string) predicate.Comment
- func TitleEqualFold(v string) predicate.Comment
- func TitleGT(v string) predicate.Comment
- func TitleGTE(v string) predicate.Comment
- func TitleHasPrefix(v string) predicate.Comment
- func TitleHasSuffix(v string) predicate.Comment
- func TitleIn(vs ...string) predicate.Comment
- func TitleIsNil() predicate.Comment
- func TitleLT(v string) predicate.Comment
- func TitleLTE(v string) predicate.Comment
- func TitleNEQ(v string) predicate.Comment
- func TitleNotIn(vs ...string) predicate.Comment
- func TitleNotNil() predicate.Comment
- func UpdateTime(v time.Time) predicate.Comment
- func UpdateTimeEQ(v time.Time) predicate.Comment
- func UpdateTimeGT(v time.Time) predicate.Comment
- func UpdateTimeGTE(v time.Time) predicate.Comment
- func UpdateTimeIn(vs ...time.Time) predicate.Comment
- func UpdateTimeLT(v time.Time) predicate.Comment
- func UpdateTimeLTE(v time.Time) predicate.Comment
- func UpdateTimeNEQ(v time.Time) predicate.Comment
- func UpdateTimeNotIn(vs ...time.Time) predicate.Comment
- func UpdatedAt(v time.Time) predicate.Comment
- func UpdatedAtEQ(v time.Time) predicate.Comment
- func UpdatedAtGT(v time.Time) predicate.Comment
- func UpdatedAtGTE(v time.Time) predicate.Comment
- func UpdatedAtIn(vs ...time.Time) predicate.Comment
- func UpdatedAtLT(v time.Time) predicate.Comment
- func UpdatedAtLTE(v time.Time) predicate.Comment
- func UpdatedAtNEQ(v time.Time) predicate.Comment
- func UpdatedAtNotIn(vs ...time.Time) predicate.Comment
- func ValidColumn(column string) bool
- type OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsReply(opts ...sql.OrderTermOption) OrderOption
- func ByMemberId(opts ...sql.OrderTermOption) OrderOption
- func ByReplys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReplysCount(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(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 comment type in the database. Label = "comment" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldMemberId holds the string denoting the memberid field in the database. FieldMemberId = "member_id" // 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" // FieldIsReply holds the string denoting the is_reply field in the database. FieldIsReply = "is_reply" // EdgeReplys holds the string denoting the replys edge name in mutations. EdgeReplys = "replys" // Table holds the table name of the comment in the database. Table = "mms_comment" // ReplysTable is the table that holds the replys relation/edge. ReplysTable = "mms_reply" // ReplysInverseTable is the table name for the Reply entity. // It exists in this package in order to avoid circular dependency with the "reply" package. ReplysInverseTable = "mms_reply" // ReplysColumn is the table column denoting the replys relation/edge. ReplysColumn = "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 // DefaultTitle holds the default value on creation for the "title" field. DefaultTitle string // DefaultContent holds the default value on creation for the "content" field. DefaultContent string // MemberIdValidator is a validator for the "memberId" field. It is called by the builders before save. MemberIdValidator 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 // DefaultIsReply holds the default value on creation for the "is_reply" field. DefaultIsReply bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldTitle, FieldContent, FieldMemberId, FieldCreateTime, FieldUpdateTime, FieldIsReply, }
Columns holds all SQL columns for comment fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" 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 HasReplysWith ¶
HasReplysWith applies the HasEdge predicate on the "replys" edge with a given conditions (other predicates).
func IsReply ¶
IsReply applies equality check predicate on the "is_reply" field. It's identical to IsReplyEQ.
func IsReplyNEQ ¶
IsReplyNEQ applies the NEQ predicate on the "is_reply" field.
func MemberId ¶
MemberId applies equality check predicate on the "memberId" field. It's identical to MemberIdEQ.
func MemberIdContains ¶
MemberIdContains applies the Contains predicate on the "memberId" field.
func MemberIdContainsFold ¶
MemberIdContainsFold applies the ContainsFold predicate on the "memberId" field.
func MemberIdEQ ¶
MemberIdEQ applies the EQ predicate on the "memberId" field.
func MemberIdEqualFold ¶
MemberIdEqualFold applies the EqualFold predicate on the "memberId" field.
func MemberIdGT ¶
MemberIdGT applies the GT predicate on the "memberId" field.
func MemberIdGTE ¶
MemberIdGTE applies the GTE predicate on the "memberId" field.
func MemberIdHasPrefix ¶
MemberIdHasPrefix applies the HasPrefix predicate on the "memberId" field.
func MemberIdHasSuffix ¶
MemberIdHasSuffix applies the HasSuffix predicate on the "memberId" field.
func MemberIdIn ¶
MemberIdIn applies the In predicate on the "memberId" field.
func MemberIdLT ¶
MemberIdLT applies the LT predicate on the "memberId" field.
func MemberIdLTE ¶
MemberIdLTE applies the LTE predicate on the "memberId" field.
func MemberIdNEQ ¶
MemberIdNEQ applies the NEQ predicate on the "memberId" field.
func MemberIdNotIn ¶
MemberIdNotIn applies the NotIn predicate on the "memberId" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" 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 Comment queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content 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 ByIsReply ¶
func ByIsReply(opts ...sql.OrderTermOption) OrderOption
ByIsReply orders the results by the is_reply field.
func ByMemberId ¶
func ByMemberId(opts ...sql.OrderTermOption) OrderOption
ByMemberId orders the results by the memberId field.
func ByReplys ¶
func ByReplys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReplys orders the results by replys terms.
func ByReplysCount ¶
func ByReplysCount(opts ...sql.OrderTermOption) OrderOption
ByReplysCount orders the results by replys count.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title 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.