Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SourceName) predicate.SourceName
- func Commit(v string) predicate.SourceName
- func CommitContains(v string) predicate.SourceName
- func CommitContainsFold(v string) predicate.SourceName
- func CommitEQ(v string) predicate.SourceName
- func CommitEqualFold(v string) predicate.SourceName
- func CommitGT(v string) predicate.SourceName
- func CommitGTE(v string) predicate.SourceName
- func CommitHasPrefix(v string) predicate.SourceName
- func CommitHasSuffix(v string) predicate.SourceName
- func CommitIn(vs ...string) predicate.SourceName
- func CommitIsNil() predicate.SourceName
- func CommitLT(v string) predicate.SourceName
- func CommitLTE(v string) predicate.SourceName
- func CommitNEQ(v string) predicate.SourceName
- func CommitNotIn(vs ...string) predicate.SourceName
- func CommitNotNil() predicate.SourceName
- func HasOccurrences() predicate.SourceName
- func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.SourceName
- func ID(id uuid.UUID) predicate.SourceName
- func IDEQ(id uuid.UUID) predicate.SourceName
- func IDGT(id uuid.UUID) predicate.SourceName
- func IDGTE(id uuid.UUID) predicate.SourceName
- func IDIn(ids ...uuid.UUID) predicate.SourceName
- func IDLT(id uuid.UUID) predicate.SourceName
- func IDLTE(id uuid.UUID) predicate.SourceName
- func IDNEQ(id uuid.UUID) predicate.SourceName
- func IDNotIn(ids ...uuid.UUID) predicate.SourceName
- func Name(v string) predicate.SourceName
- func NameContains(v string) predicate.SourceName
- func NameContainsFold(v string) predicate.SourceName
- func NameEQ(v string) predicate.SourceName
- func NameEqualFold(v string) predicate.SourceName
- func NameGT(v string) predicate.SourceName
- func NameGTE(v string) predicate.SourceName
- func NameHasPrefix(v string) predicate.SourceName
- func NameHasSuffix(v string) predicate.SourceName
- func NameIn(vs ...string) predicate.SourceName
- func NameLT(v string) predicate.SourceName
- func NameLTE(v string) predicate.SourceName
- func NameNEQ(v string) predicate.SourceName
- func NameNotIn(vs ...string) predicate.SourceName
- func Namespace(v string) predicate.SourceName
- func NamespaceContains(v string) predicate.SourceName
- func NamespaceContainsFold(v string) predicate.SourceName
- func NamespaceEQ(v string) predicate.SourceName
- func NamespaceEqualFold(v string) predicate.SourceName
- func NamespaceGT(v string) predicate.SourceName
- func NamespaceGTE(v string) predicate.SourceName
- func NamespaceHasPrefix(v string) predicate.SourceName
- func NamespaceHasSuffix(v string) predicate.SourceName
- func NamespaceIn(vs ...string) predicate.SourceName
- func NamespaceLT(v string) predicate.SourceName
- func NamespaceLTE(v string) predicate.SourceName
- func NamespaceNEQ(v string) predicate.SourceName
- func NamespaceNotIn(vs ...string) predicate.SourceName
- func Not(p predicate.SourceName) predicate.SourceName
- func Or(predicates ...predicate.SourceName) predicate.SourceName
- func Tag(v string) predicate.SourceName
- func TagContains(v string) predicate.SourceName
- func TagContainsFold(v string) predicate.SourceName
- func TagEQ(v string) predicate.SourceName
- func TagEqualFold(v string) predicate.SourceName
- func TagGT(v string) predicate.SourceName
- func TagGTE(v string) predicate.SourceName
- func TagHasPrefix(v string) predicate.SourceName
- func TagHasSuffix(v string) predicate.SourceName
- func TagIn(vs ...string) predicate.SourceName
- func TagIsNil() predicate.SourceName
- func TagLT(v string) predicate.SourceName
- func TagLTE(v string) predicate.SourceName
- func TagNEQ(v string) predicate.SourceName
- func TagNotIn(vs ...string) predicate.SourceName
- func TagNotNil() predicate.SourceName
- func Type(v string) predicate.SourceName
- func TypeContains(v string) predicate.SourceName
- func TypeContainsFold(v string) predicate.SourceName
- func TypeEQ(v string) predicate.SourceName
- func TypeEqualFold(v string) predicate.SourceName
- func TypeGT(v string) predicate.SourceName
- func TypeGTE(v string) predicate.SourceName
- func TypeHasPrefix(v string) predicate.SourceName
- func TypeHasSuffix(v string) predicate.SourceName
- func TypeIn(vs ...string) predicate.SourceName
- func TypeLT(v string) predicate.SourceName
- func TypeLTE(v string) predicate.SourceName
- func TypeNEQ(v string) predicate.SourceName
- func TypeNotIn(vs ...string) predicate.SourceName
- func ValidColumn(column string) bool
- type OrderOption
- func ByCommit(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTag(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sourcename type in the database. Label = "source_name" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCommit holds the string denoting the commit field in the database. FieldCommit = "commit" // FieldTag holds the string denoting the tag field in the database. FieldTag = "tag" // EdgeOccurrences holds the string denoting the occurrences edge name in mutations. EdgeOccurrences = "occurrences" // Table holds the table name of the sourcename in the database. Table = "source_names" // OccurrencesTable is the table that holds the occurrences relation/edge. OccurrencesTable = "occurrences" // OccurrencesInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. OccurrencesInverseTable = "occurrences" // OccurrencesColumn is the table column denoting the occurrences relation/edge. OccurrencesColumn = "source_id" )
Variables ¶
var Columns = []string{ FieldID, FieldType, FieldNamespace, FieldName, FieldCommit, FieldTag, }
Columns holds all SQL columns for sourcename fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.SourceName) predicate.SourceName
And groups predicates with the AND operator between them.
func Commit ¶
func Commit(v string) predicate.SourceName
Commit applies equality check predicate on the "commit" field. It's identical to CommitEQ.
func CommitContains ¶
func CommitContains(v string) predicate.SourceName
CommitContains applies the Contains predicate on the "commit" field.
func CommitContainsFold ¶
func CommitContainsFold(v string) predicate.SourceName
CommitContainsFold applies the ContainsFold predicate on the "commit" field.
func CommitEQ ¶
func CommitEQ(v string) predicate.SourceName
CommitEQ applies the EQ predicate on the "commit" field.
func CommitEqualFold ¶
func CommitEqualFold(v string) predicate.SourceName
CommitEqualFold applies the EqualFold predicate on the "commit" field.
func CommitGT ¶
func CommitGT(v string) predicate.SourceName
CommitGT applies the GT predicate on the "commit" field.
func CommitGTE ¶
func CommitGTE(v string) predicate.SourceName
CommitGTE applies the GTE predicate on the "commit" field.
func CommitHasPrefix ¶
func CommitHasPrefix(v string) predicate.SourceName
CommitHasPrefix applies the HasPrefix predicate on the "commit" field.
func CommitHasSuffix ¶
func CommitHasSuffix(v string) predicate.SourceName
CommitHasSuffix applies the HasSuffix predicate on the "commit" field.
func CommitIn ¶
func CommitIn(vs ...string) predicate.SourceName
CommitIn applies the In predicate on the "commit" field.
func CommitIsNil ¶
func CommitIsNil() predicate.SourceName
CommitIsNil applies the IsNil predicate on the "commit" field.
func CommitLT ¶
func CommitLT(v string) predicate.SourceName
CommitLT applies the LT predicate on the "commit" field.
func CommitLTE ¶
func CommitLTE(v string) predicate.SourceName
CommitLTE applies the LTE predicate on the "commit" field.
func CommitNEQ ¶
func CommitNEQ(v string) predicate.SourceName
CommitNEQ applies the NEQ predicate on the "commit" field.
func CommitNotIn ¶
func CommitNotIn(vs ...string) predicate.SourceName
CommitNotIn applies the NotIn predicate on the "commit" field.
func CommitNotNil ¶
func CommitNotNil() predicate.SourceName
CommitNotNil applies the NotNil predicate on the "commit" field.
func HasOccurrences ¶
func HasOccurrences() predicate.SourceName
HasOccurrences applies the HasEdge predicate on the "occurrences" edge.
func HasOccurrencesWith ¶
func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.SourceName
HasOccurrencesWith applies the HasEdge predicate on the "occurrences" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SourceName
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SourceName
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SourceName
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SourceName
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SourceName
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SourceName
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SourceName
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.SourceName
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.SourceName
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.SourceName
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.SourceName
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.SourceName
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.SourceName
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.SourceName
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.SourceName
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.SourceName
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.SourceName
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.SourceName
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.SourceName
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.SourceName
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.SourceName
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.SourceName
NameNotIn applies the NotIn predicate on the "name" field.
func Namespace ¶ added in v0.5.0
func Namespace(v string) predicate.SourceName
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶ added in v0.5.0
func NamespaceContains(v string) predicate.SourceName
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶ added in v0.5.0
func NamespaceContainsFold(v string) predicate.SourceName
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶ added in v0.5.0
func NamespaceEQ(v string) predicate.SourceName
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶ added in v0.5.0
func NamespaceEqualFold(v string) predicate.SourceName
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶ added in v0.5.0
func NamespaceGT(v string) predicate.SourceName
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶ added in v0.5.0
func NamespaceGTE(v string) predicate.SourceName
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶ added in v0.5.0
func NamespaceHasPrefix(v string) predicate.SourceName
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶ added in v0.5.0
func NamespaceHasSuffix(v string) predicate.SourceName
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶ added in v0.5.0
func NamespaceIn(vs ...string) predicate.SourceName
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶ added in v0.5.0
func NamespaceLT(v string) predicate.SourceName
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶ added in v0.5.0
func NamespaceLTE(v string) predicate.SourceName
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶ added in v0.5.0
func NamespaceNEQ(v string) predicate.SourceName
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶ added in v0.5.0
func NamespaceNotIn(vs ...string) predicate.SourceName
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.SourceName) predicate.SourceName
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SourceName) predicate.SourceName
Or groups predicates with the OR operator between them.
func Tag ¶
func Tag(v string) predicate.SourceName
Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.
func TagContains ¶
func TagContains(v string) predicate.SourceName
TagContains applies the Contains predicate on the "tag" field.
func TagContainsFold ¶
func TagContainsFold(v string) predicate.SourceName
TagContainsFold applies the ContainsFold predicate on the "tag" field.
func TagEQ ¶
func TagEQ(v string) predicate.SourceName
TagEQ applies the EQ predicate on the "tag" field.
func TagEqualFold ¶
func TagEqualFold(v string) predicate.SourceName
TagEqualFold applies the EqualFold predicate on the "tag" field.
func TagGT ¶
func TagGT(v string) predicate.SourceName
TagGT applies the GT predicate on the "tag" field.
func TagGTE ¶
func TagGTE(v string) predicate.SourceName
TagGTE applies the GTE predicate on the "tag" field.
func TagHasPrefix ¶
func TagHasPrefix(v string) predicate.SourceName
TagHasPrefix applies the HasPrefix predicate on the "tag" field.
func TagHasSuffix ¶
func TagHasSuffix(v string) predicate.SourceName
TagHasSuffix applies the HasSuffix predicate on the "tag" field.
func TagIn ¶
func TagIn(vs ...string) predicate.SourceName
TagIn applies the In predicate on the "tag" field.
func TagIsNil ¶
func TagIsNil() predicate.SourceName
TagIsNil applies the IsNil predicate on the "tag" field.
func TagLT ¶
func TagLT(v string) predicate.SourceName
TagLT applies the LT predicate on the "tag" field.
func TagLTE ¶
func TagLTE(v string) predicate.SourceName
TagLTE applies the LTE predicate on the "tag" field.
func TagNEQ ¶
func TagNEQ(v string) predicate.SourceName
TagNEQ applies the NEQ predicate on the "tag" field.
func TagNotIn ¶
func TagNotIn(vs ...string) predicate.SourceName
TagNotIn applies the NotIn predicate on the "tag" field.
func TagNotNil ¶
func TagNotNil() predicate.SourceName
TagNotNil applies the NotNil predicate on the "tag" field.
func Type ¶ added in v0.5.0
func Type(v string) predicate.SourceName
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶ added in v0.5.0
func TypeContains(v string) predicate.SourceName
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶ added in v0.5.0
func TypeContainsFold(v string) predicate.SourceName
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶ added in v0.5.0
func TypeEQ(v string) predicate.SourceName
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶ added in v0.5.0
func TypeEqualFold(v string) predicate.SourceName
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶ added in v0.5.0
func TypeGT(v string) predicate.SourceName
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶ added in v0.5.0
func TypeGTE(v string) predicate.SourceName
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶ added in v0.5.0
func TypeHasPrefix(v string) predicate.SourceName
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶ added in v0.5.0
func TypeHasSuffix(v string) predicate.SourceName
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶ added in v0.5.0
func TypeIn(vs ...string) predicate.SourceName
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶ added in v0.5.0
func TypeLT(v string) predicate.SourceName
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶ added in v0.5.0
func TypeLTE(v string) predicate.SourceName
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶ added in v0.5.0
func TypeNEQ(v string) predicate.SourceName
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶ added in v0.5.0
func TypeNotIn(vs ...string) predicate.SourceName
TypeNotIn applies the NotIn predicate on the "type" 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 SourceName queries.
func ByCommit ¶
func ByCommit(opts ...sql.OrderTermOption) OrderOption
ByCommit orders the results by the commit field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶ added in v0.5.0
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByOccurrences ¶
func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOccurrences orders the results by occurrences terms.
func ByOccurrencesCount ¶
func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
ByOccurrencesCount orders the results by occurrences count.
func ByTag ¶
func ByTag(opts ...sql.OrderTermOption) OrderOption
ByTag orders the results by the tag field.
func ByType ¶ added in v0.5.0
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.