Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PackageName) predicate.PackageName
- func HasNamespace() predicate.PackageName
- func HasNamespaceWith(preds ...predicate.PackageNamespace) predicate.PackageName
- func HasVersions() predicate.PackageName
- func HasVersionsWith(preds ...predicate.PackageVersion) predicate.PackageName
- func ID(id int) predicate.PackageName
- func IDEQ(id int) predicate.PackageName
- func IDGT(id int) predicate.PackageName
- func IDGTE(id int) predicate.PackageName
- func IDIn(ids ...int) predicate.PackageName
- func IDLT(id int) predicate.PackageName
- func IDLTE(id int) predicate.PackageName
- func IDNEQ(id int) predicate.PackageName
- func IDNotIn(ids ...int) predicate.PackageName
- func Name(v string) predicate.PackageName
- func NameContains(v string) predicate.PackageName
- func NameContainsFold(v string) predicate.PackageName
- func NameEQ(v string) predicate.PackageName
- func NameEqualFold(v string) predicate.PackageName
- func NameGT(v string) predicate.PackageName
- func NameGTE(v string) predicate.PackageName
- func NameHasPrefix(v string) predicate.PackageName
- func NameHasSuffix(v string) predicate.PackageName
- func NameIn(vs ...string) predicate.PackageName
- func NameLT(v string) predicate.PackageName
- func NameLTE(v string) predicate.PackageName
- func NameNEQ(v string) predicate.PackageName
- func NameNotIn(vs ...string) predicate.PackageName
- func NamespaceID(v int) predicate.PackageName
- func NamespaceIDEQ(v int) predicate.PackageName
- func NamespaceIDIn(vs ...int) predicate.PackageName
- func NamespaceIDNEQ(v int) predicate.PackageName
- func NamespaceIDNotIn(vs ...int) predicate.PackageName
- func Not(p predicate.PackageName) predicate.PackageName
- func Or(predicates ...predicate.PackageName) predicate.PackageName
- func ValidColumn(column string) bool
- type 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 ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVersionsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the packagename type in the database. Label = "package_name" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNamespaceID holds the string denoting the namespace_id field in the database. FieldNamespaceID = "namespace_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeNamespace holds the string denoting the namespace edge name in mutations. EdgeNamespace = "namespace" // EdgeVersions holds the string denoting the versions edge name in mutations. EdgeVersions = "versions" // Table holds the table name of the packagename in the database. Table = "package_names" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "package_names" // NamespaceInverseTable is the table name for the PackageNamespace entity. // It exists in this package in order to avoid circular dependency with the "packagenamespace" package. NamespaceInverseTable = "package_namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "namespace_id" // VersionsTable is the table that holds the versions relation/edge. VersionsTable = "package_versions" // VersionsInverseTable is the table name for the PackageVersion entity. // It exists in this package in order to avoid circular dependency with the "packageversion" package. VersionsInverseTable = "package_versions" // VersionsColumn is the table column denoting the versions relation/edge. VersionsColumn = "name_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNamespaceID, FieldName, }
Columns holds all SQL columns for packagename fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.PackageName) predicate.PackageName
And groups predicates with the AND operator between them.
func HasNamespace ¶
func HasNamespace() predicate.PackageName
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
func HasNamespaceWith(preds ...predicate.PackageNamespace) predicate.PackageName
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func HasVersions ¶
func HasVersions() predicate.PackageName
HasVersions applies the HasEdge predicate on the "versions" edge.
func HasVersionsWith ¶
func HasVersionsWith(preds ...predicate.PackageVersion) predicate.PackageName
HasVersionsWith applies the HasEdge predicate on the "versions" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.PackageName
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PackageName
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PackageName
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PackageName
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PackageName
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.PackageName
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.PackageName
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.PackageName
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.PackageName
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.PackageName
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.PackageName
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.PackageName
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.PackageName
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.PackageName
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.PackageName
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.PackageName
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.PackageName
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.PackageName
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.PackageName
NameNotIn applies the NotIn predicate on the "name" field.
func NamespaceID ¶
func NamespaceID(v int) predicate.PackageName
NamespaceID applies equality check predicate on the "namespace_id" field. It's identical to NamespaceIDEQ.
func NamespaceIDEQ ¶
func NamespaceIDEQ(v int) predicate.PackageName
NamespaceIDEQ applies the EQ predicate on the "namespace_id" field.
func NamespaceIDIn ¶
func NamespaceIDIn(vs ...int) predicate.PackageName
NamespaceIDIn applies the In predicate on the "namespace_id" field.
func NamespaceIDNEQ ¶
func NamespaceIDNEQ(v int) predicate.PackageName
NamespaceIDNEQ applies the NEQ predicate on the "namespace_id" field.
func NamespaceIDNotIn ¶
func NamespaceIDNotIn(vs ...int) predicate.PackageName
NamespaceIDNotIn applies the NotIn predicate on the "namespace_id" field.
func Not ¶
func Not(p predicate.PackageName) predicate.PackageName
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PackageName) predicate.PackageName
Or groups predicates with the OR operator between them.
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 PackageName queries.
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 ByVersions ¶
func ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVersions orders the results by versions terms.
func ByVersionsCount ¶
func ByVersionsCount(opts ...sql.OrderTermOption) OrderOption
ByVersionsCount orders the results by versions count.