Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GitCommit) predicate.GitCommit
- func AuthorID(v int64) predicate.GitCommit
- func AuthorIDEQ(v int64) predicate.GitCommit
- func AuthorIDGT(v int64) predicate.GitCommit
- func AuthorIDGTE(v int64) predicate.GitCommit
- func AuthorIDIn(vs ...int64) predicate.GitCommit
- func AuthorIDLT(v int64) predicate.GitCommit
- func AuthorIDLTE(v int64) predicate.GitCommit
- func AuthorIDNEQ(v int64) predicate.GitCommit
- func AuthorIDNotIn(vs ...int64) predicate.GitCommit
- func AuthorLogin(v string) predicate.GitCommit
- func AuthorLoginContains(v string) predicate.GitCommit
- func AuthorLoginContainsFold(v string) predicate.GitCommit
- func AuthorLoginEQ(v string) predicate.GitCommit
- func AuthorLoginEqualFold(v string) predicate.GitCommit
- func AuthorLoginGT(v string) predicate.GitCommit
- func AuthorLoginGTE(v string) predicate.GitCommit
- func AuthorLoginHasPrefix(v string) predicate.GitCommit
- func AuthorLoginHasSuffix(v string) predicate.GitCommit
- func AuthorLoginIn(vs ...string) predicate.GitCommit
- func AuthorLoginLT(v string) predicate.GitCommit
- func AuthorLoginLTE(v string) predicate.GitCommit
- func AuthorLoginNEQ(v string) predicate.GitCommit
- func AuthorLoginNotIn(vs ...string) predicate.GitCommit
- func Date(v time.Time) predicate.GitCommit
- func DateEQ(v time.Time) predicate.GitCommit
- func DateGT(v time.Time) predicate.GitCommit
- func DateGTE(v time.Time) predicate.GitCommit
- func DateIn(vs ...time.Time) predicate.GitCommit
- func DateLT(v time.Time) predicate.GitCommit
- func DateLTE(v time.Time) predicate.GitCommit
- func DateNEQ(v time.Time) predicate.GitCommit
- func DateNotIn(vs ...time.Time) predicate.GitCommit
- func HasRepository() predicate.GitCommit
- func HasRepositoryWith(preds ...predicate.Repository) predicate.GitCommit
- func ID(id string) predicate.GitCommit
- func IDContainsFold(id string) predicate.GitCommit
- func IDEQ(id string) predicate.GitCommit
- func IDEqualFold(id string) predicate.GitCommit
- func IDGT(id string) predicate.GitCommit
- func IDGTE(id string) predicate.GitCommit
- func IDIn(ids ...string) predicate.GitCommit
- func IDLT(id string) predicate.GitCommit
- func IDLTE(id string) predicate.GitCommit
- func IDNEQ(id string) predicate.GitCommit
- func IDNotIn(ids ...string) predicate.GitCommit
- func Message(v string) predicate.GitCommit
- func MessageContains(v string) predicate.GitCommit
- func MessageContainsFold(v string) predicate.GitCommit
- func MessageEQ(v string) predicate.GitCommit
- func MessageEqualFold(v string) predicate.GitCommit
- func MessageGT(v string) predicate.GitCommit
- func MessageGTE(v string) predicate.GitCommit
- func MessageHasPrefix(v string) predicate.GitCommit
- func MessageHasSuffix(v string) predicate.GitCommit
- func MessageIn(vs ...string) predicate.GitCommit
- func MessageLT(v string) predicate.GitCommit
- func MessageLTE(v string) predicate.GitCommit
- func MessageNEQ(v string) predicate.GitCommit
- func MessageNotIn(vs ...string) predicate.GitCommit
- func Not(p predicate.GitCommit) predicate.GitCommit
- func Or(predicates ...predicate.GitCommit) predicate.GitCommit
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
- func ByAuthorLogin(opts ...sql.OrderTermOption) OrderOption
- func ByDate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByRepositoryField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldMessage, FieldAuthorLogin, FieldAuthorID, FieldDate, }
Columns holds all SQL columns for gitcommit fields.
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 AuthorID ¶
AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.
func AuthorIDEQ ¶
AuthorIDEQ applies the EQ predicate on the "author_id" field.
func AuthorIDGT ¶
AuthorIDGT applies the GT predicate on the "author_id" field.
func AuthorIDGTE ¶
AuthorIDGTE applies the GTE predicate on the "author_id" field.
func AuthorIDIn ¶
AuthorIDIn applies the In predicate on the "author_id" field.
func AuthorIDLT ¶
AuthorIDLT applies the LT predicate on the "author_id" field.
func AuthorIDLTE ¶
AuthorIDLTE applies the LTE predicate on the "author_id" field.
func AuthorIDNEQ ¶
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
func AuthorIDNotIn ¶
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
func AuthorLogin ¶
AuthorLogin applies equality check predicate on the "author_login" field. It's identical to AuthorLoginEQ.
func AuthorLoginContains ¶
AuthorLoginContains applies the Contains predicate on the "author_login" field.
func AuthorLoginContainsFold ¶
AuthorLoginContainsFold applies the ContainsFold predicate on the "author_login" field.
func AuthorLoginEQ ¶
AuthorLoginEQ applies the EQ predicate on the "author_login" field.
func AuthorLoginEqualFold ¶
AuthorLoginEqualFold applies the EqualFold predicate on the "author_login" field.
func AuthorLoginGT ¶
AuthorLoginGT applies the GT predicate on the "author_login" field.
func AuthorLoginGTE ¶
AuthorLoginGTE applies the GTE predicate on the "author_login" field.
func AuthorLoginHasPrefix ¶
AuthorLoginHasPrefix applies the HasPrefix predicate on the "author_login" field.
func AuthorLoginHasSuffix ¶
AuthorLoginHasSuffix applies the HasSuffix predicate on the "author_login" field.
func AuthorLoginIn ¶
AuthorLoginIn applies the In predicate on the "author_login" field.
func AuthorLoginLT ¶
AuthorLoginLT applies the LT predicate on the "author_login" field.
func AuthorLoginLTE ¶
AuthorLoginLTE applies the LTE predicate on the "author_login" field.
func AuthorLoginNEQ ¶
AuthorLoginNEQ applies the NEQ predicate on the "author_login" field.
func AuthorLoginNotIn ¶
AuthorLoginNotIn applies the NotIn predicate on the "author_login" field.
func HasRepository ¶
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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.