repository

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 4 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldFullName holds the string denoting the full_name field in the database.
	FieldFullName = "full_name"
	// FieldHTMLURL holds the string denoting the html_url field in the database.
	FieldHTMLURL = "html_url"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLastPushedAt holds the string denoting the last_pushed_at field in the database.
	FieldLastPushedAt = "last_pushed_at"
	// FieldLastEventAt holds the string denoting the last_event_at field in the database.
	FieldLastEventAt = "last_event_at"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeCommits holds the string denoting the commits edge name in mutations.
	EdgeCommits = "commits"
	// GitCommitFieldID holds the string denoting the ID field of the GitCommit.
	GitCommitFieldID = "sha"
	// Table holds the table name of the repository in the database.
	Table = "repositories"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "repositories"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_repositories"
	// CommitsTable is the table that holds the commits relation/edge.
	CommitsTable = "git_commits"
	// CommitsInverseTable is the table name for the GitCommit entity.
	// It exists in this package in order to avoid circular dependency with the "gitcommit" package.
	CommitsInverseTable = "git_commits"
	// CommitsColumn is the table column denoting the commits relation/edge.
	CommitsColumn = "repository_commits"
)

Variables

Columns holds all SQL columns for repository fields.

View Source
var (
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)
View Source
var ForeignKeys = []string{
	"organization_repositories",
}

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

Functions

func And

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

And groups predicates with the AND operator between them.

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 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 FullName

func FullName(v string) predicate.Repository

FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.Repository

FullNameContains applies the Contains predicate on the "full_name" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.Repository

FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.

func FullNameEQ

func FullNameEQ(v string) predicate.Repository

FullNameEQ applies the EQ predicate on the "full_name" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.Repository

FullNameEqualFold applies the EqualFold predicate on the "full_name" field.

func FullNameGT

func FullNameGT(v string) predicate.Repository

FullNameGT applies the GT predicate on the "full_name" field.

func FullNameGTE

func FullNameGTE(v string) predicate.Repository

FullNameGTE applies the GTE predicate on the "full_name" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.Repository

FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.Repository

FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.

func FullNameIn

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

FullNameIn applies the In predicate on the "full_name" field.

func FullNameLT

func FullNameLT(v string) predicate.Repository

FullNameLT applies the LT predicate on the "full_name" field.

func FullNameLTE

func FullNameLTE(v string) predicate.Repository

FullNameLTE applies the LTE predicate on the "full_name" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.Repository

FullNameNEQ applies the NEQ predicate on the "full_name" field.

func FullNameNotIn

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

FullNameNotIn applies the NotIn predicate on the "full_name" field.

func HTMLURL

func HTMLURL(v string) predicate.Repository

HTMLURL applies equality check predicate on the "html_url" field. It's identical to HTMLURLEQ.

func HTMLURLContains

func HTMLURLContains(v string) predicate.Repository

HTMLURLContains applies the Contains predicate on the "html_url" field.

func HTMLURLContainsFold

func HTMLURLContainsFold(v string) predicate.Repository

HTMLURLContainsFold applies the ContainsFold predicate on the "html_url" field.

func HTMLURLEQ

func HTMLURLEQ(v string) predicate.Repository

HTMLURLEQ applies the EQ predicate on the "html_url" field.

func HTMLURLEqualFold

func HTMLURLEqualFold(v string) predicate.Repository

HTMLURLEqualFold applies the EqualFold predicate on the "html_url" field.

func HTMLURLGT

func HTMLURLGT(v string) predicate.Repository

HTMLURLGT applies the GT predicate on the "html_url" field.

func HTMLURLGTE

func HTMLURLGTE(v string) predicate.Repository

HTMLURLGTE applies the GTE predicate on the "html_url" field.

func HTMLURLHasPrefix

func HTMLURLHasPrefix(v string) predicate.Repository

HTMLURLHasPrefix applies the HasPrefix predicate on the "html_url" field.

func HTMLURLHasSuffix

func HTMLURLHasSuffix(v string) predicate.Repository

HTMLURLHasSuffix applies the HasSuffix predicate on the "html_url" field.

func HTMLURLIn

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

HTMLURLIn applies the In predicate on the "html_url" field.

func HTMLURLIsNil

func HTMLURLIsNil() predicate.Repository

HTMLURLIsNil applies the IsNil predicate on the "html_url" field.

func HTMLURLLT

func HTMLURLLT(v string) predicate.Repository

HTMLURLLT applies the LT predicate on the "html_url" field.

func HTMLURLLTE

func HTMLURLLTE(v string) predicate.Repository

HTMLURLLTE applies the LTE predicate on the "html_url" field.

func HTMLURLNEQ

func HTMLURLNEQ(v string) predicate.Repository

HTMLURLNEQ applies the NEQ predicate on the "html_url" field.

func HTMLURLNotIn

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

HTMLURLNotIn applies the NotIn predicate on the "html_url" field.

func HTMLURLNotNil

func HTMLURLNotNil() predicate.Repository

HTMLURLNotNil applies the NotNil predicate on the "html_url" field.

func HasCommits

func HasCommits() predicate.Repository

HasCommits applies the HasEdge predicate on the "commits" edge.

func HasCommitsWith

func HasCommitsWith(preds ...predicate.GitCommit) predicate.Repository

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

func HasOrganization

func HasOrganization() predicate.Repository

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Repository

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

func ID

func ID(id int64) predicate.Repository

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Repository

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Repository

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Repository

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Repository

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Repository

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Repository

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Repository

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Repository

IDNotIn applies the NotIn predicate on the ID field.

func LastEventAt

func LastEventAt(v time.Time) predicate.Repository

LastEventAt applies equality check predicate on the "last_event_at" field. It's identical to LastEventAtEQ.

func LastEventAtEQ

func LastEventAtEQ(v time.Time) predicate.Repository

LastEventAtEQ applies the EQ predicate on the "last_event_at" field.

func LastEventAtGT

func LastEventAtGT(v time.Time) predicate.Repository

LastEventAtGT applies the GT predicate on the "last_event_at" field.

func LastEventAtGTE

func LastEventAtGTE(v time.Time) predicate.Repository

LastEventAtGTE applies the GTE predicate on the "last_event_at" field.

func LastEventAtIn

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

LastEventAtIn applies the In predicate on the "last_event_at" field.

func LastEventAtIsNil

func LastEventAtIsNil() predicate.Repository

LastEventAtIsNil applies the IsNil predicate on the "last_event_at" field.

func LastEventAtLT

func LastEventAtLT(v time.Time) predicate.Repository

LastEventAtLT applies the LT predicate on the "last_event_at" field.

func LastEventAtLTE

func LastEventAtLTE(v time.Time) predicate.Repository

LastEventAtLTE applies the LTE predicate on the "last_event_at" field.

func LastEventAtNEQ

func LastEventAtNEQ(v time.Time) predicate.Repository

LastEventAtNEQ applies the NEQ predicate on the "last_event_at" field.

func LastEventAtNotIn

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

LastEventAtNotIn applies the NotIn predicate on the "last_event_at" field.

func LastEventAtNotNil

func LastEventAtNotNil() predicate.Repository

LastEventAtNotNil applies the NotNil predicate on the "last_event_at" field.

func LastPushedAt

func LastPushedAt(v time.Time) predicate.Repository

LastPushedAt applies equality check predicate on the "last_pushed_at" field. It's identical to LastPushedAtEQ.

func LastPushedAtEQ

func LastPushedAtEQ(v time.Time) predicate.Repository

LastPushedAtEQ applies the EQ predicate on the "last_pushed_at" field.

func LastPushedAtGT

func LastPushedAtGT(v time.Time) predicate.Repository

LastPushedAtGT applies the GT predicate on the "last_pushed_at" field.

func LastPushedAtGTE

func LastPushedAtGTE(v time.Time) predicate.Repository

LastPushedAtGTE applies the GTE predicate on the "last_pushed_at" field.

func LastPushedAtIn

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

LastPushedAtIn applies the In predicate on the "last_pushed_at" field.

func LastPushedAtIsNil

func LastPushedAtIsNil() predicate.Repository

LastPushedAtIsNil applies the IsNil predicate on the "last_pushed_at" field.

func LastPushedAtLT

func LastPushedAtLT(v time.Time) predicate.Repository

LastPushedAtLT applies the LT predicate on the "last_pushed_at" field.

func LastPushedAtLTE

func LastPushedAtLTE(v time.Time) predicate.Repository

LastPushedAtLTE applies the LTE predicate on the "last_pushed_at" field.

func LastPushedAtNEQ

func LastPushedAtNEQ(v time.Time) predicate.Repository

LastPushedAtNEQ applies the NEQ predicate on the "last_pushed_at" field.

func LastPushedAtNotIn

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

LastPushedAtNotIn applies the NotIn predicate on the "last_pushed_at" field.

func LastPushedAtNotNil

func LastPushedAtNotNil() predicate.Repository

LastPushedAtNotNil applies the NotNil predicate on the "last_pushed_at" 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 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 Repository queries.

func ByCommits

func ByCommits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCommits orders the results by commits terms.

func ByCommitsCount

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

ByCommitsCount orders the results by commits count.

func ByDescription

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

ByDescription orders the results by the description field.

func ByFullName

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

ByFullName orders the results by the full_name field.

func ByHTMLURL

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

ByHTMLURL orders the results by the html_url field.

func ByID

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

ByID orders the results by the id field.

func ByLastEventAt

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

ByLastEventAt orders the results by the last_event_at field.

func ByLastPushedAt

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

ByLastPushedAt orders the results by the last_pushed_at field.

func ByName

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

ByName orders the results by the name field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

Jump to

Keyboard shortcuts

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