Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pkg) predicate.Pkg
- func Category(v string) predicate.Pkg
- func CategoryContains(v string) predicate.Pkg
- func CategoryContainsFold(v string) predicate.Pkg
- func CategoryEQ(v string) predicate.Pkg
- func CategoryEqualFold(v string) predicate.Pkg
- func CategoryGT(v string) predicate.Pkg
- func CategoryGTE(v string) predicate.Pkg
- func CategoryHasPrefix(v string) predicate.Pkg
- func CategoryHasSuffix(v string) predicate.Pkg
- func CategoryIn(vs ...string) predicate.Pkg
- func CategoryLT(v string) predicate.Pkg
- func CategoryLTE(v string) predicate.Pkg
- func CategoryNEQ(v string) predicate.Pkg
- func CategoryNotIn(vs ...string) predicate.Pkg
- func HasTarget() predicate.Pkg
- func HasTargetWith(preds ...predicate.Target) predicate.Pkg
- func ID(id uuid.UUID) predicate.Pkg
- func IDEQ(id uuid.UUID) predicate.Pkg
- func IDGT(id uuid.UUID) predicate.Pkg
- func IDGTE(id uuid.UUID) predicate.Pkg
- func IDIn(ids ...uuid.UUID) predicate.Pkg
- func IDLT(id uuid.UUID) predicate.Pkg
- func IDLTE(id uuid.UUID) predicate.Pkg
- func IDNEQ(id uuid.UUID) predicate.Pkg
- func IDNotIn(ids ...uuid.UUID) predicate.Pkg
- func Name(v string) predicate.Pkg
- func NameContains(v string) predicate.Pkg
- func NameContainsFold(v string) predicate.Pkg
- func NameEQ(v string) predicate.Pkg
- func NameEqualFold(v string) predicate.Pkg
- func NameGT(v string) predicate.Pkg
- func NameGTE(v string) predicate.Pkg
- func NameHasPrefix(v string) predicate.Pkg
- func NameHasSuffix(v string) predicate.Pkg
- func NameIn(vs ...string) predicate.Pkg
- func NameLT(v string) predicate.Pkg
- func NameLTE(v string) predicate.Pkg
- func NameNEQ(v string) predicate.Pkg
- func NameNotIn(vs ...string) predicate.Pkg
- func Not(p predicate.Pkg) predicate.Pkg
- func Or(predicates ...predicate.Pkg) predicate.Pkg
- func Repository(v string) predicate.Pkg
- func RepositoryContains(v string) predicate.Pkg
- func RepositoryContainsFold(v string) predicate.Pkg
- func RepositoryEQ(v string) predicate.Pkg
- func RepositoryEqualFold(v string) predicate.Pkg
- func RepositoryGT(v string) predicate.Pkg
- func RepositoryGTE(v string) predicate.Pkg
- func RepositoryHasPrefix(v string) predicate.Pkg
- func RepositoryHasSuffix(v string) predicate.Pkg
- func RepositoryIn(vs ...string) predicate.Pkg
- func RepositoryLT(v string) predicate.Pkg
- func RepositoryLTE(v string) predicate.Pkg
- func RepositoryNEQ(v string) predicate.Pkg
- func RepositoryNotIn(vs ...string) predicate.Pkg
- func TargetID(v uuid.UUID) predicate.Pkg
- func TargetIDEQ(v uuid.UUID) predicate.Pkg
- func TargetIDIn(vs ...uuid.UUID) predicate.Pkg
- func TargetIDNEQ(v uuid.UUID) predicate.Pkg
- func TargetIDNotIn(vs ...uuid.UUID) predicate.Pkg
- func ValidColumn(column string) bool
- func Version(v string) predicate.Pkg
- func VersionContains(v string) predicate.Pkg
- func VersionContainsFold(v string) predicate.Pkg
- func VersionEQ(v string) predicate.Pkg
- func VersionEqualFold(v string) predicate.Pkg
- func VersionGT(v string) predicate.Pkg
- func VersionGTE(v string) predicate.Pkg
- func VersionHasPrefix(v string) predicate.Pkg
- func VersionHasSuffix(v string) predicate.Pkg
- func VersionIn(vs ...string) predicate.Pkg
- func VersionLT(v string) predicate.Pkg
- func VersionLTE(v string) predicate.Pkg
- func VersionNEQ(v string) predicate.Pkg
- func VersionNotIn(vs ...string) predicate.Pkg
- type OrderOption
- func ByCategory(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRepository(opts ...sql.OrderTermOption) OrderOption
- func ByTargetField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTargetID(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldRepository, FieldCategory, FieldName, FieldVersion, FieldPackageFields, FieldTargetID, }
Columns holds all SQL columns for pkg fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func Category ¶
Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.
func CategoryContains ¶
CategoryContains applies the Contains predicate on the "category" field.
func CategoryContainsFold ¶
CategoryContainsFold applies the ContainsFold predicate on the "category" field.
func CategoryEQ ¶
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryEqualFold ¶
CategoryEqualFold applies the EqualFold predicate on the "category" field.
func CategoryGT ¶
CategoryGT applies the GT predicate on the "category" field.
func CategoryGTE ¶
CategoryGTE applies the GTE predicate on the "category" field.
func CategoryHasPrefix ¶
CategoryHasPrefix applies the HasPrefix predicate on the "category" field.
func CategoryHasSuffix ¶
CategoryHasSuffix applies the HasSuffix predicate on the "category" field.
func CategoryIn ¶
CategoryIn applies the In predicate on the "category" field.
func CategoryLT ¶
CategoryLT applies the LT predicate on the "category" field.
func CategoryLTE ¶
CategoryLTE applies the LTE predicate on the "category" field.
func CategoryNEQ ¶
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶
CategoryNotIn applies the NotIn predicate on the "category" field.
func HasTargetWith ¶
HasTargetWith applies the HasEdge predicate on the "target" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Repository ¶
Repository applies equality check predicate on the "repository" field. It's identical to RepositoryEQ.
func RepositoryContains ¶
RepositoryContains applies the Contains predicate on the "repository" field.
func RepositoryContainsFold ¶
RepositoryContainsFold applies the ContainsFold predicate on the "repository" field.
func RepositoryEQ ¶
RepositoryEQ applies the EQ predicate on the "repository" field.
func RepositoryEqualFold ¶
RepositoryEqualFold applies the EqualFold predicate on the "repository" field.
func RepositoryGT ¶
RepositoryGT applies the GT predicate on the "repository" field.
func RepositoryGTE ¶
RepositoryGTE applies the GTE predicate on the "repository" field.
func RepositoryHasPrefix ¶
RepositoryHasPrefix applies the HasPrefix predicate on the "repository" field.
func RepositoryHasSuffix ¶
RepositoryHasSuffix applies the HasSuffix predicate on the "repository" field.
func RepositoryIn ¶
RepositoryIn applies the In predicate on the "repository" field.
func RepositoryLT ¶
RepositoryLT applies the LT predicate on the "repository" field.
func RepositoryLTE ¶
RepositoryLTE applies the LTE predicate on the "repository" field.
func RepositoryNEQ ¶
RepositoryNEQ applies the NEQ predicate on the "repository" field.
func RepositoryNotIn ¶
RepositoryNotIn applies the NotIn predicate on the "repository" field.
func TargetID ¶
TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
func TargetIDEQ ¶
TargetIDEQ applies the EQ predicate on the "target_id" field.
func TargetIDIn ¶
TargetIDIn applies the In predicate on the "target_id" field.
func TargetIDNEQ ¶
TargetIDNEQ applies the NEQ predicate on the "target_id" field.
func TargetIDNotIn ¶
TargetIDNotIn applies the NotIn predicate on the "target_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.