repository

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 repository type in the database.
	Label = "repository"
	// 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"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// 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"
	// FieldTotalPr holds the string denoting the total_pr field in the database.
	FieldTotalPr = "total_pr"
	// FieldTotalIssue holds the string denoting the total_issue field in the database.
	FieldTotalIssue = "total_issue"
	// FieldGetPullRequest holds the string denoting the get_pull_request field in the database.
	FieldGetPullRequest = "get_pull_request"
	// FieldGetIssue holds the string denoting the get_issue field in the database.
	FieldGetIssue = "get_issue"
	// 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"
	// FieldPushedAt holds the string denoting the pushed_at field in the database.
	FieldPushedAt = "pushed_at"
	// EdgePullRequests holds the string denoting the pull_requests edge name in mutations.
	EdgePullRequests = "pull_requests"
	// EdgeIssues holds the string denoting the issues edge name in mutations.
	EdgeIssues = "issues"
	// Table holds the table name of the repository in the database.
	Table = "repositories"
	// PullRequestsTable is the table that holds the pull_requests relation/edge.
	PullRequestsTable = "pull_requests"
	// PullRequestsInverseTable is the table name for the PullRequest entity.
	// It exists in this package in order to avoid circular dependency with the "pullrequest" package.
	PullRequestsInverseTable = "pull_requests"
	// PullRequestsColumn is the table column denoting the pull_requests relation/edge.
	PullRequestsColumn = "repository_id"
	// IssuesTable is the table that holds the issues relation/edge.
	IssuesTable = "issues"
	// IssuesInverseTable is the table name for the Issue entity.
	// It exists in this package in order to avoid circular dependency with the "issue" package.
	IssuesInverseTable = "issues"
	// IssuesColumn is the table column denoting the issues relation/edge.
	IssuesColumn = "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
	// OwnerValidator is a validator for the "owner" field. It is called by the builders before save.
	OwnerValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultTotalPr holds the default value on creation for the "total_pr" field.
	DefaultTotalPr int64
	// TotalPrValidator is a validator for the "total_pr" field. It is called by the builders before save.
	TotalPrValidator func(int64) error
	// DefaultTotalIssue holds the default value on creation for the "total_issue" field.
	DefaultTotalIssue int64
	// TotalIssueValidator is a validator for the "total_issue" field. It is called by the builders before save.
	TotalIssueValidator func(int64) error
	// DefaultGetPullRequest holds the default value on creation for the "get_pull_request" field.
	DefaultGetPullRequest bool
	// DefaultGetIssue holds the default value on creation for the "get_issue" field.
	DefaultGetIssue bool
	// 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
	// DefaultPushedAt holds the default value on creation for the "pushed_at" field.
	DefaultPushedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for repository fields.

Functions

func And

func And(predicates ...predicate.Repository) predicate.Repository

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Repository

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Repository

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Repository

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Repository

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Repository

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Repository

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Repository

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Repository

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

func DescriptionContains

func DescriptionContains(v string) predicate.Repository

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Repository

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Repository

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Repository

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

func DescriptionGT

func DescriptionGT(v string) predicate.Repository

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Repository

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Repository

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Repository

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Repository

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Repository

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Repository

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Repository

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Repository

DescriptionNotNil applies the NotNil predicate on the "description" field.

func GetIssue

func GetIssue(v bool) predicate.Repository

GetIssue applies equality check predicate on the "get_issue" field. It's identical to GetIssueEQ.

func GetIssueEQ

func GetIssueEQ(v bool) predicate.Repository

GetIssueEQ applies the EQ predicate on the "get_issue" field.

func GetIssueNEQ

func GetIssueNEQ(v bool) predicate.Repository

GetIssueNEQ applies the NEQ predicate on the "get_issue" field.

func GetPullRequest

func GetPullRequest(v bool) predicate.Repository

GetPullRequest applies equality check predicate on the "get_pull_request" field. It's identical to GetPullRequestEQ.

func GetPullRequestEQ

func GetPullRequestEQ(v bool) predicate.Repository

GetPullRequestEQ applies the EQ predicate on the "get_pull_request" field.

func GetPullRequestNEQ

func GetPullRequestNEQ(v bool) predicate.Repository

GetPullRequestNEQ applies the NEQ predicate on the "get_pull_request" field.

func GithubID

func GithubID(v string) predicate.Repository

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

func GithubIDContains

func GithubIDContains(v string) predicate.Repository

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

func GithubIDContainsFold

func GithubIDContainsFold(v string) predicate.Repository

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

func GithubIDEQ

func GithubIDEQ(v string) predicate.Repository

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

func GithubIDEqualFold

func GithubIDEqualFold(v string) predicate.Repository

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

func GithubIDGT

func GithubIDGT(v string) predicate.Repository

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

func GithubIDGTE

func GithubIDGTE(v string) predicate.Repository

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

func GithubIDHasPrefix

func GithubIDHasPrefix(v string) predicate.Repository

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

func GithubIDHasSuffix

func GithubIDHasSuffix(v string) predicate.Repository

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

func GithubIDIn

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

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

func GithubIDLT

func GithubIDLT(v string) predicate.Repository

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

func GithubIDLTE

func GithubIDLTE(v string) predicate.Repository

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

func GithubIDNEQ

func GithubIDNEQ(v string) predicate.Repository

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

func GithubIDNotIn

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

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

func HasIssues

func HasIssues() predicate.Repository

HasIssues applies the HasEdge predicate on the "issues" edge.

func HasIssuesWith

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

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

func HasPullRequests

func HasPullRequests() predicate.Repository

HasPullRequests applies the HasEdge predicate on the "pull_requests" edge.

func HasPullRequestsWith

func HasPullRequestsWith(preds ...predicate.PullRequest) predicate.Repository

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Repository

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Repository

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Repository

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Repository

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Repository

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Repository

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Repository

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

func NameContains

func NameContains(v string) predicate.Repository

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

func NameContainsFold

func NameContainsFold(v string) predicate.Repository

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

func NameEQ

func NameEQ(v string) predicate.Repository

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

func NameEqualFold

func NameEqualFold(v string) predicate.Repository

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

func NameGT

func NameGT(v string) predicate.Repository

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

func NameGTE

func NameGTE(v string) predicate.Repository

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Repository

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Repository

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Repository

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

func NameLTE

func NameLTE(v string) predicate.Repository

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

func NameNEQ

func NameNEQ(v string) predicate.Repository

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

func NameNotIn

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

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.Repository) predicate.Repository

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Repository

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Repository

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Repository

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Repository

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Repository

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Repository

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Repository

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Repository

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Repository

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Repository

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Repository

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Repository

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Repository

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Repository

OwnerNotIn applies the NotIn predicate on the "owner" field.

func PushedAt

func PushedAt(v time.Time) predicate.Repository

PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.

func PushedAtEQ

func PushedAtEQ(v time.Time) predicate.Repository

PushedAtEQ applies the EQ predicate on the "pushed_at" field.

func PushedAtGT

func PushedAtGT(v time.Time) predicate.Repository

PushedAtGT applies the GT predicate on the "pushed_at" field.

func PushedAtGTE

func PushedAtGTE(v time.Time) predicate.Repository

PushedAtGTE applies the GTE predicate on the "pushed_at" field.

func PushedAtIn

func PushedAtIn(vs ...time.Time) predicate.Repository

PushedAtIn applies the In predicate on the "pushed_at" field.

func PushedAtLT

func PushedAtLT(v time.Time) predicate.Repository

PushedAtLT applies the LT predicate on the "pushed_at" field.

func PushedAtLTE

func PushedAtLTE(v time.Time) predicate.Repository

PushedAtLTE applies the LTE predicate on the "pushed_at" field.

func PushedAtNEQ

func PushedAtNEQ(v time.Time) predicate.Repository

PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.

func PushedAtNotIn

func PushedAtNotIn(vs ...time.Time) predicate.Repository

PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.

func TotalIssue

func TotalIssue(v int64) predicate.Repository

TotalIssue applies equality check predicate on the "total_issue" field. It's identical to TotalIssueEQ.

func TotalIssueEQ

func TotalIssueEQ(v int64) predicate.Repository

TotalIssueEQ applies the EQ predicate on the "total_issue" field.

func TotalIssueGT

func TotalIssueGT(v int64) predicate.Repository

TotalIssueGT applies the GT predicate on the "total_issue" field.

func TotalIssueGTE

func TotalIssueGTE(v int64) predicate.Repository

TotalIssueGTE applies the GTE predicate on the "total_issue" field.

func TotalIssueIn

func TotalIssueIn(vs ...int64) predicate.Repository

TotalIssueIn applies the In predicate on the "total_issue" field.

func TotalIssueLT

func TotalIssueLT(v int64) predicate.Repository

TotalIssueLT applies the LT predicate on the "total_issue" field.

func TotalIssueLTE

func TotalIssueLTE(v int64) predicate.Repository

TotalIssueLTE applies the LTE predicate on the "total_issue" field.

func TotalIssueNEQ

func TotalIssueNEQ(v int64) predicate.Repository

TotalIssueNEQ applies the NEQ predicate on the "total_issue" field.

func TotalIssueNotIn

func TotalIssueNotIn(vs ...int64) predicate.Repository

TotalIssueNotIn applies the NotIn predicate on the "total_issue" field.

func TotalPr

func TotalPr(v int64) predicate.Repository

TotalPr applies equality check predicate on the "total_pr" field. It's identical to TotalPrEQ.

func TotalPrEQ

func TotalPrEQ(v int64) predicate.Repository

TotalPrEQ applies the EQ predicate on the "total_pr" field.

func TotalPrGT

func TotalPrGT(v int64) predicate.Repository

TotalPrGT applies the GT predicate on the "total_pr" field.

func TotalPrGTE

func TotalPrGTE(v int64) predicate.Repository

TotalPrGTE applies the GTE predicate on the "total_pr" field.

func TotalPrIn

func TotalPrIn(vs ...int64) predicate.Repository

TotalPrIn applies the In predicate on the "total_pr" field.

func TotalPrLT

func TotalPrLT(v int64) predicate.Repository

TotalPrLT applies the LT predicate on the "total_pr" field.

func TotalPrLTE

func TotalPrLTE(v int64) predicate.Repository

TotalPrLTE applies the LTE predicate on the "total_pr" field.

func TotalPrNEQ

func TotalPrNEQ(v int64) predicate.Repository

TotalPrNEQ applies the NEQ predicate on the "total_pr" field.

func TotalPrNotIn

func TotalPrNotIn(vs ...int64) predicate.Repository

TotalPrNotIn applies the NotIn predicate on the "total_pr" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Repository

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Repository

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Repository

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Repository

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Repository

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Repository

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Repository

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

func UpdatedAtNotIn

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

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