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 HasNamespace() predicate.SourceName
- func HasNamespaceWith(preds ...predicate.SourceNamespace) predicate.SourceName
- func HasOccurrences() predicate.SourceName
- func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.SourceName
- func ID(id int) predicate.SourceName
- func IDEQ(id int) predicate.SourceName
- func IDGT(id int) predicate.SourceName
- func IDGTE(id int) predicate.SourceName
- func IDIn(ids ...int) predicate.SourceName
- func IDLT(id int) predicate.SourceName
- func IDLTE(id int) predicate.SourceName
- func IDNEQ(id int) predicate.SourceName
- func IDNotIn(ids ...int) 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 NamespaceID(v int) predicate.SourceName
- func NamespaceIDEQ(v int) predicate.SourceName
- func NamespaceIDIn(vs ...int) predicate.SourceName
- func NamespaceIDNEQ(v int) predicate.SourceName
- func NamespaceIDNotIn(vs ...int) 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 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 ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNamespaceID(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
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" // 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" // FieldNamespaceID holds the string denoting the namespace_id field in the database. FieldNamespaceID = "namespace_id" // EdgeNamespace holds the string denoting the namespace edge name in mutations. EdgeNamespace = "namespace" // 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" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "source_names" // NamespaceInverseTable is the table name for the SourceNamespace entity. // It exists in this package in order to avoid circular dependency with the "sourcenamespace" package. NamespaceInverseTable = "source_namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "namespace_id" // 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, FieldName, FieldCommit, FieldTag, FieldNamespaceID, }
Columns holds all SQL columns for sourcename fields.
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 HasNamespace ¶
func HasNamespace() predicate.SourceName
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
func HasNamespaceWith(preds ...predicate.SourceNamespace) predicate.SourceName
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
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 IDGTE ¶
func IDGTE(id int) predicate.SourceName
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SourceName
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SourceName
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SourceName
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) 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 NamespaceID ¶
func NamespaceID(v int) predicate.SourceName
NamespaceID applies equality check predicate on the "namespace_id" field. It's identical to NamespaceIDEQ.
func NamespaceIDEQ ¶
func NamespaceIDEQ(v int) predicate.SourceName
NamespaceIDEQ applies the EQ predicate on the "namespace_id" field.
func NamespaceIDIn ¶
func NamespaceIDIn(vs ...int) predicate.SourceName
NamespaceIDIn applies the In predicate on the "namespace_id" field.
func NamespaceIDNEQ ¶
func NamespaceIDNEQ(v int) predicate.SourceName
NamespaceIDNEQ applies the NEQ predicate on the "namespace_id" field.
func NamespaceIDNotIn ¶
func NamespaceIDNotIn(vs ...int) predicate.SourceName
NamespaceIDNotIn applies the NotIn predicate on the "namespace_id" 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 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 ByNamespaceField ¶
func ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByNamespaceField orders the results by namespace field.
func ByNamespaceID ¶
func ByNamespaceID(opts ...sql.OrderTermOption) OrderOption
ByNamespaceID orders the results by the namespace_id 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.