packagename

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 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"
	// 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

Columns holds all SQL columns for packagename fields.

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

func ID(id int) predicate.PackageName

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.PackageName

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.PackageName

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.PackageName

IDLT applies the LT 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

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

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

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

Jump to

Keyboard shortcuts

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