epic

package
v0.0.0-...-aa3ac78 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the epic type in the database.
	Label = "epic"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeReporter holds the string denoting the reporter edge name in mutations.
	EdgeReporter = "reporter"
	// EdgeAssignee holds the string denoting the assignee edge name in mutations.
	EdgeAssignee = "assignee"
	// EdgeComments holds the string denoting the comments edge name in mutations.
	EdgeComments = "comments"
	// Table holds the table name of the epic in the database.
	Table = "epics"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "epics"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "epic_project"
	// ReporterTable is the table that holds the reporter relation/edge.
	ReporterTable = "epics"
	// ReporterInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ReporterInverseTable = "users"
	// ReporterColumn is the table column denoting the reporter relation/edge.
	ReporterColumn = "user_reporter"
	// AssigneeTable is the table that holds the assignee relation/edge.
	AssigneeTable = "epics"
	// AssigneeInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AssigneeInverseTable = "users"
	// AssigneeColumn is the table column denoting the assignee relation/edge.
	AssigneeColumn = "user_assignee"
	// CommentsTable is the table that holds the comments relation/edge. The primary key declared below.
	CommentsTable = "epic_comments"
	// CommentsInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentsInverseTable = "comments"
)

Variables

Columns holds all SQL columns for epic fields.

View Source
var (
	// CommentsPrimaryKey and CommentsColumn2 are the table columns denoting the
	// primary key for the comments relation (M2M).
	CommentsPrimaryKey = []string{"epic_id", "comment_id"}
)
View Source
var ForeignKeys = []string{
	"epic_project",
	"user_reporter",
	"user_assignee",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "epics" table and are not defined as standalone fields in the schema.

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Epic) predicate.Epic

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Epic

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Epic

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Epic

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Epic

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Epic

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Epic

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Epic

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Epic

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Epic

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Epic

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Epic

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Epic

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Epic

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Epic

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasAssignee

func HasAssignee() predicate.Epic

HasAssignee applies the HasEdge predicate on the "assignee" edge.

func HasAssigneeWith

func HasAssigneeWith(preds ...predicate.User) predicate.Epic

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

func HasComments

func HasComments() predicate.Epic

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.Comment) predicate.Epic

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

func HasProject

func HasProject() predicate.Epic

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Epic

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

func HasReporter

func HasReporter() predicate.Epic

HasReporter applies the HasEdge predicate on the "reporter" edge.

func HasReporterWith

func HasReporterWith(preds ...predicate.User) predicate.Epic

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

func ID

func ID(id int) predicate.Epic

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Epic

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Epic

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Epic

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Epic

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Epic

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Epic

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Epic

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Epic

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Epic

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Epic

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Epic

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Epic

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Epic

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Epic

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Epic

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Epic

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Epic

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Epic

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Epic

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Epic

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Epic

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Epic

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Epic) predicate.Epic

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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