packagenamespace

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for packagenamespace fields.

Functions

func And

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

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

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

Not applies the not operator on the given predicate.

func Or

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL