Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Target) predicate.Target
- func HasPackages() predicate.Target
- func HasPackagesWith(preds ...predicate.Pkg) predicate.Target
- func ID(id uuid.UUID) predicate.Target
- func IDEQ(id uuid.UUID) predicate.Target
- func IDGT(id uuid.UUID) predicate.Target
- func IDGTE(id uuid.UUID) predicate.Target
- func IDIn(ids ...uuid.UUID) predicate.Target
- func IDLT(id uuid.UUID) predicate.Target
- func IDLTE(id uuid.UUID) predicate.Target
- func IDNEQ(id uuid.UUID) predicate.Target
- func IDNotIn(ids ...uuid.UUID) predicate.Target
- func Name(v string) predicate.Target
- func NameContains(v string) predicate.Target
- func NameContainsFold(v string) predicate.Target
- func NameEQ(v string) predicate.Target
- func NameEqualFold(v string) predicate.Target
- func NameGT(v string) predicate.Target
- func NameGTE(v string) predicate.Target
- func NameHasPrefix(v string) predicate.Target
- func NameHasSuffix(v string) predicate.Target
- func NameIn(vs ...string) predicate.Target
- func NameLT(v string) predicate.Target
- func NameLTE(v string) predicate.Target
- func NameNEQ(v string) predicate.Target
- func NameNotIn(vs ...string) predicate.Target
- func Not(p predicate.Target) predicate.Target
- func Or(predicates ...predicate.Target) predicate.Target
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the target type in the database. Label = "target" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgePackages holds the string denoting the packages edge name in mutations. EdgePackages = "packages" // Table holds the table name of the target in the database. Table = "targets" // PackagesTable is the table that holds the packages relation/edge. PackagesTable = "pkgs" // PackagesInverseTable is the table name for the Pkg entity. // It exists in this package in order to avoid circular dependency with the "pkg" package. PackagesInverseTable = "pkgs" // PackagesColumn is the table column denoting the packages relation/edge. PackagesColumn = "target_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for target fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func HasPackages ¶
HasPackages applies the HasEdge predicate on the "packages" edge.
func HasPackagesWith ¶
HasPackagesWith applies the HasEdge predicate on the "packages" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Target 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 ByPackages ¶
func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPackages orders the results by packages terms.
func ByPackagesCount ¶
func ByPackagesCount(opts ...sql.OrderTermOption) OrderOption
ByPackagesCount orders the results by packages count.