issue

package
v0.0.0-...-35a449a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the issue type in the database.
	Label = "issue"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldGithubID holds the string denoting the github_id field in the database.
	FieldGithubID = "github_id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldLastEditedAt holds the string denoting the last_edited_at field in the database.
	FieldLastEditedAt = "last_edited_at"
	// FieldClosedAt holds the string denoting the closed_at field in the database.
	FieldClosedAt = "closed_at"
	// EdgeRepository holds the string denoting the repository edge name in mutations.
	EdgeRepository = "repository"
	// Table holds the table name of the issue in the database.
	Table = "issues"
	// RepositoryTable is the table that holds the repository relation/edge.
	RepositoryTable = "issues"
	// RepositoryInverseTable is the table name for the Repository entity.
	// It exists in this package in order to avoid circular dependency with the "repository" package.
	RepositoryInverseTable = "repositories"
	// RepositoryColumn is the table column denoting the repository relation/edge.
	RepositoryColumn = "repository_id"
)

Variables

View Source
var (
	// GithubIDValidator is a validator for the "github_id" field. It is called by the builders before save.
	GithubIDValidator func(string) error
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// DefaultLastEditedAt holds the default value on creation for the "last_edited_at" field.
	DefaultLastEditedAt func() time.Time
	// DefaultClosedAt holds the default value on creation for the "closed_at" field.
	DefaultClosedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for issue fields.

View Source
var ForeignKeys = []string{
	"repository_id",
}

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

Functions

func And

func And(predicates ...predicate.Issue) predicate.Issue

And groups predicates with the AND operator between them.

func ClosedAt

func ClosedAt(v time.Time) predicate.Issue

ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.

func ClosedAtEQ

func ClosedAtEQ(v time.Time) predicate.Issue

ClosedAtEQ applies the EQ predicate on the "closed_at" field.

func ClosedAtGT

func ClosedAtGT(v time.Time) predicate.Issue

ClosedAtGT applies the GT predicate on the "closed_at" field.

func ClosedAtGTE

func ClosedAtGTE(v time.Time) predicate.Issue

ClosedAtGTE applies the GTE predicate on the "closed_at" field.

func ClosedAtIn

func ClosedAtIn(vs ...time.Time) predicate.Issue

ClosedAtIn applies the In predicate on the "closed_at" field.

func ClosedAtIsNil

func ClosedAtIsNil() predicate.Issue

ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.

func ClosedAtLT

func ClosedAtLT(v time.Time) predicate.Issue

ClosedAtLT applies the LT predicate on the "closed_at" field.

func ClosedAtLTE

func ClosedAtLTE(v time.Time) predicate.Issue

ClosedAtLTE applies the LTE predicate on the "closed_at" field.

func ClosedAtNEQ

func ClosedAtNEQ(v time.Time) predicate.Issue

ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.

func ClosedAtNotIn

func ClosedAtNotIn(vs ...time.Time) predicate.Issue

ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.

func ClosedAtNotNil

func ClosedAtNotNil() predicate.Issue

ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Issue

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Issue

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Issue

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Issue

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Issue

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Issue

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Issue

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Issue

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Issue

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func GithubID

func GithubID(v string) predicate.Issue

GithubID applies equality check predicate on the "github_id" field. It's identical to GithubIDEQ.

func GithubIDContains

func GithubIDContains(v string) predicate.Issue

GithubIDContains applies the Contains predicate on the "github_id" field.

func GithubIDContainsFold

func GithubIDContainsFold(v string) predicate.Issue

GithubIDContainsFold applies the ContainsFold predicate on the "github_id" field.

func GithubIDEQ

func GithubIDEQ(v string) predicate.Issue

GithubIDEQ applies the EQ predicate on the "github_id" field.

func GithubIDEqualFold

func GithubIDEqualFold(v string) predicate.Issue

GithubIDEqualFold applies the EqualFold predicate on the "github_id" field.

func GithubIDGT

func GithubIDGT(v string) predicate.Issue

GithubIDGT applies the GT predicate on the "github_id" field.

func GithubIDGTE

func GithubIDGTE(v string) predicate.Issue

GithubIDGTE applies the GTE predicate on the "github_id" field.

func GithubIDHasPrefix

func GithubIDHasPrefix(v string) predicate.Issue

GithubIDHasPrefix applies the HasPrefix predicate on the "github_id" field.

func GithubIDHasSuffix

func GithubIDHasSuffix(v string) predicate.Issue

GithubIDHasSuffix applies the HasSuffix predicate on the "github_id" field.

func GithubIDIn

func GithubIDIn(vs ...string) predicate.Issue

GithubIDIn applies the In predicate on the "github_id" field.

func GithubIDLT

func GithubIDLT(v string) predicate.Issue

GithubIDLT applies the LT predicate on the "github_id" field.

func GithubIDLTE

func GithubIDLTE(v string) predicate.Issue

GithubIDLTE applies the LTE predicate on the "github_id" field.

func GithubIDNEQ

func GithubIDNEQ(v string) predicate.Issue

GithubIDNEQ applies the NEQ predicate on the "github_id" field.

func GithubIDNotIn

func GithubIDNotIn(vs ...string) predicate.Issue

GithubIDNotIn applies the NotIn predicate on the "github_id" field.

func HasRepository

func HasRepository() predicate.Issue

HasRepository applies the HasEdge predicate on the "repository" edge.

func HasRepositoryWith

func HasRepositoryWith(preds ...predicate.Repository) predicate.Issue

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

func ID

func ID(id uuid.UUID) predicate.Issue

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Issue

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Issue

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Issue

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Issue

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Issue

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Issue

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastEditedAt

func LastEditedAt(v time.Time) predicate.Issue

LastEditedAt applies equality check predicate on the "last_edited_at" field. It's identical to LastEditedAtEQ.

func LastEditedAtEQ

func LastEditedAtEQ(v time.Time) predicate.Issue

LastEditedAtEQ applies the EQ predicate on the "last_edited_at" field.

func LastEditedAtGT

func LastEditedAtGT(v time.Time) predicate.Issue

LastEditedAtGT applies the GT predicate on the "last_edited_at" field.

func LastEditedAtGTE

func LastEditedAtGTE(v time.Time) predicate.Issue

LastEditedAtGTE applies the GTE predicate on the "last_edited_at" field.

func LastEditedAtIn

func LastEditedAtIn(vs ...time.Time) predicate.Issue

LastEditedAtIn applies the In predicate on the "last_edited_at" field.

func LastEditedAtIsNil

func LastEditedAtIsNil() predicate.Issue

LastEditedAtIsNil applies the IsNil predicate on the "last_edited_at" field.

func LastEditedAtLT

func LastEditedAtLT(v time.Time) predicate.Issue

LastEditedAtLT applies the LT predicate on the "last_edited_at" field.

func LastEditedAtLTE

func LastEditedAtLTE(v time.Time) predicate.Issue

LastEditedAtLTE applies the LTE predicate on the "last_edited_at" field.

func LastEditedAtNEQ

func LastEditedAtNEQ(v time.Time) predicate.Issue

LastEditedAtNEQ applies the NEQ predicate on the "last_edited_at" field.

func LastEditedAtNotIn

func LastEditedAtNotIn(vs ...time.Time) predicate.Issue

LastEditedAtNotIn applies the NotIn predicate on the "last_edited_at" field.

func LastEditedAtNotNil

func LastEditedAtNotNil() predicate.Issue

LastEditedAtNotNil applies the NotNil predicate on the "last_edited_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Issue) predicate.Issue

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Issue

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Issue

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Issue

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Issue

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Issue

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Issue

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Issue

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Issue

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Issue

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Issue

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Issue

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Issue

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Issue

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Issue

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Issue

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Issue

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Issue

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Issue

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Issue

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Issue

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Issue

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Issue

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Issue

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

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