pkg

package
v0.0.0-...-c4e951e Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the pkg type in the database.
	Label = "pkg"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldRepository holds the string denoting the repository field in the database.
	FieldRepository = "repository"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldPackageFields holds the string denoting the package_fields field in the database.
	FieldPackageFields = "package_fields"
	// FieldTargetID holds the string denoting the target_id field in the database.
	FieldTargetID = "target_id"
	// EdgeTarget holds the string denoting the target edge name in mutations.
	EdgeTarget = "target"
	// Table holds the table name of the pkg in the database.
	Table = "pkgs"
	// TargetTable is the table that holds the target relation/edge.
	TargetTable = "pkgs"
	// TargetInverseTable is the table name for the Target entity.
	// It exists in this package in order to avoid circular dependency with the "target" package.
	TargetInverseTable = "targets"
	// TargetColumn is the table column denoting the target relation/edge.
	TargetColumn = "target_id"
)

Variables

Columns holds all SQL columns for pkg fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.Pkg) predicate.Pkg

And groups predicates with the AND operator between them.

func Category

func Category(v string) predicate.Pkg

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.Pkg

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.Pkg

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.Pkg

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.Pkg

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.Pkg

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.Pkg

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.Pkg

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.Pkg

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

func CategoryIn(vs ...string) predicate.Pkg

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.Pkg

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.Pkg

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.Pkg

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

func CategoryNotIn(vs ...string) predicate.Pkg

CategoryNotIn applies the NotIn predicate on the "category" field.

func HasTarget

func HasTarget() predicate.Pkg

HasTarget applies the HasEdge predicate on the "target" edge.

func HasTargetWith

func HasTargetWith(preds ...predicate.Target) predicate.Pkg

HasTargetWith applies the HasEdge predicate on the "target" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Pkg

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Pkg

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Pkg

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Pkg

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Pkg

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Pkg

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Pkg

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Pkg

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Pkg

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Pkg

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Pkg

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Pkg

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Pkg

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Pkg

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Pkg

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Pkg

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Pkg

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Pkg

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Pkg

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Pkg

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Pkg

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.Pkg) predicate.Pkg

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pkg) predicate.Pkg

Or groups predicates with the OR operator between them.

func Repository

func Repository(v string) predicate.Pkg

Repository applies equality check predicate on the "repository" field. It's identical to RepositoryEQ.

func RepositoryContains

func RepositoryContains(v string) predicate.Pkg

RepositoryContains applies the Contains predicate on the "repository" field.

func RepositoryContainsFold

func RepositoryContainsFold(v string) predicate.Pkg

RepositoryContainsFold applies the ContainsFold predicate on the "repository" field.

func RepositoryEQ

func RepositoryEQ(v string) predicate.Pkg

RepositoryEQ applies the EQ predicate on the "repository" field.

func RepositoryEqualFold

func RepositoryEqualFold(v string) predicate.Pkg

RepositoryEqualFold applies the EqualFold predicate on the "repository" field.

func RepositoryGT

func RepositoryGT(v string) predicate.Pkg

RepositoryGT applies the GT predicate on the "repository" field.

func RepositoryGTE

func RepositoryGTE(v string) predicate.Pkg

RepositoryGTE applies the GTE predicate on the "repository" field.

func RepositoryHasPrefix

func RepositoryHasPrefix(v string) predicate.Pkg

RepositoryHasPrefix applies the HasPrefix predicate on the "repository" field.

func RepositoryHasSuffix

func RepositoryHasSuffix(v string) predicate.Pkg

RepositoryHasSuffix applies the HasSuffix predicate on the "repository" field.

func RepositoryIn

func RepositoryIn(vs ...string) predicate.Pkg

RepositoryIn applies the In predicate on the "repository" field.

func RepositoryLT

func RepositoryLT(v string) predicate.Pkg

RepositoryLT applies the LT predicate on the "repository" field.

func RepositoryLTE

func RepositoryLTE(v string) predicate.Pkg

RepositoryLTE applies the LTE predicate on the "repository" field.

func RepositoryNEQ

func RepositoryNEQ(v string) predicate.Pkg

RepositoryNEQ applies the NEQ predicate on the "repository" field.

func RepositoryNotIn

func RepositoryNotIn(vs ...string) predicate.Pkg

RepositoryNotIn applies the NotIn predicate on the "repository" field.

func TargetID

func TargetID(v uuid.UUID) predicate.Pkg

TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.

func TargetIDEQ

func TargetIDEQ(v uuid.UUID) predicate.Pkg

TargetIDEQ applies the EQ predicate on the "target_id" field.

func TargetIDIn

func TargetIDIn(vs ...uuid.UUID) predicate.Pkg

TargetIDIn applies the In predicate on the "target_id" field.

func TargetIDNEQ

func TargetIDNEQ(v uuid.UUID) predicate.Pkg

TargetIDNEQ applies the NEQ predicate on the "target_id" field.

func TargetIDNotIn

func TargetIDNotIn(vs ...uuid.UUID) predicate.Pkg

TargetIDNotIn applies the NotIn predicate on the "target_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.Pkg

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Pkg

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Pkg

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Pkg

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Pkg

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Pkg

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Pkg

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Pkg

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Pkg

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Pkg

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Pkg

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Pkg

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Pkg

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Pkg

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Pkg queries.

func ByCategory

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

ByCategory orders the results by the category field.

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 ByRepository

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

ByRepository orders the results by the repository field.

func ByTargetField

func ByTargetField(field string, opts ...sql.OrderTermOption) OrderOption

ByTargetField orders the results by target field.

func ByTargetID

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

ByTargetID orders the results by the target_id field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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