gitcommit

package
v0.0.0-...-5feaf8d Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the gitcommit type in the database.
	Label = "git_commit"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "sha"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldAuthorLogin holds the string denoting the author_login field in the database.
	FieldAuthorLogin = "author_login"
	// FieldAuthorID holds the string denoting the author_id field in the database.
	FieldAuthorID = "author_id"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// EdgeRepository holds the string denoting the repository edge name in mutations.
	EdgeRepository = "repository"
	// RepositoryFieldID holds the string denoting the ID field of the Repository.
	RepositoryFieldID = "id"
	// Table holds the table name of the gitcommit in the database.
	Table = "git_commits"
	// RepositoryTable is the table that holds the repository relation/edge.
	RepositoryTable = "git_commits"
	// 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_commits"
)

Variables

Columns holds all SQL columns for gitcommit fields.

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

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

Functions

func And

func And(predicates ...predicate.GitCommit) predicate.GitCommit

And groups predicates with the AND operator between them.

func AuthorID

func AuthorID(v int64) predicate.GitCommit

AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.

func AuthorIDEQ

func AuthorIDEQ(v int64) predicate.GitCommit

AuthorIDEQ applies the EQ predicate on the "author_id" field.

func AuthorIDGT

func AuthorIDGT(v int64) predicate.GitCommit

AuthorIDGT applies the GT predicate on the "author_id" field.

func AuthorIDGTE

func AuthorIDGTE(v int64) predicate.GitCommit

AuthorIDGTE applies the GTE predicate on the "author_id" field.

func AuthorIDIn

func AuthorIDIn(vs ...int64) predicate.GitCommit

AuthorIDIn applies the In predicate on the "author_id" field.

func AuthorIDLT

func AuthorIDLT(v int64) predicate.GitCommit

AuthorIDLT applies the LT predicate on the "author_id" field.

func AuthorIDLTE

func AuthorIDLTE(v int64) predicate.GitCommit

AuthorIDLTE applies the LTE predicate on the "author_id" field.

func AuthorIDNEQ

func AuthorIDNEQ(v int64) predicate.GitCommit

AuthorIDNEQ applies the NEQ predicate on the "author_id" field.

func AuthorIDNotIn

func AuthorIDNotIn(vs ...int64) predicate.GitCommit

AuthorIDNotIn applies the NotIn predicate on the "author_id" field.

func AuthorLogin

func AuthorLogin(v string) predicate.GitCommit

AuthorLogin applies equality check predicate on the "author_login" field. It's identical to AuthorLoginEQ.

func AuthorLoginContains

func AuthorLoginContains(v string) predicate.GitCommit

AuthorLoginContains applies the Contains predicate on the "author_login" field.

func AuthorLoginContainsFold

func AuthorLoginContainsFold(v string) predicate.GitCommit

AuthorLoginContainsFold applies the ContainsFold predicate on the "author_login" field.

func AuthorLoginEQ

func AuthorLoginEQ(v string) predicate.GitCommit

AuthorLoginEQ applies the EQ predicate on the "author_login" field.

func AuthorLoginEqualFold

func AuthorLoginEqualFold(v string) predicate.GitCommit

AuthorLoginEqualFold applies the EqualFold predicate on the "author_login" field.

func AuthorLoginGT

func AuthorLoginGT(v string) predicate.GitCommit

AuthorLoginGT applies the GT predicate on the "author_login" field.

func AuthorLoginGTE

func AuthorLoginGTE(v string) predicate.GitCommit

AuthorLoginGTE applies the GTE predicate on the "author_login" field.

func AuthorLoginHasPrefix

func AuthorLoginHasPrefix(v string) predicate.GitCommit

AuthorLoginHasPrefix applies the HasPrefix predicate on the "author_login" field.

func AuthorLoginHasSuffix

func AuthorLoginHasSuffix(v string) predicate.GitCommit

AuthorLoginHasSuffix applies the HasSuffix predicate on the "author_login" field.

func AuthorLoginIn

func AuthorLoginIn(vs ...string) predicate.GitCommit

AuthorLoginIn applies the In predicate on the "author_login" field.

func AuthorLoginLT

func AuthorLoginLT(v string) predicate.GitCommit

AuthorLoginLT applies the LT predicate on the "author_login" field.

func AuthorLoginLTE

func AuthorLoginLTE(v string) predicate.GitCommit

AuthorLoginLTE applies the LTE predicate on the "author_login" field.

func AuthorLoginNEQ

func AuthorLoginNEQ(v string) predicate.GitCommit

AuthorLoginNEQ applies the NEQ predicate on the "author_login" field.

func AuthorLoginNotIn

func AuthorLoginNotIn(vs ...string) predicate.GitCommit

AuthorLoginNotIn applies the NotIn predicate on the "author_login" field.

func Date

func Date(v time.Time) predicate.GitCommit

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.GitCommit

DateEQ applies the EQ predicate on the "date" field.

func DateGT

func DateGT(v time.Time) predicate.GitCommit

DateGT applies the GT predicate on the "date" field.

func DateGTE

func DateGTE(v time.Time) predicate.GitCommit

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.GitCommit

DateIn applies the In predicate on the "date" field.

func DateLT

func DateLT(v time.Time) predicate.GitCommit

DateLT applies the LT predicate on the "date" field.

func DateLTE

func DateLTE(v time.Time) predicate.GitCommit

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.GitCommit

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.GitCommit

DateNotIn applies the NotIn predicate on the "date" field.

func HasRepository

func HasRepository() predicate.GitCommit

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

func HasRepositoryWith

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

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

func ID

func ID(id string) predicate.GitCommit

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.GitCommit

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.GitCommit

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.GitCommit

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.GitCommit

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.GitCommit

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.GitCommit

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.GitCommit

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.GitCommit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.GitCommit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.GitCommit

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.GitCommit

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

func MessageContains

func MessageContains(v string) predicate.GitCommit

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

func MessageContainsFold

func MessageContainsFold(v string) predicate.GitCommit

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

func MessageEQ

func MessageEQ(v string) predicate.GitCommit

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

func MessageEqualFold

func MessageEqualFold(v string) predicate.GitCommit

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

func MessageGT

func MessageGT(v string) predicate.GitCommit

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

func MessageGTE

func MessageGTE(v string) predicate.GitCommit

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

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.GitCommit

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

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.GitCommit

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

func MessageIn

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

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

func MessageLT

func MessageLT(v string) predicate.GitCommit

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

func MessageLTE

func MessageLTE(v string) predicate.GitCommit

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

func MessageNEQ

func MessageNEQ(v string) predicate.GitCommit

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

func MessageNotIn

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

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

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 GitCommit queries.

func ByAuthorID

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

ByAuthorID orders the results by the author_id field.

func ByAuthorLogin

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

ByAuthorLogin orders the results by the author_login field.

func ByDate

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

ByDate orders the results by the date field.

func ByID

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

ByID orders the results by the id field.

func ByMessage

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

ByMessage orders the results by the message field.

func ByRepositoryField

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

ByRepositoryField orders the results by repository field.

Jump to

Keyboard shortcuts

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