packagename

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

View Source
var (
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for packagename fields.

Functions

func And

func And(predicates ...predicate.PackageName) predicate.PackageName

And groups predicates with the AND operator between them.

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 ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.PackageName

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.PackageName

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.PackageName

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.PackageName

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.PackageName

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.PackageName

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.PackageName

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.PackageName

IDNotIn applies the NotIn predicate on the ID field.

func Name

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 Namespace added in v0.5.0

func Namespace(v string) predicate.PackageName

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.PackageName

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold added in v0.5.0

func NamespaceContainsFold(v string) predicate.PackageName

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ added in v0.5.0

func NamespaceEQ(v string) predicate.PackageName

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold added in v0.5.0

func NamespaceEqualFold(v string) predicate.PackageName

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT added in v0.5.0

func NamespaceGT(v string) predicate.PackageName

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE added in v0.5.0

func NamespaceGTE(v string) predicate.PackageName

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix added in v0.5.0

func NamespaceHasPrefix(v string) predicate.PackageName

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix added in v0.5.0

func NamespaceHasSuffix(v string) predicate.PackageName

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn added in v0.5.0

func NamespaceIn(vs ...string) predicate.PackageName

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT added in v0.5.0

func NamespaceLT(v string) predicate.PackageName

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE added in v0.5.0

func NamespaceLTE(v string) predicate.PackageName

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ added in v0.5.0

func NamespaceNEQ(v string) predicate.PackageName

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn added in v0.5.0

func NamespaceNotIn(vs ...string) predicate.PackageName

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

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 Type added in v0.5.0

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.PackageName

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold added in v0.5.0

func TypeContainsFold(v string) predicate.PackageName

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ added in v0.5.0

func TypeEQ(v string) predicate.PackageName

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold added in v0.5.0

func TypeEqualFold(v string) predicate.PackageName

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT added in v0.5.0

func TypeGT(v string) predicate.PackageName

TypeGT applies the GT predicate on the "type" field.

func TypeGTE added in v0.5.0

func TypeGTE(v string) predicate.PackageName

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix added in v0.5.0

func TypeHasPrefix(v string) predicate.PackageName

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix added in v0.5.0

func TypeHasSuffix(v string) predicate.PackageName

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn added in v0.5.0

func TypeIn(vs ...string) predicate.PackageName

TypeIn applies the In predicate on the "type" field.

func TypeLT added in v0.5.0

func TypeLT(v string) predicate.PackageName

TypeLT applies the LT predicate on the "type" field.

func TypeLTE added in v0.5.0

func TypeLTE(v string) predicate.PackageName

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ added in v0.5.0

func TypeNEQ(v string) predicate.PackageName

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn added in v0.5.0

func TypeNotIn(vs ...string) predicate.PackageName

TypeNotIn applies the NotIn predicate on the "type" 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 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 ByNamespace added in v0.5.0

func ByNamespace(opts ...sql.OrderTermOption) OrderOption

ByNamespace orders the results by the namespace field.

func ByType added in v0.5.0

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type 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.

Jump to

Keyboard shortcuts

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