ticketcommentrevision

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the ticketcommentrevision type in the database.
	Label = "ticket_comment_revision"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCommentID holds the string denoting the comment_id field in the database.
	FieldCommentID = "comment_id"
	// FieldRevisionNumber holds the string denoting the revision_number field in the database.
	FieldRevisionNumber = "revision_number"
	// FieldBodyMarkdown holds the string denoting the body_markdown field in the database.
	FieldBodyMarkdown = "body_markdown"
	// FieldEditedBy holds the string denoting the edited_by field in the database.
	FieldEditedBy = "edited_by"
	// FieldEditedAt holds the string denoting the edited_at field in the database.
	FieldEditedAt = "edited_at"
	// FieldEditReason holds the string denoting the edit_reason field in the database.
	FieldEditReason = "edit_reason"
	// EdgeComment holds the string denoting the comment edge name in mutations.
	EdgeComment = "comment"
	// Table holds the table name of the ticketcommentrevision in the database.
	Table = "ticket_comment_revisions"
	// CommentTable is the table that holds the comment relation/edge.
	CommentTable = "ticket_comment_revisions"
	// CommentInverseTable is the table name for the TicketComment entity.
	// It exists in this package in order to avoid circular dependency with the "ticketcomment" package.
	CommentInverseTable = "ticket_comments"
	// CommentColumn is the table column denoting the comment relation/edge.
	CommentColumn = "comment_id"
)

Variables

View Source
var (
	// RevisionNumberValidator is a validator for the "revision_number" field. It is called by the builders before save.
	RevisionNumberValidator func(int) error
	// BodyMarkdownValidator is a validator for the "body_markdown" field. It is called by the builders before save.
	BodyMarkdownValidator func(string) error
	// EditedByValidator is a validator for the "edited_by" field. It is called by the builders before save.
	EditedByValidator func(string) error
	// DefaultEditedAt holds the default value on creation for the "edited_at" field.
	DefaultEditedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for ticketcommentrevision fields.

Functions

func And

And groups predicates with the AND operator between them.

func BodyMarkdown

func BodyMarkdown(v string) predicate.TicketCommentRevision

BodyMarkdown applies equality check predicate on the "body_markdown" field. It's identical to BodyMarkdownEQ.

func BodyMarkdownContains

func BodyMarkdownContains(v string) predicate.TicketCommentRevision

BodyMarkdownContains applies the Contains predicate on the "body_markdown" field.

func BodyMarkdownContainsFold

func BodyMarkdownContainsFold(v string) predicate.TicketCommentRevision

BodyMarkdownContainsFold applies the ContainsFold predicate on the "body_markdown" field.

func BodyMarkdownEQ

func BodyMarkdownEQ(v string) predicate.TicketCommentRevision

BodyMarkdownEQ applies the EQ predicate on the "body_markdown" field.

func BodyMarkdownEqualFold

func BodyMarkdownEqualFold(v string) predicate.TicketCommentRevision

BodyMarkdownEqualFold applies the EqualFold predicate on the "body_markdown" field.

func BodyMarkdownGT

func BodyMarkdownGT(v string) predicate.TicketCommentRevision

BodyMarkdownGT applies the GT predicate on the "body_markdown" field.

func BodyMarkdownGTE

func BodyMarkdownGTE(v string) predicate.TicketCommentRevision

BodyMarkdownGTE applies the GTE predicate on the "body_markdown" field.

func BodyMarkdownHasPrefix

func BodyMarkdownHasPrefix(v string) predicate.TicketCommentRevision

BodyMarkdownHasPrefix applies the HasPrefix predicate on the "body_markdown" field.

func BodyMarkdownHasSuffix

func BodyMarkdownHasSuffix(v string) predicate.TicketCommentRevision

BodyMarkdownHasSuffix applies the HasSuffix predicate on the "body_markdown" field.

func BodyMarkdownIn

func BodyMarkdownIn(vs ...string) predicate.TicketCommentRevision

BodyMarkdownIn applies the In predicate on the "body_markdown" field.

func BodyMarkdownLT

func BodyMarkdownLT(v string) predicate.TicketCommentRevision

BodyMarkdownLT applies the LT predicate on the "body_markdown" field.

func BodyMarkdownLTE

func BodyMarkdownLTE(v string) predicate.TicketCommentRevision

BodyMarkdownLTE applies the LTE predicate on the "body_markdown" field.

func BodyMarkdownNEQ

func BodyMarkdownNEQ(v string) predicate.TicketCommentRevision

BodyMarkdownNEQ applies the NEQ predicate on the "body_markdown" field.

func BodyMarkdownNotIn

func BodyMarkdownNotIn(vs ...string) predicate.TicketCommentRevision

BodyMarkdownNotIn applies the NotIn predicate on the "body_markdown" 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

func CommentIDIn(vs ...uuid.UUID) predicate.TicketCommentRevision

CommentIDIn applies the In predicate on the "comment_id" field.

func CommentIDNEQ

func CommentIDNEQ(v uuid.UUID) predicate.TicketCommentRevision

CommentIDNEQ applies the NEQ predicate on the "comment_id" field.

func CommentIDNotIn

func CommentIDNotIn(vs ...uuid.UUID) predicate.TicketCommentRevision

CommentIDNotIn applies the NotIn predicate on the "comment_id" field.

func EditReason

EditReason applies equality check predicate on the "edit_reason" field. It's identical to EditReasonEQ.

func EditReasonContains

func EditReasonContains(v string) predicate.TicketCommentRevision

EditReasonContains applies the Contains predicate on the "edit_reason" field.

func EditReasonContainsFold

func EditReasonContainsFold(v string) predicate.TicketCommentRevision

EditReasonContainsFold applies the ContainsFold predicate on the "edit_reason" field.

func EditReasonEQ

func EditReasonEQ(v string) predicate.TicketCommentRevision

EditReasonEQ applies the EQ predicate on the "edit_reason" field.

func EditReasonEqualFold

func EditReasonEqualFold(v string) predicate.TicketCommentRevision

EditReasonEqualFold applies the EqualFold predicate on the "edit_reason" field.

func EditReasonGT

func EditReasonGT(v string) predicate.TicketCommentRevision

EditReasonGT applies the GT predicate on the "edit_reason" field.

func EditReasonGTE

func EditReasonGTE(v string) predicate.TicketCommentRevision

EditReasonGTE applies the GTE predicate on the "edit_reason" field.

func EditReasonHasPrefix

func EditReasonHasPrefix(v string) predicate.TicketCommentRevision

EditReasonHasPrefix applies the HasPrefix predicate on the "edit_reason" field.

func EditReasonHasSuffix

func EditReasonHasSuffix(v string) predicate.TicketCommentRevision

EditReasonHasSuffix applies the HasSuffix predicate on the "edit_reason" field.

func EditReasonIn

func EditReasonIn(vs ...string) predicate.TicketCommentRevision

EditReasonIn applies the In predicate on the "edit_reason" field.

func EditReasonIsNil

func EditReasonIsNil() predicate.TicketCommentRevision

EditReasonIsNil applies the IsNil predicate on the "edit_reason" field.

func EditReasonLT

func EditReasonLT(v string) predicate.TicketCommentRevision

EditReasonLT applies the LT predicate on the "edit_reason" field.

func EditReasonLTE

func EditReasonLTE(v string) predicate.TicketCommentRevision

EditReasonLTE applies the LTE predicate on the "edit_reason" field.

func EditReasonNEQ

func EditReasonNEQ(v string) predicate.TicketCommentRevision

EditReasonNEQ applies the NEQ predicate on the "edit_reason" field.

func EditReasonNotIn

func EditReasonNotIn(vs ...string) predicate.TicketCommentRevision

EditReasonNotIn applies the NotIn predicate on the "edit_reason" field.

func EditReasonNotNil

func EditReasonNotNil() predicate.TicketCommentRevision

EditReasonNotNil applies the NotNil predicate on the "edit_reason" field.

func EditedAt

EditedAt applies equality check predicate on the "edited_at" field. It's identical to EditedAtEQ.

func EditedAtEQ

EditedAtEQ applies the EQ predicate on the "edited_at" field.

func EditedAtGT

EditedAtGT applies the GT predicate on the "edited_at" field.

func EditedAtGTE

EditedAtGTE applies the GTE predicate on the "edited_at" field.

func EditedAtIn

func EditedAtIn(vs ...time.Time) predicate.TicketCommentRevision

EditedAtIn applies the In predicate on the "edited_at" field.

func EditedAtLT

EditedAtLT applies the LT predicate on the "edited_at" field.

func EditedAtLTE

EditedAtLTE applies the LTE predicate on the "edited_at" field.

func EditedAtNEQ

EditedAtNEQ applies the NEQ predicate on the "edited_at" field.

func EditedAtNotIn

func EditedAtNotIn(vs ...time.Time) predicate.TicketCommentRevision

EditedAtNotIn applies the NotIn predicate on the "edited_at" field.

func EditedBy

EditedBy applies equality check predicate on the "edited_by" field. It's identical to EditedByEQ.

func EditedByContains

func EditedByContains(v string) predicate.TicketCommentRevision

EditedByContains applies the Contains predicate on the "edited_by" field.

func EditedByContainsFold

func EditedByContainsFold(v string) predicate.TicketCommentRevision

EditedByContainsFold applies the ContainsFold predicate on the "edited_by" field.

func EditedByEQ

EditedByEQ applies the EQ predicate on the "edited_by" field.

func EditedByEqualFold

func EditedByEqualFold(v string) predicate.TicketCommentRevision

EditedByEqualFold applies the EqualFold predicate on the "edited_by" field.

func EditedByGT

EditedByGT applies the GT predicate on the "edited_by" field.

func EditedByGTE

func EditedByGTE(v string) predicate.TicketCommentRevision

EditedByGTE applies the GTE predicate on the "edited_by" field.

func EditedByHasPrefix

func EditedByHasPrefix(v string) predicate.TicketCommentRevision

EditedByHasPrefix applies the HasPrefix predicate on the "edited_by" field.

func EditedByHasSuffix

func EditedByHasSuffix(v string) predicate.TicketCommentRevision

EditedByHasSuffix applies the HasSuffix predicate on the "edited_by" field.

func EditedByIn

func EditedByIn(vs ...string) predicate.TicketCommentRevision

EditedByIn applies the In predicate on the "edited_by" field.

func EditedByLT

EditedByLT applies the LT predicate on the "edited_by" field.

func EditedByLTE

func EditedByLTE(v string) predicate.TicketCommentRevision

EditedByLTE applies the LTE predicate on the "edited_by" field.

func EditedByNEQ

func EditedByNEQ(v string) predicate.TicketCommentRevision

EditedByNEQ applies the NEQ predicate on the "edited_by" field.

func EditedByNotIn

func EditedByNotIn(vs ...string) predicate.TicketCommentRevision

EditedByNotIn applies the NotIn predicate on the "edited_by" field.

func HasComment

func HasComment() predicate.TicketCommentRevision

HasComment applies the HasEdge predicate on the "comment" edge.

func HasCommentWith

func HasCommentWith(preds ...predicate.TicketComment) predicate.TicketCommentRevision

HasCommentWith applies the HasEdge predicate on the "comment" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.TicketCommentRevision

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RevisionNumber

func RevisionNumber(v int) predicate.TicketCommentRevision

RevisionNumber applies equality check predicate on the "revision_number" field. It's identical to RevisionNumberEQ.

func RevisionNumberEQ

func RevisionNumberEQ(v int) predicate.TicketCommentRevision

RevisionNumberEQ applies the EQ predicate on the "revision_number" field.

func RevisionNumberGT

func RevisionNumberGT(v int) predicate.TicketCommentRevision

RevisionNumberGT applies the GT predicate on the "revision_number" field.

func RevisionNumberGTE

func RevisionNumberGTE(v int) predicate.TicketCommentRevision

RevisionNumberGTE applies the GTE predicate on the "revision_number" field.

func RevisionNumberIn

func RevisionNumberIn(vs ...int) predicate.TicketCommentRevision

RevisionNumberIn applies the In predicate on the "revision_number" field.

func RevisionNumberLT

func RevisionNumberLT(v int) predicate.TicketCommentRevision

RevisionNumberLT applies the LT predicate on the "revision_number" field.

func RevisionNumberLTE

func RevisionNumberLTE(v int) predicate.TicketCommentRevision

RevisionNumberLTE applies the LTE predicate on the "revision_number" field.

func RevisionNumberNEQ

func RevisionNumberNEQ(v int) predicate.TicketCommentRevision

RevisionNumberNEQ applies the NEQ predicate on the "revision_number" field.

func RevisionNumberNotIn

func RevisionNumberNotIn(vs ...int) predicate.TicketCommentRevision

RevisionNumberNotIn applies the NotIn predicate on the "revision_number" 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 TicketCommentRevision queries.

func ByBodyMarkdown

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

ByBodyMarkdown orders the results by the body_markdown 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 ByEditReason

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

ByEditReason orders the results by the edit_reason field.

func ByEditedAt

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

ByEditedAt orders the results by the edited_at field.

func ByEditedBy

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

ByEditedBy orders the results by the edited_by field.

func ByID

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

ByID orders the results by the id field.

func ByRevisionNumber

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

ByRevisionNumber orders the results by the revision_number field.

Jump to

Keyboard shortcuts

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