ticketdependency

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the ticketdependency type in the database.
	Label = "ticket_dependency"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSourceTicketID holds the string denoting the source_ticket_id field in the database.
	FieldSourceTicketID = "source_ticket_id"
	// FieldTargetTicketID holds the string denoting the target_ticket_id field in the database.
	FieldTargetTicketID = "target_ticket_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeSourceTicket holds the string denoting the source_ticket edge name in mutations.
	EdgeSourceTicket = "source_ticket"
	// EdgeTargetTicket holds the string denoting the target_ticket edge name in mutations.
	EdgeTargetTicket = "target_ticket"
	// Table holds the table name of the ticketdependency in the database.
	Table = "ticket_dependencies"
	// SourceTicketTable is the table that holds the source_ticket relation/edge.
	SourceTicketTable = "ticket_dependencies"
	// SourceTicketInverseTable is the table name for the Ticket entity.
	// It exists in this package in order to avoid circular dependency with the "ticket" package.
	SourceTicketInverseTable = "tickets"
	// SourceTicketColumn is the table column denoting the source_ticket relation/edge.
	SourceTicketColumn = "source_ticket_id"
	// TargetTicketTable is the table that holds the target_ticket relation/edge.
	TargetTicketTable = "ticket_dependencies"
	// TargetTicketInverseTable is the table name for the Ticket entity.
	// It exists in this package in order to avoid circular dependency with the "ticket" package.
	TargetTicketInverseTable = "tickets"
	// TargetTicketColumn is the table column denoting the target_ticket relation/edge.
	TargetTicketColumn = "target_ticket_id"
)
View Source
const DefaultType = TypeBlocks

TypeBlocks is the default value of the Type enum.

Variables

Columns holds all SQL columns for ticketdependency fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

And groups predicates with the AND operator between them.

func HasSourceTicket

func HasSourceTicket() predicate.TicketDependency

HasSourceTicket applies the HasEdge predicate on the "source_ticket" edge.

func HasSourceTicketWith

func HasSourceTicketWith(preds ...predicate.Ticket) predicate.TicketDependency

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

func HasTargetTicket

func HasTargetTicket() predicate.TicketDependency

HasTargetTicket applies the HasEdge predicate on the "target_ticket" edge.

func HasTargetTicketWith

func HasTargetTicketWith(preds ...predicate.Ticket) predicate.TicketDependency

HasTargetTicketWith applies the HasEdge predicate on the "target_ticket" 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

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

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.TicketDependency

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 SourceTicketID

func SourceTicketID(v uuid.UUID) predicate.TicketDependency

SourceTicketID applies equality check predicate on the "source_ticket_id" field. It's identical to SourceTicketIDEQ.

func SourceTicketIDEQ

func SourceTicketIDEQ(v uuid.UUID) predicate.TicketDependency

SourceTicketIDEQ applies the EQ predicate on the "source_ticket_id" field.

func SourceTicketIDIn

func SourceTicketIDIn(vs ...uuid.UUID) predicate.TicketDependency

SourceTicketIDIn applies the In predicate on the "source_ticket_id" field.

func SourceTicketIDNEQ

func SourceTicketIDNEQ(v uuid.UUID) predicate.TicketDependency

SourceTicketIDNEQ applies the NEQ predicate on the "source_ticket_id" field.

func SourceTicketIDNotIn

func SourceTicketIDNotIn(vs ...uuid.UUID) predicate.TicketDependency

SourceTicketIDNotIn applies the NotIn predicate on the "source_ticket_id" field.

func TargetTicketID

func TargetTicketID(v uuid.UUID) predicate.TicketDependency

TargetTicketID applies equality check predicate on the "target_ticket_id" field. It's identical to TargetTicketIDEQ.

func TargetTicketIDEQ

func TargetTicketIDEQ(v uuid.UUID) predicate.TicketDependency

TargetTicketIDEQ applies the EQ predicate on the "target_ticket_id" field.

func TargetTicketIDIn

func TargetTicketIDIn(vs ...uuid.UUID) predicate.TicketDependency

TargetTicketIDIn applies the In predicate on the "target_ticket_id" field.

func TargetTicketIDNEQ

func TargetTicketIDNEQ(v uuid.UUID) predicate.TicketDependency

TargetTicketIDNEQ applies the NEQ predicate on the "target_ticket_id" field.

func TargetTicketIDNotIn

func TargetTicketIDNotIn(vs ...uuid.UUID) predicate.TicketDependency

TargetTicketIDNotIn applies the NotIn predicate on the "target_ticket_id" field.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.TicketDependency

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.TicketDependency

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.TicketDependency

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

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 TicketDependency queries.

func ByID

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

ByID orders the results by the id field.

func BySourceTicketField

func BySourceTicketField(field string, opts ...sql.OrderTermOption) OrderOption

BySourceTicketField orders the results by source_ticket field.

func BySourceTicketID

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

BySourceTicketID orders the results by the source_ticket_id field.

func ByTargetTicketField

func ByTargetTicketField(field string, opts ...sql.OrderTermOption) OrderOption

ByTargetTicketField orders the results by target_ticket field.

func ByTargetTicketID

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

ByTargetTicketID orders the results by the target_ticket_id field.

func ByType

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

ByType orders the results by the type field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeBlocks   Type = "blocks"
	TypeSubIssue Type = "sub-issue"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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