Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DeviceType) predicate.DeviceType
- func DeviceTypeName(v string) predicate.DeviceType
- func DeviceTypeNameContains(v string) predicate.DeviceType
- func DeviceTypeNameContainsFold(v string) predicate.DeviceType
- func DeviceTypeNameEQ(v string) predicate.DeviceType
- func DeviceTypeNameEqualFold(v string) predicate.DeviceType
- func DeviceTypeNameGT(v string) predicate.DeviceType
- func DeviceTypeNameGTE(v string) predicate.DeviceType
- func DeviceTypeNameHasPrefix(v string) predicate.DeviceType
- func DeviceTypeNameHasSuffix(v string) predicate.DeviceType
- func DeviceTypeNameIn(vs ...string) predicate.DeviceType
- func DeviceTypeNameLT(v string) predicate.DeviceType
- func DeviceTypeNameLTE(v string) predicate.DeviceType
- func DeviceTypeNameNEQ(v string) predicate.DeviceType
- func DeviceTypeNameNotIn(vs ...string) predicate.DeviceType
- func HasTypes() predicate.DeviceType
- func HasTypesWith(preds ...predicate.Device) predicate.DeviceType
- func ID(id int) predicate.DeviceType
- func IDEQ(id int) predicate.DeviceType
- func IDGT(id int) predicate.DeviceType
- func IDGTE(id int) predicate.DeviceType
- func IDIn(ids ...int) predicate.DeviceType
- func IDLT(id int) predicate.DeviceType
- func IDLTE(id int) predicate.DeviceType
- func IDNEQ(id int) predicate.DeviceType
- func IDNotIn(ids ...int) predicate.DeviceType
- func Not(p predicate.DeviceType) predicate.DeviceType
- func Or(predicates ...predicate.DeviceType) predicate.DeviceType
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the devicetype type in the database. Label = "device_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDeviceTypeName holds the string denoting the device_type_name field in the database. FieldDeviceTypeName = "device_type_name" // EdgeTypes holds the string denoting the types edge name in mutations. EdgeTypes = "types" // Table holds the table name of the devicetype in the database. Table = "device_types" // TypesTable is the table the holds the types relation/edge. TypesTable = "devices" // TypesInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. TypesInverseTable = "devices" // TypesColumn is the table column denoting the types relation/edge. TypesColumn = "device_type_types" )
Variables ¶
var Columns = []string{ FieldID, FieldDeviceTypeName, }
Columns holds all SQL columns for devicetype fields.
var ( // DeviceTypeNameValidator is a validator for the "device_type_name" field. It is called by the builders before save. DeviceTypeNameValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.DeviceType) predicate.DeviceType
And groups predicates with the AND operator between them.
func DeviceTypeName ¶
func DeviceTypeName(v string) predicate.DeviceType
DeviceTypeName applies equality check predicate on the "device_type_name" field. It's identical to DeviceTypeNameEQ.
func DeviceTypeNameContains ¶
func DeviceTypeNameContains(v string) predicate.DeviceType
DeviceTypeNameContains applies the Contains predicate on the "device_type_name" field.
func DeviceTypeNameContainsFold ¶
func DeviceTypeNameContainsFold(v string) predicate.DeviceType
DeviceTypeNameContainsFold applies the ContainsFold predicate on the "device_type_name" field.
func DeviceTypeNameEQ ¶
func DeviceTypeNameEQ(v string) predicate.DeviceType
DeviceTypeNameEQ applies the EQ predicate on the "device_type_name" field.
func DeviceTypeNameEqualFold ¶
func DeviceTypeNameEqualFold(v string) predicate.DeviceType
DeviceTypeNameEqualFold applies the EqualFold predicate on the "device_type_name" field.
func DeviceTypeNameGT ¶
func DeviceTypeNameGT(v string) predicate.DeviceType
DeviceTypeNameGT applies the GT predicate on the "device_type_name" field.
func DeviceTypeNameGTE ¶
func DeviceTypeNameGTE(v string) predicate.DeviceType
DeviceTypeNameGTE applies the GTE predicate on the "device_type_name" field.
func DeviceTypeNameHasPrefix ¶
func DeviceTypeNameHasPrefix(v string) predicate.DeviceType
DeviceTypeNameHasPrefix applies the HasPrefix predicate on the "device_type_name" field.
func DeviceTypeNameHasSuffix ¶
func DeviceTypeNameHasSuffix(v string) predicate.DeviceType
DeviceTypeNameHasSuffix applies the HasSuffix predicate on the "device_type_name" field.
func DeviceTypeNameIn ¶
func DeviceTypeNameIn(vs ...string) predicate.DeviceType
DeviceTypeNameIn applies the In predicate on the "device_type_name" field.
func DeviceTypeNameLT ¶
func DeviceTypeNameLT(v string) predicate.DeviceType
DeviceTypeNameLT applies the LT predicate on the "device_type_name" field.
func DeviceTypeNameLTE ¶
func DeviceTypeNameLTE(v string) predicate.DeviceType
DeviceTypeNameLTE applies the LTE predicate on the "device_type_name" field.
func DeviceTypeNameNEQ ¶
func DeviceTypeNameNEQ(v string) predicate.DeviceType
DeviceTypeNameNEQ applies the NEQ predicate on the "device_type_name" field.
func DeviceTypeNameNotIn ¶
func DeviceTypeNameNotIn(vs ...string) predicate.DeviceType
DeviceTypeNameNotIn applies the NotIn predicate on the "device_type_name" field.
func HasTypes ¶
func HasTypes() predicate.DeviceType
HasTypes applies the HasEdge predicate on the "types" edge.
func HasTypesWith ¶
func HasTypesWith(preds ...predicate.Device) predicate.DeviceType
HasTypesWith applies the HasEdge predicate on the "types" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.DeviceType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DeviceType
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DeviceType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DeviceType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DeviceType
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.DeviceType) predicate.DeviceType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DeviceType) predicate.DeviceType
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.