Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DeviceDurationElephant) predicate.DeviceDurationElephant
- func Connected(v int32) predicate.DeviceDurationElephant
- func ConnectedEQ(v int32) predicate.DeviceDurationElephant
- func ConnectedGT(v int32) predicate.DeviceDurationElephant
- func ConnectedGTE(v int32) predicate.DeviceDurationElephant
- func ConnectedIn(vs ...int32) predicate.DeviceDurationElephant
- func ConnectedIsNil() predicate.DeviceDurationElephant
- func ConnectedLT(v int32) predicate.DeviceDurationElephant
- func ConnectedLTE(v int32) predicate.DeviceDurationElephant
- func ConnectedNEQ(v int32) predicate.DeviceDurationElephant
- func ConnectedNotIn(vs ...int32) predicate.DeviceDurationElephant
- func ConnectedNotNil() predicate.DeviceDurationElephant
- func CreatedAt(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtEQ(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtGT(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtGTE(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtIn(vs ...time.Time) predicate.DeviceDurationElephant
- func CreatedAtLT(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtLTE(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtNEQ(v time.Time) predicate.DeviceDurationElephant
- func CreatedAtNotIn(vs ...time.Time) predicate.DeviceDurationElephant
- func Date(v string) predicate.DeviceDurationElephant
- func DateContains(v string) predicate.DeviceDurationElephant
- func DateContainsFold(v string) predicate.DeviceDurationElephant
- func DateEQ(v string) predicate.DeviceDurationElephant
- func DateEqualFold(v string) predicate.DeviceDurationElephant
- func DateGT(v string) predicate.DeviceDurationElephant
- func DateGTE(v string) predicate.DeviceDurationElephant
- func DateHasPrefix(v string) predicate.DeviceDurationElephant
- func DateHasSuffix(v string) predicate.DeviceDurationElephant
- func DateIn(vs ...string) predicate.DeviceDurationElephant
- func DateIsNil() predicate.DeviceDurationElephant
- func DateLT(v string) predicate.DeviceDurationElephant
- func DateLTE(v string) predicate.DeviceDurationElephant
- func DateNEQ(v string) predicate.DeviceDurationElephant
- func DateNotIn(vs ...string) predicate.DeviceDurationElephant
- func DateNotNil() predicate.DeviceDurationElephant
- func DayJson(v string) predicate.DeviceDurationElephant
- func DayJsonContains(v string) predicate.DeviceDurationElephant
- func DayJsonContainsFold(v string) predicate.DeviceDurationElephant
- func DayJsonEQ(v string) predicate.DeviceDurationElephant
- func DayJsonEqualFold(v string) predicate.DeviceDurationElephant
- func DayJsonGT(v string) predicate.DeviceDurationElephant
- func DayJsonGTE(v string) predicate.DeviceDurationElephant
- func DayJsonHasPrefix(v string) predicate.DeviceDurationElephant
- func DayJsonHasSuffix(v string) predicate.DeviceDurationElephant
- func DayJsonIn(vs ...string) predicate.DeviceDurationElephant
- func DayJsonIsNil() predicate.DeviceDurationElephant
- func DayJsonLT(v string) predicate.DeviceDurationElephant
- func DayJsonLTE(v string) predicate.DeviceDurationElephant
- func DayJsonNEQ(v string) predicate.DeviceDurationElephant
- func DayJsonNotIn(vs ...string) predicate.DeviceDurationElephant
- func DayJsonNotNil() predicate.DeviceDurationElephant
- func DeviceName(v string) predicate.DeviceDurationElephant
- func DeviceNameContains(v string) predicate.DeviceDurationElephant
- func DeviceNameContainsFold(v string) predicate.DeviceDurationElephant
- func DeviceNameEQ(v string) predicate.DeviceDurationElephant
- func DeviceNameEqualFold(v string) predicate.DeviceDurationElephant
- func DeviceNameGT(v string) predicate.DeviceDurationElephant
- func DeviceNameGTE(v string) predicate.DeviceDurationElephant
- func DeviceNameHasPrefix(v string) predicate.DeviceDurationElephant
- func DeviceNameHasSuffix(v string) predicate.DeviceDurationElephant
- func DeviceNameIn(vs ...string) predicate.DeviceDurationElephant
- func DeviceNameLT(v string) predicate.DeviceDurationElephant
- func DeviceNameLTE(v string) predicate.DeviceDurationElephant
- func DeviceNameNEQ(v string) predicate.DeviceDurationElephant
- func DeviceNameNotIn(vs ...string) predicate.DeviceDurationElephant
- func Ebutton(v int32) predicate.DeviceDurationElephant
- func EbuttonEQ(v int32) predicate.DeviceDurationElephant
- func EbuttonGT(v int32) predicate.DeviceDurationElephant
- func EbuttonGTE(v int32) predicate.DeviceDurationElephant
- func EbuttonIn(vs ...int32) predicate.DeviceDurationElephant
- func EbuttonIsNil() predicate.DeviceDurationElephant
- func EbuttonLT(v int32) predicate.DeviceDurationElephant
- func EbuttonLTE(v int32) predicate.DeviceDurationElephant
- func EbuttonNEQ(v int32) predicate.DeviceDurationElephant
- func EbuttonNotIn(vs ...int32) predicate.DeviceDurationElephant
- func EbuttonNotNil() predicate.DeviceDurationElephant
- func ID(id uint64) predicate.DeviceDurationElephant
- func IDEQ(id uint64) predicate.DeviceDurationElephant
- func IDGT(id uint64) predicate.DeviceDurationElephant
- func IDGTE(id uint64) predicate.DeviceDurationElephant
- func IDIn(ids ...uint64) predicate.DeviceDurationElephant
- func IDLT(id uint64) predicate.DeviceDurationElephant
- func IDLTE(id uint64) predicate.DeviceDurationElephant
- func IDNEQ(id uint64) predicate.DeviceDurationElephant
- func IDNotIn(ids ...uint64) predicate.DeviceDurationElephant
- func IotID(v string) predicate.DeviceDurationElephant
- func IotIDContains(v string) predicate.DeviceDurationElephant
- func IotIDContainsFold(v string) predicate.DeviceDurationElephant
- func IotIDEQ(v string) predicate.DeviceDurationElephant
- func IotIDEqualFold(v string) predicate.DeviceDurationElephant
- func IotIDGT(v string) predicate.DeviceDurationElephant
- func IotIDGTE(v string) predicate.DeviceDurationElephant
- func IotIDHasPrefix(v string) predicate.DeviceDurationElephant
- func IotIDHasSuffix(v string) predicate.DeviceDurationElephant
- func IotIDIn(vs ...string) predicate.DeviceDurationElephant
- func IotIDLT(v string) predicate.DeviceDurationElephant
- func IotIDLTE(v string) predicate.DeviceDurationElephant
- func IotIDNEQ(v string) predicate.DeviceDurationElephant
- func IotIDNotIn(vs ...string) predicate.DeviceDurationElephant
- func Not(p predicate.DeviceDurationElephant) predicate.DeviceDurationElephant
- func Or(predicates ...predicate.DeviceDurationElephant) predicate.DeviceDurationElephant
- func ProductKey(v string) predicate.DeviceDurationElephant
- func ProductKeyContains(v string) predicate.DeviceDurationElephant
- func ProductKeyContainsFold(v string) predicate.DeviceDurationElephant
- func ProductKeyEQ(v string) predicate.DeviceDurationElephant
- func ProductKeyEqualFold(v string) predicate.DeviceDurationElephant
- func ProductKeyGT(v string) predicate.DeviceDurationElephant
- func ProductKeyGTE(v string) predicate.DeviceDurationElephant
- func ProductKeyHasPrefix(v string) predicate.DeviceDurationElephant
- func ProductKeyHasSuffix(v string) predicate.DeviceDurationElephant
- func ProductKeyIn(vs ...string) predicate.DeviceDurationElephant
- func ProductKeyLT(v string) predicate.DeviceDurationElephant
- func ProductKeyLTE(v string) predicate.DeviceDurationElephant
- func ProductKeyNEQ(v string) predicate.DeviceDurationElephant
- func ProductKeyNotIn(vs ...string) predicate.DeviceDurationElephant
- func Running(v int32) predicate.DeviceDurationElephant
- func RunningEQ(v int32) predicate.DeviceDurationElephant
- func RunningGT(v int32) predicate.DeviceDurationElephant
- func RunningGTE(v int32) predicate.DeviceDurationElephant
- func RunningIn(vs ...int32) predicate.DeviceDurationElephant
- func RunningIsNil() predicate.DeviceDurationElephant
- func RunningLT(v int32) predicate.DeviceDurationElephant
- func RunningLTE(v int32) predicate.DeviceDurationElephant
- func RunningNEQ(v int32) predicate.DeviceDurationElephant
- func RunningNotIn(vs ...int32) predicate.DeviceDurationElephant
- func RunningNotNil() predicate.DeviceDurationElephant
- func Sort(v uint32) predicate.DeviceDurationElephant
- func SortEQ(v uint32) predicate.DeviceDurationElephant
- func SortGT(v uint32) predicate.DeviceDurationElephant
- func SortGTE(v uint32) predicate.DeviceDurationElephant
- func SortIn(vs ...uint32) predicate.DeviceDurationElephant
- func SortLT(v uint32) predicate.DeviceDurationElephant
- func SortLTE(v uint32) predicate.DeviceDurationElephant
- func SortNEQ(v uint32) predicate.DeviceDurationElephant
- func SortNotIn(vs ...uint32) predicate.DeviceDurationElephant
- func Status(v uint8) predicate.DeviceDurationElephant
- func StatusEQ(v uint8) predicate.DeviceDurationElephant
- func StatusGT(v uint8) predicate.DeviceDurationElephant
- func StatusGTE(v uint8) predicate.DeviceDurationElephant
- func StatusIn(vs ...uint8) predicate.DeviceDurationElephant
- func StatusIsNil() predicate.DeviceDurationElephant
- func StatusLT(v uint8) predicate.DeviceDurationElephant
- func StatusLTE(v uint8) predicate.DeviceDurationElephant
- func StatusNEQ(v uint8) predicate.DeviceDurationElephant
- func StatusNotIn(vs ...uint8) predicate.DeviceDurationElephant
- func StatusNotNil() predicate.DeviceDurationElephant
- func UpdatedAt(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtEQ(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtGT(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtGTE(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtIn(vs ...time.Time) predicate.DeviceDurationElephant
- func UpdatedAtLT(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtLTE(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtNEQ(v time.Time) predicate.DeviceDurationElephant
- func UpdatedAtNotIn(vs ...time.Time) predicate.DeviceDurationElephant
- func ValidColumn(column string) bool
- type OrderOption
- func ByConnected(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDate(opts ...sql.OrderTermOption) OrderOption
- func ByDayJson(opts ...sql.OrderTermOption) OrderOption
- func ByDeviceName(opts ...sql.OrderTermOption) OrderOption
- func ByEbutton(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIotID(opts ...sql.OrderTermOption) OrderOption
- func ByProductKey(opts ...sql.OrderTermOption) OrderOption
- func ByRunning(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 devicedurationelephant type in the database. Label = "device_duration_elephant" // 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" // FieldDeviceName holds the string denoting the devicename field in the database. FieldDeviceName = "device_name" // FieldProductKey holds the string denoting the productkey field in the database. FieldProductKey = "product_key" // FieldDate holds the string denoting the date field in the database. FieldDate = "date" // FieldConnected holds the string denoting the connected field in the database. FieldConnected = "connected" // FieldRunning holds the string denoting the running field in the database. FieldRunning = "running" FieldEbutton = "ebutton" // FieldDayJson holds the string denoting the dayjson field in the database. FieldDayJson = "day_json" // Table holds the table name of the devicedurationelephant in the database. Table = "thing_device_duration_elephant" )
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, FieldDeviceName, FieldProductKey, FieldDate, FieldConnected, FieldRunning, FieldEbutton, FieldDayJson, }
Columns holds all SQL columns for devicedurationelephant fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DeviceDurationElephant) predicate.DeviceDurationElephant
And groups predicates with the AND operator between them.
func Connected ¶
func Connected(v int32) predicate.DeviceDurationElephant
Connected applies equality check predicate on the "connected" field. It's identical to ConnectedEQ.
func ConnectedEQ ¶
func ConnectedEQ(v int32) predicate.DeviceDurationElephant
ConnectedEQ applies the EQ predicate on the "connected" field.
func ConnectedGT ¶
func ConnectedGT(v int32) predicate.DeviceDurationElephant
ConnectedGT applies the GT predicate on the "connected" field.
func ConnectedGTE ¶
func ConnectedGTE(v int32) predicate.DeviceDurationElephant
ConnectedGTE applies the GTE predicate on the "connected" field.
func ConnectedIn ¶
func ConnectedIn(vs ...int32) predicate.DeviceDurationElephant
ConnectedIn applies the In predicate on the "connected" field.
func ConnectedIsNil ¶
func ConnectedIsNil() predicate.DeviceDurationElephant
ConnectedIsNil applies the IsNil predicate on the "connected" field.
func ConnectedLT ¶
func ConnectedLT(v int32) predicate.DeviceDurationElephant
ConnectedLT applies the LT predicate on the "connected" field.
func ConnectedLTE ¶
func ConnectedLTE(v int32) predicate.DeviceDurationElephant
ConnectedLTE applies the LTE predicate on the "connected" field.
func ConnectedNEQ ¶
func ConnectedNEQ(v int32) predicate.DeviceDurationElephant
ConnectedNEQ applies the NEQ predicate on the "connected" field.
func ConnectedNotIn ¶
func ConnectedNotIn(vs ...int32) predicate.DeviceDurationElephant
ConnectedNotIn applies the NotIn predicate on the "connected" field.
func ConnectedNotNil ¶
func ConnectedNotNil() predicate.DeviceDurationElephant
ConnectedNotNil applies the NotNil predicate on the "connected" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.DeviceDurationElephant
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.DeviceDurationElephant
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.DeviceDurationElephant
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.DeviceDurationElephant
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.DeviceDurationElephant
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.DeviceDurationElephant
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.DeviceDurationElephant
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.DeviceDurationElephant
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.DeviceDurationElephant
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Date ¶
func Date(v string) predicate.DeviceDurationElephant
Date applies equality check predicate on the "date" field. It's identical to DateEQ.
func DateContains ¶
func DateContains(v string) predicate.DeviceDurationElephant
DateContains applies the Contains predicate on the "date" field.
func DateContainsFold ¶
func DateContainsFold(v string) predicate.DeviceDurationElephant
DateContainsFold applies the ContainsFold predicate on the "date" field.
func DateEQ ¶
func DateEQ(v string) predicate.DeviceDurationElephant
DateEQ applies the EQ predicate on the "date" field.
func DateEqualFold ¶
func DateEqualFold(v string) predicate.DeviceDurationElephant
DateEqualFold applies the EqualFold predicate on the "date" field.
func DateGT ¶
func DateGT(v string) predicate.DeviceDurationElephant
DateGT applies the GT predicate on the "date" field.
func DateGTE ¶
func DateGTE(v string) predicate.DeviceDurationElephant
DateGTE applies the GTE predicate on the "date" field.
func DateHasPrefix ¶
func DateHasPrefix(v string) predicate.DeviceDurationElephant
DateHasPrefix applies the HasPrefix predicate on the "date" field.
func DateHasSuffix ¶
func DateHasSuffix(v string) predicate.DeviceDurationElephant
DateHasSuffix applies the HasSuffix predicate on the "date" field.
func DateIn ¶
func DateIn(vs ...string) predicate.DeviceDurationElephant
DateIn applies the In predicate on the "date" field.
func DateIsNil ¶
func DateIsNil() predicate.DeviceDurationElephant
DateIsNil applies the IsNil predicate on the "date" field.
func DateLT ¶
func DateLT(v string) predicate.DeviceDurationElephant
DateLT applies the LT predicate on the "date" field.
func DateLTE ¶
func DateLTE(v string) predicate.DeviceDurationElephant
DateLTE applies the LTE predicate on the "date" field.
func DateNEQ ¶
func DateNEQ(v string) predicate.DeviceDurationElephant
DateNEQ applies the NEQ predicate on the "date" field.
func DateNotIn ¶
func DateNotIn(vs ...string) predicate.DeviceDurationElephant
DateNotIn applies the NotIn predicate on the "date" field.
func DateNotNil ¶
func DateNotNil() predicate.DeviceDurationElephant
DateNotNil applies the NotNil predicate on the "date" field.
func DayJson ¶
func DayJson(v string) predicate.DeviceDurationElephant
DayJson applies equality check predicate on the "dayJson" field. It's identical to DayJsonEQ.
func DayJsonContains ¶
func DayJsonContains(v string) predicate.DeviceDurationElephant
DayJsonContains applies the Contains predicate on the "dayJson" field.
func DayJsonContainsFold ¶
func DayJsonContainsFold(v string) predicate.DeviceDurationElephant
DayJsonContainsFold applies the ContainsFold predicate on the "dayJson" field.
func DayJsonEQ ¶
func DayJsonEQ(v string) predicate.DeviceDurationElephant
DayJsonEQ applies the EQ predicate on the "dayJson" field.
func DayJsonEqualFold ¶
func DayJsonEqualFold(v string) predicate.DeviceDurationElephant
DayJsonEqualFold applies the EqualFold predicate on the "dayJson" field.
func DayJsonGT ¶
func DayJsonGT(v string) predicate.DeviceDurationElephant
DayJsonGT applies the GT predicate on the "dayJson" field.
func DayJsonGTE ¶
func DayJsonGTE(v string) predicate.DeviceDurationElephant
DayJsonGTE applies the GTE predicate on the "dayJson" field.
func DayJsonHasPrefix ¶
func DayJsonHasPrefix(v string) predicate.DeviceDurationElephant
DayJsonHasPrefix applies the HasPrefix predicate on the "dayJson" field.
func DayJsonHasSuffix ¶
func DayJsonHasSuffix(v string) predicate.DeviceDurationElephant
DayJsonHasSuffix applies the HasSuffix predicate on the "dayJson" field.
func DayJsonIn ¶
func DayJsonIn(vs ...string) predicate.DeviceDurationElephant
DayJsonIn applies the In predicate on the "dayJson" field.
func DayJsonIsNil ¶
func DayJsonIsNil() predicate.DeviceDurationElephant
DayJsonIsNil applies the IsNil predicate on the "dayJson" field.
func DayJsonLT ¶
func DayJsonLT(v string) predicate.DeviceDurationElephant
DayJsonLT applies the LT predicate on the "dayJson" field.
func DayJsonLTE ¶
func DayJsonLTE(v string) predicate.DeviceDurationElephant
DayJsonLTE applies the LTE predicate on the "dayJson" field.
func DayJsonNEQ ¶
func DayJsonNEQ(v string) predicate.DeviceDurationElephant
DayJsonNEQ applies the NEQ predicate on the "dayJson" field.
func DayJsonNotIn ¶
func DayJsonNotIn(vs ...string) predicate.DeviceDurationElephant
DayJsonNotIn applies the NotIn predicate on the "dayJson" field.
func DayJsonNotNil ¶
func DayJsonNotNil() predicate.DeviceDurationElephant
DayJsonNotNil applies the NotNil predicate on the "dayJson" field.
func DeviceName ¶
func DeviceName(v string) predicate.DeviceDurationElephant
DeviceName applies equality check predicate on the "deviceName" field. It's identical to DeviceNameEQ.
func DeviceNameContains ¶
func DeviceNameContains(v string) predicate.DeviceDurationElephant
DeviceNameContains applies the Contains predicate on the "deviceName" field.
func DeviceNameContainsFold ¶
func DeviceNameContainsFold(v string) predicate.DeviceDurationElephant
DeviceNameContainsFold applies the ContainsFold predicate on the "deviceName" field.
func DeviceNameEQ ¶
func DeviceNameEQ(v string) predicate.DeviceDurationElephant
DeviceNameEQ applies the EQ predicate on the "deviceName" field.
func DeviceNameEqualFold ¶
func DeviceNameEqualFold(v string) predicate.DeviceDurationElephant
DeviceNameEqualFold applies the EqualFold predicate on the "deviceName" field.
func DeviceNameGT ¶
func DeviceNameGT(v string) predicate.DeviceDurationElephant
DeviceNameGT applies the GT predicate on the "deviceName" field.
func DeviceNameGTE ¶
func DeviceNameGTE(v string) predicate.DeviceDurationElephant
DeviceNameGTE applies the GTE predicate on the "deviceName" field.
func DeviceNameHasPrefix ¶
func DeviceNameHasPrefix(v string) predicate.DeviceDurationElephant
DeviceNameHasPrefix applies the HasPrefix predicate on the "deviceName" field.
func DeviceNameHasSuffix ¶
func DeviceNameHasSuffix(v string) predicate.DeviceDurationElephant
DeviceNameHasSuffix applies the HasSuffix predicate on the "deviceName" field.
func DeviceNameIn ¶
func DeviceNameIn(vs ...string) predicate.DeviceDurationElephant
DeviceNameIn applies the In predicate on the "deviceName" field.
func DeviceNameLT ¶
func DeviceNameLT(v string) predicate.DeviceDurationElephant
DeviceNameLT applies the LT predicate on the "deviceName" field.
func DeviceNameLTE ¶
func DeviceNameLTE(v string) predicate.DeviceDurationElephant
DeviceNameLTE applies the LTE predicate on the "deviceName" field.
func DeviceNameNEQ ¶
func DeviceNameNEQ(v string) predicate.DeviceDurationElephant
DeviceNameNEQ applies the NEQ predicate on the "deviceName" field.
func DeviceNameNotIn ¶
func DeviceNameNotIn(vs ...string) predicate.DeviceDurationElephant
DeviceNameNotIn applies the NotIn predicate on the "deviceName" field.
func Ebutton ¶
func Ebutton(v int32) predicate.DeviceDurationElephant
Ebutton applies equality check predicate on the "ebutton" field. It's identical to EbuttonEQ.
func EbuttonEQ ¶
func EbuttonEQ(v int32) predicate.DeviceDurationElephant
EbuttonEQ applies the EQ predicate on the "ebutton" field.
func EbuttonGT ¶
func EbuttonGT(v int32) predicate.DeviceDurationElephant
EbuttonGT applies the GT predicate on the "ebutton" field.
func EbuttonGTE ¶
func EbuttonGTE(v int32) predicate.DeviceDurationElephant
EbuttonGTE applies the GTE predicate on the "ebutton" field.
func EbuttonIn ¶
func EbuttonIn(vs ...int32) predicate.DeviceDurationElephant
EbuttonIn applies the In predicate on the "ebutton" field.
func EbuttonIsNil ¶
func EbuttonIsNil() predicate.DeviceDurationElephant
EbuttonIsNil applies the IsNil predicate on the "ebutton" field.
func EbuttonLT ¶
func EbuttonLT(v int32) predicate.DeviceDurationElephant
EbuttonLT applies the LT predicate on the "ebutton" field.
func EbuttonLTE ¶
func EbuttonLTE(v int32) predicate.DeviceDurationElephant
EbuttonLTE applies the LTE predicate on the "ebutton" field.
func EbuttonNEQ ¶
func EbuttonNEQ(v int32) predicate.DeviceDurationElephant
EbuttonNEQ applies the NEQ predicate on the "ebutton" field.
func EbuttonNotIn ¶
func EbuttonNotIn(vs ...int32) predicate.DeviceDurationElephant
EbuttonNotIn applies the NotIn predicate on the "ebutton" field.
func EbuttonNotNil ¶
func EbuttonNotNil() predicate.DeviceDurationElephant
EbuttonNotNil applies the NotNil predicate on the "ebutton" field.
func ID ¶
func ID(id uint64) predicate.DeviceDurationElephant
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uint64) predicate.DeviceDurationElephant
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint64) predicate.DeviceDurationElephant
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint64) predicate.DeviceDurationElephant
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint64) predicate.DeviceDurationElephant
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint64) predicate.DeviceDurationElephant
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint64) predicate.DeviceDurationElephant
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint64) predicate.DeviceDurationElephant
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint64) predicate.DeviceDurationElephant
IDNotIn applies the NotIn predicate on the ID field.
func IotID ¶
func IotID(v string) predicate.DeviceDurationElephant
IotID applies equality check predicate on the "iotID" field. It's identical to IotIDEQ.
func IotIDContains ¶
func IotIDContains(v string) predicate.DeviceDurationElephant
IotIDContains applies the Contains predicate on the "iotID" field.
func IotIDContainsFold ¶
func IotIDContainsFold(v string) predicate.DeviceDurationElephant
IotIDContainsFold applies the ContainsFold predicate on the "iotID" field.
func IotIDEQ ¶
func IotIDEQ(v string) predicate.DeviceDurationElephant
IotIDEQ applies the EQ predicate on the "iotID" field.
func IotIDEqualFold ¶
func IotIDEqualFold(v string) predicate.DeviceDurationElephant
IotIDEqualFold applies the EqualFold predicate on the "iotID" field.
func IotIDGT ¶
func IotIDGT(v string) predicate.DeviceDurationElephant
IotIDGT applies the GT predicate on the "iotID" field.
func IotIDGTE ¶
func IotIDGTE(v string) predicate.DeviceDurationElephant
IotIDGTE applies the GTE predicate on the "iotID" field.
func IotIDHasPrefix ¶
func IotIDHasPrefix(v string) predicate.DeviceDurationElephant
IotIDHasPrefix applies the HasPrefix predicate on the "iotID" field.
func IotIDHasSuffix ¶
func IotIDHasSuffix(v string) predicate.DeviceDurationElephant
IotIDHasSuffix applies the HasSuffix predicate on the "iotID" field.
func IotIDIn ¶
func IotIDIn(vs ...string) predicate.DeviceDurationElephant
IotIDIn applies the In predicate on the "iotID" field.
func IotIDLT ¶
func IotIDLT(v string) predicate.DeviceDurationElephant
IotIDLT applies the LT predicate on the "iotID" field.
func IotIDLTE ¶
func IotIDLTE(v string) predicate.DeviceDurationElephant
IotIDLTE applies the LTE predicate on the "iotID" field.
func IotIDNEQ ¶
func IotIDNEQ(v string) predicate.DeviceDurationElephant
IotIDNEQ applies the NEQ predicate on the "iotID" field.
func IotIDNotIn ¶
func IotIDNotIn(vs ...string) predicate.DeviceDurationElephant
IotIDNotIn applies the NotIn predicate on the "iotID" field.
func Or ¶
func Or(predicates ...predicate.DeviceDurationElephant) predicate.DeviceDurationElephant
Or groups predicates with the OR operator between them.
func ProductKey ¶
func ProductKey(v string) predicate.DeviceDurationElephant
ProductKey applies equality check predicate on the "productKey" field. It's identical to ProductKeyEQ.
func ProductKeyContains ¶
func ProductKeyContains(v string) predicate.DeviceDurationElephant
ProductKeyContains applies the Contains predicate on the "productKey" field.
func ProductKeyContainsFold ¶
func ProductKeyContainsFold(v string) predicate.DeviceDurationElephant
ProductKeyContainsFold applies the ContainsFold predicate on the "productKey" field.
func ProductKeyEQ ¶
func ProductKeyEQ(v string) predicate.DeviceDurationElephant
ProductKeyEQ applies the EQ predicate on the "productKey" field.
func ProductKeyEqualFold ¶
func ProductKeyEqualFold(v string) predicate.DeviceDurationElephant
ProductKeyEqualFold applies the EqualFold predicate on the "productKey" field.
func ProductKeyGT ¶
func ProductKeyGT(v string) predicate.DeviceDurationElephant
ProductKeyGT applies the GT predicate on the "productKey" field.
func ProductKeyGTE ¶
func ProductKeyGTE(v string) predicate.DeviceDurationElephant
ProductKeyGTE applies the GTE predicate on the "productKey" field.
func ProductKeyHasPrefix ¶
func ProductKeyHasPrefix(v string) predicate.DeviceDurationElephant
ProductKeyHasPrefix applies the HasPrefix predicate on the "productKey" field.
func ProductKeyHasSuffix ¶
func ProductKeyHasSuffix(v string) predicate.DeviceDurationElephant
ProductKeyHasSuffix applies the HasSuffix predicate on the "productKey" field.
func ProductKeyIn ¶
func ProductKeyIn(vs ...string) predicate.DeviceDurationElephant
ProductKeyIn applies the In predicate on the "productKey" field.
func ProductKeyLT ¶
func ProductKeyLT(v string) predicate.DeviceDurationElephant
ProductKeyLT applies the LT predicate on the "productKey" field.
func ProductKeyLTE ¶
func ProductKeyLTE(v string) predicate.DeviceDurationElephant
ProductKeyLTE applies the LTE predicate on the "productKey" field.
func ProductKeyNEQ ¶
func ProductKeyNEQ(v string) predicate.DeviceDurationElephant
ProductKeyNEQ applies the NEQ predicate on the "productKey" field.
func ProductKeyNotIn ¶
func ProductKeyNotIn(vs ...string) predicate.DeviceDurationElephant
ProductKeyNotIn applies the NotIn predicate on the "productKey" field.
func Running ¶
func Running(v int32) predicate.DeviceDurationElephant
Running applies equality check predicate on the "running" field. It's identical to RunningEQ.
func RunningEQ ¶
func RunningEQ(v int32) predicate.DeviceDurationElephant
RunningEQ applies the EQ predicate on the "running" field.
func RunningGT ¶
func RunningGT(v int32) predicate.DeviceDurationElephant
RunningGT applies the GT predicate on the "running" field.
func RunningGTE ¶
func RunningGTE(v int32) predicate.DeviceDurationElephant
RunningGTE applies the GTE predicate on the "running" field.
func RunningIn ¶
func RunningIn(vs ...int32) predicate.DeviceDurationElephant
RunningIn applies the In predicate on the "running" field.
func RunningIsNil ¶
func RunningIsNil() predicate.DeviceDurationElephant
RunningIsNil applies the IsNil predicate on the "running" field.
func RunningLT ¶
func RunningLT(v int32) predicate.DeviceDurationElephant
RunningLT applies the LT predicate on the "running" field.
func RunningLTE ¶
func RunningLTE(v int32) predicate.DeviceDurationElephant
RunningLTE applies the LTE predicate on the "running" field.
func RunningNEQ ¶
func RunningNEQ(v int32) predicate.DeviceDurationElephant
RunningNEQ applies the NEQ predicate on the "running" field.
func RunningNotIn ¶
func RunningNotIn(vs ...int32) predicate.DeviceDurationElephant
RunningNotIn applies the NotIn predicate on the "running" field.
func RunningNotNil ¶
func RunningNotNil() predicate.DeviceDurationElephant
RunningNotNil applies the NotNil predicate on the "running" field.
func Sort ¶
func Sort(v uint32) predicate.DeviceDurationElephant
Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func SortEQ ¶
func SortEQ(v uint32) predicate.DeviceDurationElephant
SortEQ applies the EQ predicate on the "sort" field.
func SortGT ¶
func SortGT(v uint32) predicate.DeviceDurationElephant
SortGT applies the GT predicate on the "sort" field.
func SortGTE ¶
func SortGTE(v uint32) predicate.DeviceDurationElephant
SortGTE applies the GTE predicate on the "sort" field.
func SortIn ¶
func SortIn(vs ...uint32) predicate.DeviceDurationElephant
SortIn applies the In predicate on the "sort" field.
func SortLT ¶
func SortLT(v uint32) predicate.DeviceDurationElephant
SortLT applies the LT predicate on the "sort" field.
func SortLTE ¶
func SortLTE(v uint32) predicate.DeviceDurationElephant
SortLTE applies the LTE predicate on the "sort" field.
func SortNEQ ¶
func SortNEQ(v uint32) predicate.DeviceDurationElephant
SortNEQ applies the NEQ predicate on the "sort" field.
func SortNotIn ¶
func SortNotIn(vs ...uint32) predicate.DeviceDurationElephant
SortNotIn applies the NotIn predicate on the "sort" field.
func Status ¶
func Status(v uint8) predicate.DeviceDurationElephant
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v uint8) predicate.DeviceDurationElephant
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v uint8) predicate.DeviceDurationElephant
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v uint8) predicate.DeviceDurationElephant
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...uint8) predicate.DeviceDurationElephant
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.DeviceDurationElephant
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusLT ¶
func StatusLT(v uint8) predicate.DeviceDurationElephant
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v uint8) predicate.DeviceDurationElephant
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v uint8) predicate.DeviceDurationElephant
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...uint8) predicate.DeviceDurationElephant
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.DeviceDurationElephant
StatusNotNil applies the NotNil predicate on the "status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.DeviceDurationElephant
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.DeviceDurationElephant
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.DeviceDurationElephant
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.DeviceDurationElephant
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.DeviceDurationElephant
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.DeviceDurationElephant
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.DeviceDurationElephant
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.DeviceDurationElephant
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.DeviceDurationElephant
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 DeviceDurationElephant queries.
func ByConnected ¶
func ByConnected(opts ...sql.OrderTermOption) OrderOption
ByConnected orders the results by the connected field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDate ¶
func ByDate(opts ...sql.OrderTermOption) OrderOption
ByDate orders the results by the date field.
func ByDayJson ¶
func ByDayJson(opts ...sql.OrderTermOption) OrderOption
ByDayJson orders the results by the dayJson field.
func ByDeviceName ¶
func ByDeviceName(opts ...sql.OrderTermOption) OrderOption
ByDeviceName orders the results by the deviceName field.
func ByEbutton ¶
func ByEbutton(opts ...sql.OrderTermOption) OrderOption
ByEbutton orders the results by the ebutton 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 ByProductKey ¶
func ByProductKey(opts ...sql.OrderTermOption) OrderOption
ByProductKey orders the results by the productKey field.
func ByRunning ¶
func ByRunning(opts ...sql.OrderTermOption) OrderOption
ByRunning orders the results by the running 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.