commits

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 commits type in the database.
	Label = "commits"
	// 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"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldAdditions holds the string denoting the additions field in the database.
	FieldAdditions = "additions"
	// FieldDeletions holds the string denoting the deletions field in the database.
	FieldDeletions = "deletions"
	// FieldChangeFiles holds the string denoting the change_files field in the database.
	FieldChangeFiles = "change_files"
	// FieldCommittedAt holds the string denoting the committed_at field in the database.
	FieldCommittedAt = "committed_at"
	// FieldPushedAt holds the string denoting the pushed_at field in the database.
	FieldPushedAt = "pushed_at"
	// EdgePullRequest holds the string denoting the pull_request edge name in mutations.
	EdgePullRequest = "pull_request"
	// Table holds the table name of the commits in the database.
	Table = "commits"
	// PullRequestTable is the table that holds the pull_request relation/edge.
	PullRequestTable = "commits"
	// PullRequestInverseTable is the table name for the PullRequest entity.
	// It exists in this package in order to avoid circular dependency with the "pullrequest" package.
	PullRequestInverseTable = "pull_requests"
	// PullRequestColumn is the table column denoting the pull_request relation/edge.
	PullRequestColumn = "pull_request_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
	// DefaultCommittedAt holds the default value on creation for the "committed_at" field.
	DefaultCommittedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for commits fields.

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

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

Functions

func Additions

func Additions(v int64) predicate.Commits

Additions applies equality check predicate on the "additions" field. It's identical to AdditionsEQ.

func AdditionsEQ

func AdditionsEQ(v int64) predicate.Commits

AdditionsEQ applies the EQ predicate on the "additions" field.

func AdditionsGT

func AdditionsGT(v int64) predicate.Commits

AdditionsGT applies the GT predicate on the "additions" field.

func AdditionsGTE

func AdditionsGTE(v int64) predicate.Commits

AdditionsGTE applies the GTE predicate on the "additions" field.

func AdditionsIn

func AdditionsIn(vs ...int64) predicate.Commits

AdditionsIn applies the In predicate on the "additions" field.

func AdditionsLT

func AdditionsLT(v int64) predicate.Commits

AdditionsLT applies the LT predicate on the "additions" field.

func AdditionsLTE

func AdditionsLTE(v int64) predicate.Commits

AdditionsLTE applies the LTE predicate on the "additions" field.

func AdditionsNEQ

func AdditionsNEQ(v int64) predicate.Commits

AdditionsNEQ applies the NEQ predicate on the "additions" field.

func AdditionsNotIn

func AdditionsNotIn(vs ...int64) predicate.Commits

AdditionsNotIn applies the NotIn predicate on the "additions" field.

func And

func And(predicates ...predicate.Commits) predicate.Commits

And groups predicates with the AND operator between them.

func ChangeFiles

func ChangeFiles(v int64) predicate.Commits

ChangeFiles applies equality check predicate on the "change_files" field. It's identical to ChangeFilesEQ.

func ChangeFilesEQ

func ChangeFilesEQ(v int64) predicate.Commits

ChangeFilesEQ applies the EQ predicate on the "change_files" field.

func ChangeFilesGT

func ChangeFilesGT(v int64) predicate.Commits

ChangeFilesGT applies the GT predicate on the "change_files" field.

func ChangeFilesGTE

func ChangeFilesGTE(v int64) predicate.Commits

ChangeFilesGTE applies the GTE predicate on the "change_files" field.

func ChangeFilesIn

func ChangeFilesIn(vs ...int64) predicate.Commits

ChangeFilesIn applies the In predicate on the "change_files" field.

func ChangeFilesLT

func ChangeFilesLT(v int64) predicate.Commits

ChangeFilesLT applies the LT predicate on the "change_files" field.

func ChangeFilesLTE

func ChangeFilesLTE(v int64) predicate.Commits

ChangeFilesLTE applies the LTE predicate on the "change_files" field.

func ChangeFilesNEQ

func ChangeFilesNEQ(v int64) predicate.Commits

ChangeFilesNEQ applies the NEQ predicate on the "change_files" field.

func ChangeFilesNotIn

func ChangeFilesNotIn(vs ...int64) predicate.Commits

ChangeFilesNotIn applies the NotIn predicate on the "change_files" field.

func CommittedAt

func CommittedAt(v time.Time) predicate.Commits

CommittedAt applies equality check predicate on the "committed_at" field. It's identical to CommittedAtEQ.

func CommittedAtEQ

func CommittedAtEQ(v time.Time) predicate.Commits

CommittedAtEQ applies the EQ predicate on the "committed_at" field.

func CommittedAtGT

func CommittedAtGT(v time.Time) predicate.Commits

CommittedAtGT applies the GT predicate on the "committed_at" field.

func CommittedAtGTE

func CommittedAtGTE(v time.Time) predicate.Commits

CommittedAtGTE applies the GTE predicate on the "committed_at" field.

func CommittedAtIn

func CommittedAtIn(vs ...time.Time) predicate.Commits

CommittedAtIn applies the In predicate on the "committed_at" field.

func CommittedAtLT

func CommittedAtLT(v time.Time) predicate.Commits

CommittedAtLT applies the LT predicate on the "committed_at" field.

func CommittedAtLTE

func CommittedAtLTE(v time.Time) predicate.Commits

CommittedAtLTE applies the LTE predicate on the "committed_at" field.

func CommittedAtNEQ

func CommittedAtNEQ(v time.Time) predicate.Commits

CommittedAtNEQ applies the NEQ predicate on the "committed_at" field.

func CommittedAtNotIn

func CommittedAtNotIn(vs ...time.Time) predicate.Commits

CommittedAtNotIn applies the NotIn predicate on the "committed_at" field.

func Deletions

func Deletions(v int64) predicate.Commits

Deletions applies equality check predicate on the "deletions" field. It's identical to DeletionsEQ.

func DeletionsEQ

func DeletionsEQ(v int64) predicate.Commits

DeletionsEQ applies the EQ predicate on the "deletions" field.

func DeletionsGT

func DeletionsGT(v int64) predicate.Commits

DeletionsGT applies the GT predicate on the "deletions" field.

func DeletionsGTE

func DeletionsGTE(v int64) predicate.Commits

DeletionsGTE applies the GTE predicate on the "deletions" field.

func DeletionsIn

func DeletionsIn(vs ...int64) predicate.Commits

DeletionsIn applies the In predicate on the "deletions" field.

func DeletionsLT

func DeletionsLT(v int64) predicate.Commits

DeletionsLT applies the LT predicate on the "deletions" field.

func DeletionsLTE

func DeletionsLTE(v int64) predicate.Commits

DeletionsLTE applies the LTE predicate on the "deletions" field.

func DeletionsNEQ

func DeletionsNEQ(v int64) predicate.Commits

DeletionsNEQ applies the NEQ predicate on the "deletions" field.

func DeletionsNotIn

func DeletionsNotIn(vs ...int64) predicate.Commits

DeletionsNotIn applies the NotIn predicate on the "deletions" field.

func GithubID

func GithubID(v string) predicate.Commits

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

func GithubIDContains

func GithubIDContains(v string) predicate.Commits

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

func GithubIDContainsFold

func GithubIDContainsFold(v string) predicate.Commits

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

func GithubIDEQ

func GithubIDEQ(v string) predicate.Commits

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

func GithubIDEqualFold

func GithubIDEqualFold(v string) predicate.Commits

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

func GithubIDGT

func GithubIDGT(v string) predicate.Commits

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

func GithubIDGTE

func GithubIDGTE(v string) predicate.Commits

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

func GithubIDHasPrefix

func GithubIDHasPrefix(v string) predicate.Commits

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

func GithubIDHasSuffix

func GithubIDHasSuffix(v string) predicate.Commits

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

func GithubIDIn

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

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

func GithubIDLT

func GithubIDLT(v string) predicate.Commits

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

func GithubIDLTE

func GithubIDLTE(v string) predicate.Commits

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

func GithubIDNEQ

func GithubIDNEQ(v string) predicate.Commits

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

func GithubIDNotIn

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

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

func HasPullRequest

func HasPullRequest() predicate.Commits

HasPullRequest applies the HasEdge predicate on the "pull_request" edge.

func HasPullRequestWith

func HasPullRequestWith(preds ...predicate.PullRequest) predicate.Commits

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

func ID

func ID(id uuid.UUID) predicate.Commits

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Commits

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Commits

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Commits

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Commits

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Commits

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Commits

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.Commits

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Commits

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Commits

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Commits

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Commits

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Commits

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Commits

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Commits

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Commits

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.Commits

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Commits

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Commits

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Commits

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.Commits

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Commits) predicate.Commits

Or groups predicates with the OR operator between them.

func PushedAt

func PushedAt(v time.Time) predicate.Commits

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

func PushedAtEQ

func PushedAtEQ(v time.Time) predicate.Commits

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

func PushedAtGT

func PushedAtGT(v time.Time) predicate.Commits

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

func PushedAtGTE

func PushedAtGTE(v time.Time) predicate.Commits

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

func PushedAtIn

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

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

func PushedAtIsNil

func PushedAtIsNil() predicate.Commits

PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.

func PushedAtLT

func PushedAtLT(v time.Time) predicate.Commits

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

func PushedAtLTE

func PushedAtLTE(v time.Time) predicate.Commits

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

func PushedAtNEQ

func PushedAtNEQ(v time.Time) predicate.Commits

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

func PushedAtNotIn

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

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

func PushedAtNotNil

func PushedAtNotNil() predicate.Commits

PushedAtNotNil applies the NotNil predicate on the "pushed_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