Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DeviceProp) predicate.DeviceProp
- func CreatedAt(v time.Time) predicate.DeviceProp
- func CreatedAtEQ(v time.Time) predicate.DeviceProp
- func CreatedAtGT(v time.Time) predicate.DeviceProp
- func CreatedAtGTE(v time.Time) predicate.DeviceProp
- func CreatedAtIn(vs ...time.Time) predicate.DeviceProp
- func CreatedAtLT(v time.Time) predicate.DeviceProp
- func CreatedAtLTE(v time.Time) predicate.DeviceProp
- func CreatedAtNEQ(v time.Time) predicate.DeviceProp
- func CreatedAtNotIn(vs ...time.Time) predicate.DeviceProp
- func HasDevice() predicate.DeviceProp
- func HasDeviceWith(preds ...predicate.Device) predicate.DeviceProp
- func ID(id uint64) predicate.DeviceProp
- func IDEQ(id uint64) predicate.DeviceProp
- func IDGT(id uint64) predicate.DeviceProp
- func IDGTE(id uint64) predicate.DeviceProp
- func IDIn(ids ...uint64) predicate.DeviceProp
- func IDLT(id uint64) predicate.DeviceProp
- func IDLTE(id uint64) predicate.DeviceProp
- func IDNEQ(id uint64) predicate.DeviceProp
- func IDNotIn(ids ...uint64) predicate.DeviceProp
- func IotID(v string) predicate.DeviceProp
- func IotIDContains(v string) predicate.DeviceProp
- func IotIDContainsFold(v string) predicate.DeviceProp
- func IotIDEQ(v string) predicate.DeviceProp
- func IotIDEqualFold(v string) predicate.DeviceProp
- func IotIDGT(v string) predicate.DeviceProp
- func IotIDGTE(v string) predicate.DeviceProp
- func IotIDHasPrefix(v string) predicate.DeviceProp
- func IotIDHasSuffix(v string) predicate.DeviceProp
- func IotIDIn(vs ...string) predicate.DeviceProp
- func IotIDLT(v string) predicate.DeviceProp
- func IotIDLTE(v string) predicate.DeviceProp
- func IotIDNEQ(v string) predicate.DeviceProp
- func IotIDNotIn(vs ...string) predicate.DeviceProp
- func Not(p predicate.DeviceProp) predicate.DeviceProp
- func Or(predicates ...predicate.DeviceProp) predicate.DeviceProp
- func Props(v string) predicate.DeviceProp
- func PropsContains(v string) predicate.DeviceProp
- func PropsContainsFold(v string) predicate.DeviceProp
- func PropsEQ(v string) predicate.DeviceProp
- func PropsEqualFold(v string) predicate.DeviceProp
- func PropsGT(v string) predicate.DeviceProp
- func PropsGTE(v string) predicate.DeviceProp
- func PropsHasPrefix(v string) predicate.DeviceProp
- func PropsHasSuffix(v string) predicate.DeviceProp
- func PropsIn(vs ...string) predicate.DeviceProp
- func PropsLT(v string) predicate.DeviceProp
- func PropsLTE(v string) predicate.DeviceProp
- func PropsNEQ(v string) predicate.DeviceProp
- func PropsNotIn(vs ...string) predicate.DeviceProp
- func Sort(v uint32) predicate.DeviceProp
- func SortEQ(v uint32) predicate.DeviceProp
- func SortGT(v uint32) predicate.DeviceProp
- func SortGTE(v uint32) predicate.DeviceProp
- func SortIn(vs ...uint32) predicate.DeviceProp
- func SortLT(v uint32) predicate.DeviceProp
- func SortLTE(v uint32) predicate.DeviceProp
- func SortNEQ(v uint32) predicate.DeviceProp
- func SortNotIn(vs ...uint32) predicate.DeviceProp
- func Status(v uint8) predicate.DeviceProp
- func StatusEQ(v uint8) predicate.DeviceProp
- func StatusGT(v uint8) predicate.DeviceProp
- func StatusGTE(v uint8) predicate.DeviceProp
- func StatusIn(vs ...uint8) predicate.DeviceProp
- func StatusIsNil() predicate.DeviceProp
- func StatusLT(v uint8) predicate.DeviceProp
- func StatusLTE(v uint8) predicate.DeviceProp
- func StatusNEQ(v uint8) predicate.DeviceProp
- func StatusNotIn(vs ...uint8) predicate.DeviceProp
- func StatusNotNil() predicate.DeviceProp
- func UpdatedAt(v time.Time) predicate.DeviceProp
- func UpdatedAtEQ(v time.Time) predicate.DeviceProp
- func UpdatedAtGT(v time.Time) predicate.DeviceProp
- func UpdatedAtGTE(v time.Time) predicate.DeviceProp
- func UpdatedAtIn(vs ...time.Time) predicate.DeviceProp
- func UpdatedAtLT(v time.Time) predicate.DeviceProp
- func UpdatedAtLTE(v time.Time) predicate.DeviceProp
- func UpdatedAtNEQ(v time.Time) predicate.DeviceProp
- func UpdatedAtNotIn(vs ...time.Time) predicate.DeviceProp
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeviceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIotID(opts ...sql.OrderTermOption) OrderOption
- func ByProps(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the deviceprop type in the database. Label = "device_prop" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldIotID holds the string denoting the iotid field in the database. FieldIotID = "iot_id" // FieldProps holds the string denoting the props field in the database. FieldProps = "props" // EdgeDevice holds the string denoting the device edge name in mutations. EdgeDevice = "device" // Table holds the table name of the deviceprop in the database. Table = "equip_device_props" // DeviceTable is the table that holds the device relation/edge. DeviceTable = "equip_device_props" // DeviceInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. DeviceInverseTable = "equip_devices" // DeviceColumn is the table column denoting the device relation/edge. DeviceColumn = "device_prop" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 // DefaultSort holds the default value on creation for the "sort" field. DefaultSort uint32 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldSort, FieldIotID, FieldProps, }
Columns holds all SQL columns for deviceprop fields.
var ForeignKeys = []string{
"device_prop",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "equip_device_props" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.DeviceProp) predicate.DeviceProp
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.DeviceProp
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.DeviceProp
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.DeviceProp
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.DeviceProp
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.DeviceProp
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.DeviceProp
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.DeviceProp
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.DeviceProp
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.DeviceProp
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasDevice ¶
func HasDevice() predicate.DeviceProp
HasDevice applies the HasEdge predicate on the "device" edge.
func HasDeviceWith ¶
func HasDeviceWith(preds ...predicate.Device) predicate.DeviceProp
HasDeviceWith applies the HasEdge predicate on the "device" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uint64) predicate.DeviceProp
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint64) predicate.DeviceProp
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint64) predicate.DeviceProp
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint64) predicate.DeviceProp
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint64) predicate.DeviceProp
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint64) predicate.DeviceProp
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint64) predicate.DeviceProp
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint64) predicate.DeviceProp
IDNotIn applies the NotIn predicate on the ID field.
func IotID ¶
func IotID(v string) predicate.DeviceProp
IotID applies equality check predicate on the "iotID" field. It's identical to IotIDEQ.
func IotIDContains ¶
func IotIDContains(v string) predicate.DeviceProp
IotIDContains applies the Contains predicate on the "iotID" field.
func IotIDContainsFold ¶
func IotIDContainsFold(v string) predicate.DeviceProp
IotIDContainsFold applies the ContainsFold predicate on the "iotID" field.
func IotIDEQ ¶
func IotIDEQ(v string) predicate.DeviceProp
IotIDEQ applies the EQ predicate on the "iotID" field.
func IotIDEqualFold ¶
func IotIDEqualFold(v string) predicate.DeviceProp
IotIDEqualFold applies the EqualFold predicate on the "iotID" field.
func IotIDGT ¶
func IotIDGT(v string) predicate.DeviceProp
IotIDGT applies the GT predicate on the "iotID" field.
func IotIDGTE ¶
func IotIDGTE(v string) predicate.DeviceProp
IotIDGTE applies the GTE predicate on the "iotID" field.
func IotIDHasPrefix ¶
func IotIDHasPrefix(v string) predicate.DeviceProp
IotIDHasPrefix applies the HasPrefix predicate on the "iotID" field.
func IotIDHasSuffix ¶
func IotIDHasSuffix(v string) predicate.DeviceProp
IotIDHasSuffix applies the HasSuffix predicate on the "iotID" field.
func IotIDIn ¶
func IotIDIn(vs ...string) predicate.DeviceProp
IotIDIn applies the In predicate on the "iotID" field.
func IotIDLT ¶
func IotIDLT(v string) predicate.DeviceProp
IotIDLT applies the LT predicate on the "iotID" field.
func IotIDLTE ¶
func IotIDLTE(v string) predicate.DeviceProp
IotIDLTE applies the LTE predicate on the "iotID" field.
func IotIDNEQ ¶
func IotIDNEQ(v string) predicate.DeviceProp
IotIDNEQ applies the NEQ predicate on the "iotID" field.
func IotIDNotIn ¶
func IotIDNotIn(vs ...string) predicate.DeviceProp
IotIDNotIn applies the NotIn predicate on the "iotID" field.
func Not ¶
func Not(p predicate.DeviceProp) predicate.DeviceProp
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DeviceProp) predicate.DeviceProp
Or groups predicates with the OR operator between them.
func Props ¶
func Props(v string) predicate.DeviceProp
Props applies equality check predicate on the "props" field. It's identical to PropsEQ.
func PropsContains ¶
func PropsContains(v string) predicate.DeviceProp
PropsContains applies the Contains predicate on the "props" field.
func PropsContainsFold ¶
func PropsContainsFold(v string) predicate.DeviceProp
PropsContainsFold applies the ContainsFold predicate on the "props" field.
func PropsEQ ¶
func PropsEQ(v string) predicate.DeviceProp
PropsEQ applies the EQ predicate on the "props" field.
func PropsEqualFold ¶
func PropsEqualFold(v string) predicate.DeviceProp
PropsEqualFold applies the EqualFold predicate on the "props" field.
func PropsGT ¶
func PropsGT(v string) predicate.DeviceProp
PropsGT applies the GT predicate on the "props" field.
func PropsGTE ¶
func PropsGTE(v string) predicate.DeviceProp
PropsGTE applies the GTE predicate on the "props" field.
func PropsHasPrefix ¶
func PropsHasPrefix(v string) predicate.DeviceProp
PropsHasPrefix applies the HasPrefix predicate on the "props" field.
func PropsHasSuffix ¶
func PropsHasSuffix(v string) predicate.DeviceProp
PropsHasSuffix applies the HasSuffix predicate on the "props" field.
func PropsIn ¶
func PropsIn(vs ...string) predicate.DeviceProp
PropsIn applies the In predicate on the "props" field.
func PropsLT ¶
func PropsLT(v string) predicate.DeviceProp
PropsLT applies the LT predicate on the "props" field.
func PropsLTE ¶
func PropsLTE(v string) predicate.DeviceProp
PropsLTE applies the LTE predicate on the "props" field.
func PropsNEQ ¶
func PropsNEQ(v string) predicate.DeviceProp
PropsNEQ applies the NEQ predicate on the "props" field.
func PropsNotIn ¶
func PropsNotIn(vs ...string) predicate.DeviceProp
PropsNotIn applies the NotIn predicate on the "props" field.
func Sort ¶
func Sort(v uint32) predicate.DeviceProp
Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func SortEQ ¶
func SortEQ(v uint32) predicate.DeviceProp
SortEQ applies the EQ predicate on the "sort" field.
func SortGT ¶
func SortGT(v uint32) predicate.DeviceProp
SortGT applies the GT predicate on the "sort" field.
func SortGTE ¶
func SortGTE(v uint32) predicate.DeviceProp
SortGTE applies the GTE predicate on the "sort" field.
func SortIn ¶
func SortIn(vs ...uint32) predicate.DeviceProp
SortIn applies the In predicate on the "sort" field.
func SortLT ¶
func SortLT(v uint32) predicate.DeviceProp
SortLT applies the LT predicate on the "sort" field.
func SortLTE ¶
func SortLTE(v uint32) predicate.DeviceProp
SortLTE applies the LTE predicate on the "sort" field.
func SortNEQ ¶
func SortNEQ(v uint32) predicate.DeviceProp
SortNEQ applies the NEQ predicate on the "sort" field.
func SortNotIn ¶
func SortNotIn(vs ...uint32) predicate.DeviceProp
SortNotIn applies the NotIn predicate on the "sort" field.
func Status ¶
func Status(v uint8) predicate.DeviceProp
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v uint8) predicate.DeviceProp
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v uint8) predicate.DeviceProp
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v uint8) predicate.DeviceProp
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...uint8) predicate.DeviceProp
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.DeviceProp
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusLT ¶
func StatusLT(v uint8) predicate.DeviceProp
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v uint8) predicate.DeviceProp
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v uint8) predicate.DeviceProp
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...uint8) predicate.DeviceProp
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.DeviceProp
StatusNotNil applies the NotNil predicate on the "status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.DeviceProp
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.DeviceProp
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.DeviceProp
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.DeviceProp
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.DeviceProp
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.DeviceProp
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.DeviceProp
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.DeviceProp
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.DeviceProp
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 DeviceProp queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeviceField ¶
func ByDeviceField(field string, opts ...sql.OrderTermOption) OrderOption
ByDeviceField orders the results by device field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIotID ¶
func ByIotID(opts ...sql.OrderTermOption) OrderOption
ByIotID orders the results by the iotID field.
func ByProps ¶
func ByProps(opts ...sql.OrderTermOption) OrderOption
ByProps orders the results by the props field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.