comment

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 4 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"
	// FieldTarget holds the string denoting the target field in the database.
	FieldTarget = "target"
	// FieldAuthor holds the string denoting the author field in the database.
	FieldAuthor = "author"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldRound holds the string denoting the round field in the database.
	FieldRound = "round"
	// FieldTeam holds the string denoting the team field in the database.
	FieldTeam = "team"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the comment in the database.
	Table = "comments"
)

Variables

View Source
var (
	// TargetValidator is a validator for the "target" field. It is called by the builders before save.
	TargetValidator func(string) error
	// AuthorValidator is a validator for the "author" field. It is called by the builders before save.
	AuthorValidator func(string) error
	// RoundValidator is a validator for the "round" field. It is called by the builders before save.
	RoundValidator func(int) error
	// TeamValidator is a validator for the "team" field. It is called by the builders before save.
	TeamValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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 Author

func Author(v string) predicate.Comment

Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.

func AuthorContains

func AuthorContains(v string) predicate.Comment

AuthorContains applies the Contains predicate on the "author" field.

func AuthorContainsFold

func AuthorContainsFold(v string) predicate.Comment

AuthorContainsFold applies the ContainsFold predicate on the "author" field.

func AuthorEQ

func AuthorEQ(v string) predicate.Comment

AuthorEQ applies the EQ predicate on the "author" field.

func AuthorEqualFold

func AuthorEqualFold(v string) predicate.Comment

AuthorEqualFold applies the EqualFold predicate on the "author" field.

func AuthorGT

func AuthorGT(v string) predicate.Comment

AuthorGT applies the GT predicate on the "author" field.

func AuthorGTE

func AuthorGTE(v string) predicate.Comment

AuthorGTE applies the GTE predicate on the "author" field.

func AuthorHasPrefix

func AuthorHasPrefix(v string) predicate.Comment

AuthorHasPrefix applies the HasPrefix predicate on the "author" field.

func AuthorHasSuffix

func AuthorHasSuffix(v string) predicate.Comment

AuthorHasSuffix applies the HasSuffix predicate on the "author" field.

func AuthorIn

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

AuthorIn applies the In predicate on the "author" field.

func AuthorLT

func AuthorLT(v string) predicate.Comment

AuthorLT applies the LT predicate on the "author" field.

func AuthorLTE

func AuthorLTE(v string) predicate.Comment

AuthorLTE applies the LTE predicate on the "author" field.

func AuthorNEQ

func AuthorNEQ(v string) predicate.Comment

AuthorNEQ applies the NEQ predicate on the "author" field.

func AuthorNotIn

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

AuthorNotIn applies the NotIn predicate on the "author" field.

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 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 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 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 ID

func ID(id uuid.UUID) predicate.Comment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Comment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Comment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Comment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Comment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Comment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Comment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Comment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) 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 Round

func Round(v int) predicate.Comment

Round applies equality check predicate on the "round" field. It's identical to RoundEQ.

func RoundEQ

func RoundEQ(v int) predicate.Comment

RoundEQ applies the EQ predicate on the "round" field.

func RoundGT

func RoundGT(v int) predicate.Comment

RoundGT applies the GT predicate on the "round" field.

func RoundGTE

func RoundGTE(v int) predicate.Comment

RoundGTE applies the GTE predicate on the "round" field.

func RoundIn

func RoundIn(vs ...int) predicate.Comment

RoundIn applies the In predicate on the "round" field.

func RoundLT

func RoundLT(v int) predicate.Comment

RoundLT applies the LT predicate on the "round" field.

func RoundLTE

func RoundLTE(v int) predicate.Comment

RoundLTE applies the LTE predicate on the "round" field.

func RoundNEQ

func RoundNEQ(v int) predicate.Comment

RoundNEQ applies the NEQ predicate on the "round" field.

func RoundNotIn

func RoundNotIn(vs ...int) predicate.Comment

RoundNotIn applies the NotIn predicate on the "round" field.

func Target

func Target(v string) predicate.Comment

Target applies equality check predicate on the "target" field. It's identical to TargetEQ.

func TargetContains

func TargetContains(v string) predicate.Comment

TargetContains applies the Contains predicate on the "target" field.

func TargetContainsFold

func TargetContainsFold(v string) predicate.Comment

TargetContainsFold applies the ContainsFold predicate on the "target" field.

func TargetEQ

func TargetEQ(v string) predicate.Comment

TargetEQ applies the EQ predicate on the "target" field.

func TargetEqualFold

func TargetEqualFold(v string) predicate.Comment

TargetEqualFold applies the EqualFold predicate on the "target" field.

func TargetGT

func TargetGT(v string) predicate.Comment

TargetGT applies the GT predicate on the "target" field.

func TargetGTE

func TargetGTE(v string) predicate.Comment

TargetGTE applies the GTE predicate on the "target" field.

func TargetHasPrefix

func TargetHasPrefix(v string) predicate.Comment

TargetHasPrefix applies the HasPrefix predicate on the "target" field.

func TargetHasSuffix

func TargetHasSuffix(v string) predicate.Comment

TargetHasSuffix applies the HasSuffix predicate on the "target" field.

func TargetIn

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

TargetIn applies the In predicate on the "target" field.

func TargetLT

func TargetLT(v string) predicate.Comment

TargetLT applies the LT predicate on the "target" field.

func TargetLTE

func TargetLTE(v string) predicate.Comment

TargetLTE applies the LTE predicate on the "target" field.

func TargetNEQ

func TargetNEQ(v string) predicate.Comment

TargetNEQ applies the NEQ predicate on the "target" field.

func TargetNotIn

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

TargetNotIn applies the NotIn predicate on the "target" field.

func Team

func Team(v string) predicate.Comment

Team applies equality check predicate on the "team" field. It's identical to TeamEQ.

func TeamContains

func TeamContains(v string) predicate.Comment

TeamContains applies the Contains predicate on the "team" field.

func TeamContainsFold

func TeamContainsFold(v string) predicate.Comment

TeamContainsFold applies the ContainsFold predicate on the "team" field.

func TeamEQ

func TeamEQ(v string) predicate.Comment

TeamEQ applies the EQ predicate on the "team" field.

func TeamEqualFold

func TeamEqualFold(v string) predicate.Comment

TeamEqualFold applies the EqualFold predicate on the "team" field.

func TeamGT

func TeamGT(v string) predicate.Comment

TeamGT applies the GT predicate on the "team" field.

func TeamGTE

func TeamGTE(v string) predicate.Comment

TeamGTE applies the GTE predicate on the "team" field.

func TeamHasPrefix

func TeamHasPrefix(v string) predicate.Comment

TeamHasPrefix applies the HasPrefix predicate on the "team" field.

func TeamHasSuffix

func TeamHasSuffix(v string) predicate.Comment

TeamHasSuffix applies the HasSuffix predicate on the "team" field.

func TeamIn

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

TeamIn applies the In predicate on the "team" field.

func TeamLT

func TeamLT(v string) predicate.Comment

TeamLT applies the LT predicate on the "team" field.

func TeamLTE

func TeamLTE(v string) predicate.Comment

TeamLTE applies the LTE predicate on the "team" field.

func TeamNEQ

func TeamNEQ(v string) predicate.Comment

TeamNEQ applies the NEQ predicate on the "team" field.

func TeamNotIn

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

TeamNotIn applies the NotIn predicate on the "team" 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 ByAuthor

func ByAuthor(opts ...sql.OrderTermOption) OrderOption

ByAuthor orders the results by the author field.

func ByBody

func ByBody(opts ...sql.OrderTermOption) OrderOption

ByBody orders the results by the body 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 ByRound

func ByRound(opts ...sql.OrderTermOption) OrderOption

ByRound orders the results by the round field.

func ByTarget

func ByTarget(opts ...sql.OrderTermOption) OrderOption

ByTarget orders the results by the target field.

func ByTeam

func ByTeam(opts ...sql.OrderTermOption) OrderOption

ByTeam orders the results by the team field.

Jump to

Keyboard shortcuts

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