Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func Body(v string) predicate.Comment
- func BodyContains(v string) predicate.Comment
- func BodyContainsFold(v string) predicate.Comment
- func BodyEQ(v string) predicate.Comment
- func BodyEqualFold(v string) predicate.Comment
- func BodyGT(v string) predicate.Comment
- func BodyGTE(v string) predicate.Comment
- func BodyHasPrefix(v string) predicate.Comment
- func BodyHasSuffix(v string) predicate.Comment
- func BodyIn(vs ...string) predicate.Comment
- func BodyIsNil() predicate.Comment
- func BodyLT(v string) predicate.Comment
- func BodyLTE(v string) predicate.Comment
- func BodyNEQ(v string) predicate.Comment
- func BodyNotIn(vs ...string) predicate.Comment
- func BodyNotNil() predicate.Comment
- func CommentableID(v string) predicate.Comment
- func CommentableIDContains(v string) predicate.Comment
- func CommentableIDContainsFold(v string) predicate.Comment
- func CommentableIDEQ(v string) predicate.Comment
- func CommentableIDEqualFold(v string) predicate.Comment
- func CommentableIDGT(v string) predicate.Comment
- func CommentableIDGTE(v string) predicate.Comment
- func CommentableIDHasPrefix(v string) predicate.Comment
- func CommentableIDHasSuffix(v string) predicate.Comment
- func CommentableIDIn(vs ...string) predicate.Comment
- func CommentableIDIsNil() predicate.Comment
- func CommentableIDLT(v string) predicate.Comment
- func CommentableIDLTE(v string) predicate.Comment
- func CommentableIDNEQ(v string) predicate.Comment
- func CommentableIDNotIn(vs ...string) predicate.Comment
- func CommentableIDNotNil() predicate.Comment
- func CommentableType(v string) predicate.Comment
- func CommentableTypeContains(v string) predicate.Comment
- func CommentableTypeContainsFold(v string) predicate.Comment
- func CommentableTypeEQ(v string) predicate.Comment
- func CommentableTypeEqualFold(v string) predicate.Comment
- func CommentableTypeGT(v string) predicate.Comment
- func CommentableTypeGTE(v string) predicate.Comment
- func CommentableTypeHasPrefix(v string) predicate.Comment
- func CommentableTypeHasSuffix(v string) predicate.Comment
- func CommentableTypeIn(vs ...string) predicate.Comment
- func CommentableTypeIsNil() predicate.Comment
- func CommentableTypeLT(v string) predicate.Comment
- func CommentableTypeLTE(v string) predicate.Comment
- func CommentableTypeNEQ(v string) predicate.Comment
- func CommentableTypeNotIn(vs ...string) predicate.Comment
- func CommentableTypeNotNil() 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 CreatedAtIsNil() 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 CreatedAtNotNil() predicate.Comment
- func DataIsNil() predicate.Comment
- func DataNotNil() predicate.Comment
- func ID(id string) predicate.Comment
- func IDContainsFold(id string) predicate.Comment
- func IDEQ(id string) predicate.Comment
- func IDEqualFold(id string) predicate.Comment
- func IDGT(id string) predicate.Comment
- func IDGTE(id string) predicate.Comment
- func IDIn(ids ...string) predicate.Comment
- func IDLT(id string) predicate.Comment
- func IDLTE(id string) predicate.Comment
- func IDNEQ(id string) predicate.Comment
- func IDNotIn(ids ...string) predicate.Comment
- func Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func Product(v string) predicate.Comment
- func ProductContains(v string) predicate.Comment
- func ProductContainsFold(v string) predicate.Comment
- func ProductEQ(v string) predicate.Comment
- func ProductEqualFold(v string) predicate.Comment
- func ProductGT(v string) predicate.Comment
- func ProductGTE(v string) predicate.Comment
- func ProductHasPrefix(v string) predicate.Comment
- func ProductHasSuffix(v string) predicate.Comment
- func ProductIn(vs ...string) predicate.Comment
- func ProductIsNil() predicate.Comment
- func ProductLT(v string) predicate.Comment
- func ProductLTE(v string) predicate.Comment
- func ProductNEQ(v string) predicate.Comment
- func ProductNotIn(vs ...string) predicate.Comment
- func ProductNotNil() predicate.Comment
- func URL(v string) predicate.Comment
- func URLContains(v string) predicate.Comment
- func URLContainsFold(v string) predicate.Comment
- func URLEQ(v string) predicate.Comment
- func URLEqualFold(v string) predicate.Comment
- func URLGT(v string) predicate.Comment
- func URLGTE(v string) predicate.Comment
- func URLHasPrefix(v string) predicate.Comment
- func URLHasSuffix(v string) predicate.Comment
- func URLIn(vs ...string) predicate.Comment
- func URLIsNil() predicate.Comment
- func URLLT(v string) predicate.Comment
- func URLLTE(v string) predicate.Comment
- func URLNEQ(v string) predicate.Comment
- func URLNotIn(vs ...string) predicate.Comment
- func URLNotNil() 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 UpdatedAtIsNil() 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 UpdatedAtNotNil() predicate.Comment
- func UserID(v string) predicate.Comment
- func UserIDContains(v string) predicate.Comment
- func UserIDContainsFold(v string) predicate.Comment
- func UserIDEQ(v string) predicate.Comment
- func UserIDEqualFold(v string) predicate.Comment
- func UserIDGT(v string) predicate.Comment
- func UserIDGTE(v string) predicate.Comment
- func UserIDHasPrefix(v string) predicate.Comment
- func UserIDHasSuffix(v string) predicate.Comment
- func UserIDIn(vs ...string) predicate.Comment
- func UserIDIsNil() predicate.Comment
- func UserIDLT(v string) predicate.Comment
- func UserIDLTE(v string) predicate.Comment
- func UserIDNEQ(v string) predicate.Comment
- func UserIDNotIn(vs ...string) predicate.Comment
- func UserIDNotNil() predicate.Comment
- func ValidColumn(column string) bool
- type OrderOption
- func ByBody(opts ...sql.OrderTermOption) OrderOption
- func ByCommentableID(opts ...sql.OrderTermOption) OrderOption
- func ByCommentableType(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProduct(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(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" // FieldProduct holds the string denoting the product field in the database. FieldProduct = "product" // FieldCommentableType holds the string denoting the commentable_type field in the database. FieldCommentableType = "commentable_type" // FieldCommentableID holds the string denoting the commentable_id field in the database. FieldCommentableID = "commentable_id" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // 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" // FieldData holds the string denoting the data field in the database. FieldData = "data" // Table holds the table name of the comment in the database. Table = "comments" )
Variables ¶
var Columns = []string{ FieldID, FieldProduct, FieldCommentableType, FieldCommentableID, FieldBody, FieldUserID, FieldURL, FieldCreatedAt, FieldUpdatedAt, FieldData, }
Columns holds all SQL columns for comment fields.
Functions ¶
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func BodyNotNil ¶
BodyNotNil applies the NotNil predicate on the "body" field.
func CommentableID ¶
CommentableID applies equality check predicate on the "commentable_id" field. It's identical to CommentableIDEQ.
func CommentableIDContains ¶
CommentableIDContains applies the Contains predicate on the "commentable_id" field.
func CommentableIDContainsFold ¶
CommentableIDContainsFold applies the ContainsFold predicate on the "commentable_id" field.
func CommentableIDEQ ¶
CommentableIDEQ applies the EQ predicate on the "commentable_id" field.
func CommentableIDEqualFold ¶
CommentableIDEqualFold applies the EqualFold predicate on the "commentable_id" field.
func CommentableIDGT ¶
CommentableIDGT applies the GT predicate on the "commentable_id" field.
func CommentableIDGTE ¶
CommentableIDGTE applies the GTE predicate on the "commentable_id" field.
func CommentableIDHasPrefix ¶
CommentableIDHasPrefix applies the HasPrefix predicate on the "commentable_id" field.
func CommentableIDHasSuffix ¶
CommentableIDHasSuffix applies the HasSuffix predicate on the "commentable_id" field.
func CommentableIDIn ¶
CommentableIDIn applies the In predicate on the "commentable_id" field.
func CommentableIDIsNil ¶
CommentableIDIsNil applies the IsNil predicate on the "commentable_id" field.
func CommentableIDLT ¶
CommentableIDLT applies the LT predicate on the "commentable_id" field.
func CommentableIDLTE ¶
CommentableIDLTE applies the LTE predicate on the "commentable_id" field.
func CommentableIDNEQ ¶
CommentableIDNEQ applies the NEQ predicate on the "commentable_id" field.
func CommentableIDNotIn ¶
CommentableIDNotIn applies the NotIn predicate on the "commentable_id" field.
func CommentableIDNotNil ¶
CommentableIDNotNil applies the NotNil predicate on the "commentable_id" field.
func CommentableType ¶
CommentableType applies equality check predicate on the "commentable_type" field. It's identical to CommentableTypeEQ.
func CommentableTypeContains ¶
CommentableTypeContains applies the Contains predicate on the "commentable_type" field.
func CommentableTypeContainsFold ¶
CommentableTypeContainsFold applies the ContainsFold predicate on the "commentable_type" field.
func CommentableTypeEQ ¶
CommentableTypeEQ applies the EQ predicate on the "commentable_type" field.
func CommentableTypeEqualFold ¶
CommentableTypeEqualFold applies the EqualFold predicate on the "commentable_type" field.
func CommentableTypeGT ¶
CommentableTypeGT applies the GT predicate on the "commentable_type" field.
func CommentableTypeGTE ¶
CommentableTypeGTE applies the GTE predicate on the "commentable_type" field.
func CommentableTypeHasPrefix ¶
CommentableTypeHasPrefix applies the HasPrefix predicate on the "commentable_type" field.
func CommentableTypeHasSuffix ¶
CommentableTypeHasSuffix applies the HasSuffix predicate on the "commentable_type" field.
func CommentableTypeIn ¶
CommentableTypeIn applies the In predicate on the "commentable_type" field.
func CommentableTypeIsNil ¶
CommentableTypeIsNil applies the IsNil predicate on the "commentable_type" field.
func CommentableTypeLT ¶
CommentableTypeLT applies the LT predicate on the "commentable_type" field.
func CommentableTypeLTE ¶
CommentableTypeLTE applies the LTE predicate on the "commentable_type" field.
func CommentableTypeNEQ ¶
CommentableTypeNEQ applies the NEQ predicate on the "commentable_type" field.
func CommentableTypeNotIn ¶
CommentableTypeNotIn applies the NotIn predicate on the "commentable_type" field.
func CommentableTypeNotNil ¶
CommentableTypeNotNil applies the NotNil predicate on the "commentable_type" 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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func DataNotNil ¶
DataNotNil applies the NotNil predicate on the "data" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Product ¶
Product applies equality check predicate on the "product" field. It's identical to ProductEQ.
func ProductContains ¶
ProductContains applies the Contains predicate on the "product" field.
func ProductContainsFold ¶
ProductContainsFold applies the ContainsFold predicate on the "product" field.
func ProductEqualFold ¶
ProductEqualFold applies the EqualFold predicate on the "product" field.
func ProductGTE ¶
ProductGTE applies the GTE predicate on the "product" field.
func ProductHasPrefix ¶
ProductHasPrefix applies the HasPrefix predicate on the "product" field.
func ProductHasSuffix ¶
ProductHasSuffix applies the HasSuffix predicate on the "product" field.
func ProductIsNil ¶
ProductIsNil applies the IsNil predicate on the "product" field.
func ProductLTE ¶
ProductLTE applies the LTE predicate on the "product" field.
func ProductNEQ ¶
ProductNEQ applies the NEQ predicate on the "product" field.
func ProductNotIn ¶
ProductNotIn applies the NotIn predicate on the "product" field.
func ProductNotNil ¶
ProductNotNil applies the NotNil predicate on the "product" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIsNil ¶
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
UserIDNotNil applies the NotNil 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 Comment queries.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body field.
func ByCommentableID ¶
func ByCommentableID(opts ...sql.OrderTermOption) OrderOption
ByCommentableID orders the results by the commentable_id field.
func ByCommentableType ¶
func ByCommentableType(opts ...sql.OrderTermOption) OrderOption
ByCommentableType orders the results by the commentable_type 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 ByProduct ¶
func ByProduct(opts ...sql.OrderTermOption) OrderOption
ByProduct orders the results by the product field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.