comment

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for comment fields.

Functions

func And

func And(predicates ...predicate.Comment) predicate.Comment

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Comment

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Comment

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Comment

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Comment

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Comment

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Comment

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Comment

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Comment

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Comment

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.Comment

BodyIn applies the In predicate on the "body" field.

func BodyIsNil

func BodyIsNil() predicate.Comment

BodyIsNil applies the IsNil predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Comment

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Comment

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Comment

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.Comment

BodyNotIn applies the NotIn predicate on the "body" field.

func BodyNotNil

func BodyNotNil() predicate.Comment

BodyNotNil applies the NotNil predicate on the "body" field.

func CommentableID

func CommentableID(v string) predicate.Comment

CommentableID applies equality check predicate on the "commentable_id" field. It's identical to CommentableIDEQ.

func CommentableIDContains

func CommentableIDContains(v string) predicate.Comment

CommentableIDContains applies the Contains predicate on the "commentable_id" field.

func CommentableIDContainsFold

func CommentableIDContainsFold(v string) predicate.Comment

CommentableIDContainsFold applies the ContainsFold predicate on the "commentable_id" field.

func CommentableIDEQ

func CommentableIDEQ(v string) predicate.Comment

CommentableIDEQ applies the EQ predicate on the "commentable_id" field.

func CommentableIDEqualFold

func CommentableIDEqualFold(v string) predicate.Comment

CommentableIDEqualFold applies the EqualFold predicate on the "commentable_id" field.

func CommentableIDGT

func CommentableIDGT(v string) predicate.Comment

CommentableIDGT applies the GT predicate on the "commentable_id" field.

func CommentableIDGTE

func CommentableIDGTE(v string) predicate.Comment

CommentableIDGTE applies the GTE predicate on the "commentable_id" field.

func CommentableIDHasPrefix

func CommentableIDHasPrefix(v string) predicate.Comment

CommentableIDHasPrefix applies the HasPrefix predicate on the "commentable_id" field.

func CommentableIDHasSuffix

func CommentableIDHasSuffix(v string) predicate.Comment

CommentableIDHasSuffix applies the HasSuffix predicate on the "commentable_id" field.

func CommentableIDIn

func CommentableIDIn(vs ...string) predicate.Comment

CommentableIDIn applies the In predicate on the "commentable_id" field.

func CommentableIDIsNil

func CommentableIDIsNil() predicate.Comment

CommentableIDIsNil applies the IsNil predicate on the "commentable_id" field.

func CommentableIDLT

func CommentableIDLT(v string) predicate.Comment

CommentableIDLT applies the LT predicate on the "commentable_id" field.

func CommentableIDLTE

func CommentableIDLTE(v string) predicate.Comment

CommentableIDLTE applies the LTE predicate on the "commentable_id" field.

func CommentableIDNEQ

func CommentableIDNEQ(v string) predicate.Comment

CommentableIDNEQ applies the NEQ predicate on the "commentable_id" field.

func CommentableIDNotIn

func CommentableIDNotIn(vs ...string) predicate.Comment

CommentableIDNotIn applies the NotIn predicate on the "commentable_id" field.

func CommentableIDNotNil

func CommentableIDNotNil() predicate.Comment

CommentableIDNotNil applies the NotNil predicate on the "commentable_id" field.

func CommentableType

func CommentableType(v string) predicate.Comment

CommentableType applies equality check predicate on the "commentable_type" field. It's identical to CommentableTypeEQ.

func CommentableTypeContains

func CommentableTypeContains(v string) predicate.Comment

CommentableTypeContains applies the Contains predicate on the "commentable_type" field.

func CommentableTypeContainsFold

func CommentableTypeContainsFold(v string) predicate.Comment

CommentableTypeContainsFold applies the ContainsFold predicate on the "commentable_type" field.

func CommentableTypeEQ

func CommentableTypeEQ(v string) predicate.Comment

CommentableTypeEQ applies the EQ predicate on the "commentable_type" field.

func CommentableTypeEqualFold

func CommentableTypeEqualFold(v string) predicate.Comment

CommentableTypeEqualFold applies the EqualFold predicate on the "commentable_type" field.

func CommentableTypeGT

func CommentableTypeGT(v string) predicate.Comment

CommentableTypeGT applies the GT predicate on the "commentable_type" field.

func CommentableTypeGTE

func CommentableTypeGTE(v string) predicate.Comment

CommentableTypeGTE applies the GTE predicate on the "commentable_type" field.

func CommentableTypeHasPrefix

func CommentableTypeHasPrefix(v string) predicate.Comment

CommentableTypeHasPrefix applies the HasPrefix predicate on the "commentable_type" field.

func CommentableTypeHasSuffix

func CommentableTypeHasSuffix(v string) predicate.Comment

CommentableTypeHasSuffix applies the HasSuffix predicate on the "commentable_type" field.

func CommentableTypeIn

func CommentableTypeIn(vs ...string) predicate.Comment

CommentableTypeIn applies the In predicate on the "commentable_type" field.

func CommentableTypeIsNil

func CommentableTypeIsNil() predicate.Comment

CommentableTypeIsNil applies the IsNil predicate on the "commentable_type" field.

func CommentableTypeLT

func CommentableTypeLT(v string) predicate.Comment

CommentableTypeLT applies the LT predicate on the "commentable_type" field.

func CommentableTypeLTE

func CommentableTypeLTE(v string) predicate.Comment

CommentableTypeLTE applies the LTE predicate on the "commentable_type" field.

func CommentableTypeNEQ

func CommentableTypeNEQ(v string) predicate.Comment

CommentableTypeNEQ applies the NEQ predicate on the "commentable_type" field.

func CommentableTypeNotIn

func CommentableTypeNotIn(vs ...string) predicate.Comment

CommentableTypeNotIn applies the NotIn predicate on the "commentable_type" field.

func CommentableTypeNotNil

func CommentableTypeNotNil() predicate.Comment

CommentableTypeNotNil applies the NotNil predicate on the "commentable_type" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Comment

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Comment

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Comment

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Comment

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Comment

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Comment

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Comment

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Comment

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Comment

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Comment

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Comment

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func DataIsNil

func DataIsNil() predicate.Comment

DataIsNil applies the IsNil predicate on the "data" field.

func DataNotNil

func DataNotNil() predicate.Comment

DataNotNil applies the NotNil predicate on the "data" field.

func ID

func ID(id string) predicate.Comment

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Comment

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Comment

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Comment

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Comment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Comment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Comment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Comment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Comment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Comment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Comment

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Comment) predicate.Comment

Or groups predicates with the OR operator between them.

func Product

func Product(v string) predicate.Comment

Product applies equality check predicate on the "product" field. It's identical to ProductEQ.

func ProductContains

func ProductContains(v string) predicate.Comment

ProductContains applies the Contains predicate on the "product" field.

func ProductContainsFold

func ProductContainsFold(v string) predicate.Comment

ProductContainsFold applies the ContainsFold predicate on the "product" field.

func ProductEQ

func ProductEQ(v string) predicate.Comment

ProductEQ applies the EQ predicate on the "product" field.

func ProductEqualFold

func ProductEqualFold(v string) predicate.Comment

ProductEqualFold applies the EqualFold predicate on the "product" field.

func ProductGT

func ProductGT(v string) predicate.Comment

ProductGT applies the GT predicate on the "product" field.

func ProductGTE

func ProductGTE(v string) predicate.Comment

ProductGTE applies the GTE predicate on the "product" field.

func ProductHasPrefix

func ProductHasPrefix(v string) predicate.Comment

ProductHasPrefix applies the HasPrefix predicate on the "product" field.

func ProductHasSuffix

func ProductHasSuffix(v string) predicate.Comment

ProductHasSuffix applies the HasSuffix predicate on the "product" field.

func ProductIn

func ProductIn(vs ...string) predicate.Comment

ProductIn applies the In predicate on the "product" field.

func ProductIsNil

func ProductIsNil() predicate.Comment

ProductIsNil applies the IsNil predicate on the "product" field.

func ProductLT

func ProductLT(v string) predicate.Comment

ProductLT applies the LT predicate on the "product" field.

func ProductLTE

func ProductLTE(v string) predicate.Comment

ProductLTE applies the LTE predicate on the "product" field.

func ProductNEQ

func ProductNEQ(v string) predicate.Comment

ProductNEQ applies the NEQ predicate on the "product" field.

func ProductNotIn

func ProductNotIn(vs ...string) predicate.Comment

ProductNotIn applies the NotIn predicate on the "product" field.

func ProductNotNil

func ProductNotNil() predicate.Comment

ProductNotNil applies the NotNil predicate on the "product" field.

func URL

func URL(v string) predicate.Comment

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Comment

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Comment

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Comment

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Comment

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Comment

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Comment

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Comment

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Comment

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Comment

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.Comment

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Comment

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Comment

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Comment

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Comment

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.Comment

URLNotNil applies the NotNil predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Comment

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Comment

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Comment

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Comment

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Comment

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Comment

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Comment

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Comment

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Comment

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Comment

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Comment

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UserID

func UserID(v string) predicate.Comment

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.Comment

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.Comment

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.Comment

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.Comment

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.Comment

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.Comment

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.Comment

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.Comment

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.Comment

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.Comment

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.Comment

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.Comment

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.Comment

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.Comment

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.Comment

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL