Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PackageNamespace) predicate.PackageNamespace
- func HasNames() predicate.PackageNamespace
- func HasNamesWith(preds ...predicate.PackageName) predicate.PackageNamespace
- func HasPackage() predicate.PackageNamespace
- func HasPackageWith(preds ...predicate.PackageType) predicate.PackageNamespace
- func ID(id int) predicate.PackageNamespace
- func IDEQ(id int) predicate.PackageNamespace
- func IDGT(id int) predicate.PackageNamespace
- func IDGTE(id int) predicate.PackageNamespace
- func IDIn(ids ...int) predicate.PackageNamespace
- func IDLT(id int) predicate.PackageNamespace
- func IDLTE(id int) predicate.PackageNamespace
- func IDNEQ(id int) predicate.PackageNamespace
- func IDNotIn(ids ...int) predicate.PackageNamespace
- func Namespace(v string) predicate.PackageNamespace
- func NamespaceContains(v string) predicate.PackageNamespace
- func NamespaceContainsFold(v string) predicate.PackageNamespace
- func NamespaceEQ(v string) predicate.PackageNamespace
- func NamespaceEqualFold(v string) predicate.PackageNamespace
- func NamespaceGT(v string) predicate.PackageNamespace
- func NamespaceGTE(v string) predicate.PackageNamespace
- func NamespaceHasPrefix(v string) predicate.PackageNamespace
- func NamespaceHasSuffix(v string) predicate.PackageNamespace
- func NamespaceIn(vs ...string) predicate.PackageNamespace
- func NamespaceLT(v string) predicate.PackageNamespace
- func NamespaceLTE(v string) predicate.PackageNamespace
- func NamespaceNEQ(v string) predicate.PackageNamespace
- func NamespaceNotIn(vs ...string) predicate.PackageNamespace
- func Not(p predicate.PackageNamespace) predicate.PackageNamespace
- func Or(predicates ...predicate.PackageNamespace) predicate.PackageNamespace
- func PackageID(v int) predicate.PackageNamespace
- func PackageIDEQ(v int) predicate.PackageNamespace
- func PackageIDIn(vs ...int) predicate.PackageNamespace
- func PackageIDNEQ(v int) predicate.PackageNamespace
- func PackageIDNotIn(vs ...int) predicate.PackageNamespace
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNamesCount(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the packagenamespace type in the database. Label = "package_namespace" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPackageID holds the string denoting the package_id field in the database. FieldPackageID = "package_id" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // EdgePackage holds the string denoting the package edge name in mutations. EdgePackage = "package" // EdgeNames holds the string denoting the names edge name in mutations. EdgeNames = "names" // Table holds the table name of the packagenamespace in the database. Table = "package_namespaces" // PackageTable is the table that holds the package relation/edge. PackageTable = "package_namespaces" // PackageInverseTable is the table name for the PackageType entity. // It exists in this package in order to avoid circular dependency with the "packagetype" package. PackageInverseTable = "package_types" // PackageColumn is the table column denoting the package relation/edge. PackageColumn = "package_id" // NamesTable is the table that holds the names relation/edge. NamesTable = "package_names" // NamesInverseTable is the table name for the PackageName entity. // It exists in this package in order to avoid circular dependency with the "packagename" package. NamesInverseTable = "package_names" // NamesColumn is the table column denoting the names relation/edge. NamesColumn = "namespace_id" )
Variables ¶
var Columns = []string{ FieldID, FieldPackageID, FieldNamespace, }
Columns holds all SQL columns for packagenamespace fields.
Functions ¶
func And ¶
func And(predicates ...predicate.PackageNamespace) predicate.PackageNamespace
And groups predicates with the AND operator between them.
func HasNames ¶
func HasNames() predicate.PackageNamespace
HasNames applies the HasEdge predicate on the "names" edge.
func HasNamesWith ¶
func HasNamesWith(preds ...predicate.PackageName) predicate.PackageNamespace
HasNamesWith applies the HasEdge predicate on the "names" edge with a given conditions (other predicates).
func HasPackage ¶
func HasPackage() predicate.PackageNamespace
HasPackage applies the HasEdge predicate on the "package" edge.
func HasPackageWith ¶
func HasPackageWith(preds ...predicate.PackageType) predicate.PackageNamespace
HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.PackageNamespace
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.PackageNamespace
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.PackageNamespace
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PackageNamespace
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.PackageNamespace
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PackageNamespace
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PackageNamespace
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PackageNamespace
IDNotIn applies the NotIn predicate on the ID field.
func Namespace ¶
func Namespace(v string) predicate.PackageNamespace
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.PackageNamespace
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.PackageNamespace
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.PackageNamespace
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.PackageNamespace
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.PackageNamespace
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.PackageNamespace
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.PackageNamespace
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.PackageNamespace
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.PackageNamespace
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.PackageNamespace
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.PackageNamespace
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.PackageNamespace
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.PackageNamespace
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.PackageNamespace) predicate.PackageNamespace
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PackageNamespace) predicate.PackageNamespace
Or groups predicates with the OR operator between them.
func PackageID ¶
func PackageID(v int) predicate.PackageNamespace
PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.
func PackageIDEQ ¶
func PackageIDEQ(v int) predicate.PackageNamespace
PackageIDEQ applies the EQ predicate on the "package_id" field.
func PackageIDIn ¶
func PackageIDIn(vs ...int) predicate.PackageNamespace
PackageIDIn applies the In predicate on the "package_id" field.
func PackageIDNEQ ¶
func PackageIDNEQ(v int) predicate.PackageNamespace
PackageIDNEQ applies the NEQ predicate on the "package_id" field.
func PackageIDNotIn ¶
func PackageIDNotIn(vs ...int) predicate.PackageNamespace
PackageIDNotIn applies the NotIn predicate on the "package_id" 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 PackageNamespace queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNames ¶
func ByNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNames orders the results by names terms.
func ByNamesCount ¶
func ByNamesCount(opts ...sql.OrderTermOption) OrderOption
ByNamesCount orders the results by names count.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByPackageField ¶
func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageField orders the results by package field.
func ByPackageID ¶
func ByPackageID(opts ...sql.OrderTermOption) OrderOption
ByPackageID orders the results by the package_id field.