Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PackageType) predicate.PackageType
- func HasNamespaces() predicate.PackageType
- func HasNamespacesWith(preds ...predicate.PackageNamespace) predicate.PackageType
- func ID(id int) predicate.PackageType
- func IDEQ(id int) predicate.PackageType
- func IDGT(id int) predicate.PackageType
- func IDGTE(id int) predicate.PackageType
- func IDIn(ids ...int) predicate.PackageType
- func IDLT(id int) predicate.PackageType
- func IDLTE(id int) predicate.PackageType
- func IDNEQ(id int) predicate.PackageType
- func IDNotIn(ids ...int) predicate.PackageType
- func Not(p predicate.PackageType) predicate.PackageType
- func Or(predicates ...predicate.PackageType) predicate.PackageType
- func Type(v string) predicate.PackageType
- func TypeContains(v string) predicate.PackageType
- func TypeContainsFold(v string) predicate.PackageType
- func TypeEQ(v string) predicate.PackageType
- func TypeEqualFold(v string) predicate.PackageType
- func TypeGT(v string) predicate.PackageType
- func TypeGTE(v string) predicate.PackageType
- func TypeHasPrefix(v string) predicate.PackageType
- func TypeHasSuffix(v string) predicate.PackageType
- func TypeIn(vs ...string) predicate.PackageType
- func TypeLT(v string) predicate.PackageType
- func TypeLTE(v string) predicate.PackageType
- func TypeNEQ(v string) predicate.PackageType
- func TypeNotIn(vs ...string) predicate.PackageType
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the packagetype type in the database. Label = "package_type" // 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" // EdgeNamespaces holds the string denoting the namespaces edge name in mutations. EdgeNamespaces = "namespaces" // Table holds the table name of the packagetype in the database. Table = "package_types" // NamespacesTable is the table that holds the namespaces relation/edge. NamespacesTable = "package_namespaces" // NamespacesInverseTable is the table name for the PackageNamespace entity. // It exists in this package in order to avoid circular dependency with the "packagenamespace" package. NamespacesInverseTable = "package_namespaces" // NamespacesColumn is the table column denoting the namespaces relation/edge. NamespacesColumn = "package_id" )
Variables ¶
var Columns = []string{ FieldID, FieldType, }
Columns holds all SQL columns for packagetype fields.
var ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.PackageType) predicate.PackageType
And groups predicates with the AND operator between them.
func HasNamespaces ¶
func HasNamespaces() predicate.PackageType
HasNamespaces applies the HasEdge predicate on the "namespaces" edge.
func HasNamespacesWith ¶
func HasNamespacesWith(preds ...predicate.PackageNamespace) predicate.PackageType
HasNamespacesWith applies the HasEdge predicate on the "namespaces" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.PackageType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PackageType
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PackageType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PackageType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PackageType
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.PackageType) predicate.PackageType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PackageType) predicate.PackageType
Or groups predicates with the OR operator between them.
func Type ¶
func Type(v string) predicate.PackageType
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.PackageType
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.PackageType
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.PackageType
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.PackageType
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.PackageType
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.PackageType
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.PackageType
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.PackageType
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.PackageType
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.PackageType
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.PackageType
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.PackageType
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.PackageType
TypeNotIn applies the NotIn predicate on the "type" 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 PackageType queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNamespaces ¶
func ByNamespaces(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNamespaces orders the results by namespaces terms.
func ByNamespacesCount ¶
func ByNamespacesCount(opts ...sql.OrderTermOption) OrderOption
ByNamespacesCount orders the results by namespaces count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.