Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TicketDependency) predicate.TicketDependency
- func HasSourceTicket() predicate.TicketDependency
- func HasSourceTicketWith(preds ...predicate.Ticket) predicate.TicketDependency
- func HasTargetTicket() predicate.TicketDependency
- func HasTargetTicketWith(preds ...predicate.Ticket) predicate.TicketDependency
- func ID(id uuid.UUID) predicate.TicketDependency
- func IDEQ(id uuid.UUID) predicate.TicketDependency
- func IDGT(id uuid.UUID) predicate.TicketDependency
- func IDGTE(id uuid.UUID) predicate.TicketDependency
- func IDIn(ids ...uuid.UUID) predicate.TicketDependency
- func IDLT(id uuid.UUID) predicate.TicketDependency
- func IDLTE(id uuid.UUID) predicate.TicketDependency
- func IDNEQ(id uuid.UUID) predicate.TicketDependency
- func IDNotIn(ids ...uuid.UUID) predicate.TicketDependency
- func Not(p predicate.TicketDependency) predicate.TicketDependency
- func Or(predicates ...predicate.TicketDependency) predicate.TicketDependency
- func SourceTicketID(v uuid.UUID) predicate.TicketDependency
- func SourceTicketIDEQ(v uuid.UUID) predicate.TicketDependency
- func SourceTicketIDIn(vs ...uuid.UUID) predicate.TicketDependency
- func SourceTicketIDNEQ(v uuid.UUID) predicate.TicketDependency
- func SourceTicketIDNotIn(vs ...uuid.UUID) predicate.TicketDependency
- func TargetTicketID(v uuid.UUID) predicate.TicketDependency
- func TargetTicketIDEQ(v uuid.UUID) predicate.TicketDependency
- func TargetTicketIDIn(vs ...uuid.UUID) predicate.TicketDependency
- func TargetTicketIDNEQ(v uuid.UUID) predicate.TicketDependency
- func TargetTicketIDNotIn(vs ...uuid.UUID) predicate.TicketDependency
- func TypeEQ(v Type) predicate.TicketDependency
- func TypeIn(vs ...Type) predicate.TicketDependency
- func TypeNEQ(v Type) predicate.TicketDependency
- func TypeNotIn(vs ...Type) predicate.TicketDependency
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySourceTicketField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySourceTicketID(opts ...sql.OrderTermOption) OrderOption
- func ByTargetTicketField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTargetTicketID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
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" )
const DefaultType = TypeBlocks
TypeBlocks is the default value of the Type enum.
Variables ¶
var Columns = []string{ FieldID, FieldSourceTicketID, FieldTargetTicketID, FieldType, }
Columns holds all SQL columns for ticketdependency fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.TicketDependency) predicate.TicketDependency
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 ¶
func ID(id uuid.UUID) predicate.TicketDependency
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TicketDependency
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TicketDependency
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TicketDependency
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 ¶
func IDLT(id uuid.UUID) predicate.TicketDependency
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TicketDependency
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TicketDependency
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 ¶
func Not(p predicate.TicketDependency) predicate.TicketDependency
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TicketDependency) predicate.TicketDependency
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 ¶
func TypeEQ(v Type) predicate.TicketDependency
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 ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 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.