Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Device) predicate.Device
- func Channel(v enum.Sender) predicate.Device
- func ChannelContains(v enum.Sender) predicate.Device
- func ChannelContainsFold(v enum.Sender) predicate.Device
- func ChannelEQ(v enum.Sender) predicate.Device
- func ChannelEqualFold(v enum.Sender) predicate.Device
- func ChannelGT(v enum.Sender) predicate.Device
- func ChannelGTE(v enum.Sender) predicate.Device
- func ChannelHasPrefix(v enum.Sender) predicate.Device
- func ChannelHasSuffix(v enum.Sender) predicate.Device
- func ChannelIn(vs ...enum.Sender) predicate.Device
- func ChannelLT(v enum.Sender) predicate.Device
- func ChannelLTE(v enum.Sender) predicate.Device
- func ChannelMeta(v string) predicate.Device
- func ChannelMetaContains(v string) predicate.Device
- func ChannelMetaContainsFold(v string) predicate.Device
- func ChannelMetaEQ(v string) predicate.Device
- func ChannelMetaEqualFold(v string) predicate.Device
- func ChannelMetaGT(v string) predicate.Device
- func ChannelMetaGTE(v string) predicate.Device
- func ChannelMetaHasPrefix(v string) predicate.Device
- func ChannelMetaHasSuffix(v string) predicate.Device
- func ChannelMetaIn(vs ...string) predicate.Device
- func ChannelMetaLT(v string) predicate.Device
- func ChannelMetaLTE(v string) predicate.Device
- func ChannelMetaNEQ(v string) predicate.Device
- func ChannelMetaNotIn(vs ...string) predicate.Device
- func ChannelNEQ(v enum.Sender) predicate.Device
- func ChannelNotIn(vs ...enum.Sender) predicate.Device
- func ChannelToken(v string) predicate.Device
- func ChannelTokenContains(v string) predicate.Device
- func ChannelTokenContainsFold(v string) predicate.Device
- func ChannelTokenEQ(v string) predicate.Device
- func ChannelTokenEqualFold(v string) predicate.Device
- func ChannelTokenGT(v string) predicate.Device
- func ChannelTokenGTE(v string) predicate.Device
- func ChannelTokenHasPrefix(v string) predicate.Device
- func ChannelTokenHasSuffix(v string) predicate.Device
- func ChannelTokenIn(vs ...string) predicate.Device
- func ChannelTokenLT(v string) predicate.Device
- func ChannelTokenLTE(v string) predicate.Device
- func ChannelTokenNEQ(v string) predicate.Device
- func ChannelTokenNotIn(vs ...string) predicate.Device
- func CreatedAt(v time.Time) predicate.Device
- func CreatedAtEQ(v time.Time) predicate.Device
- func CreatedAtGT(v time.Time) predicate.Device
- func CreatedAtGTE(v time.Time) predicate.Device
- func CreatedAtIn(vs ...time.Time) predicate.Device
- func CreatedAtLT(v time.Time) predicate.Device
- func CreatedAtLTE(v time.Time) predicate.Device
- func CreatedAtNEQ(v time.Time) predicate.Device
- func CreatedAtNotIn(vs ...time.Time) predicate.Device
- func DeviceMeta(v string) predicate.Device
- func DeviceMetaContains(v string) predicate.Device
- func DeviceMetaContainsFold(v string) predicate.Device
- func DeviceMetaEQ(v string) predicate.Device
- func DeviceMetaEqualFold(v string) predicate.Device
- func DeviceMetaGT(v string) predicate.Device
- func DeviceMetaGTE(v string) predicate.Device
- func DeviceMetaHasPrefix(v string) predicate.Device
- func DeviceMetaHasSuffix(v string) predicate.Device
- func DeviceMetaIn(vs ...string) predicate.Device
- func DeviceMetaLT(v string) predicate.Device
- func DeviceMetaLTE(v string) predicate.Device
- func DeviceMetaNEQ(v string) predicate.Device
- func DeviceMetaNotIn(vs ...string) predicate.Device
- func DeviceName(v string) predicate.Device
- func DeviceNameContains(v string) predicate.Device
- func DeviceNameContainsFold(v string) predicate.Device
- func DeviceNameEQ(v string) predicate.Device
- func DeviceNameEqualFold(v string) predicate.Device
- func DeviceNameGT(v string) predicate.Device
- func DeviceNameGTE(v string) predicate.Device
- func DeviceNameHasPrefix(v string) predicate.Device
- func DeviceNameHasSuffix(v string) predicate.Device
- func DeviceNameIn(vs ...string) predicate.Device
- func DeviceNameLT(v string) predicate.Device
- func DeviceNameLTE(v string) predicate.Device
- func DeviceNameNEQ(v string) predicate.Device
- func DeviceNameNotIn(vs ...string) predicate.Device
- func HasUser() predicate.Device
- func HasUserWith(preds ...predicate.User) predicate.Device
- func ID(id int) predicate.Device
- func IDEQ(id int) predicate.Device
- func IDGT(id int) predicate.Device
- func IDGTE(id int) predicate.Device
- func IDIn(ids ...int) predicate.Device
- func IDLT(id int) predicate.Device
- func IDLTE(id int) predicate.Device
- func IDNEQ(id int) predicate.Device
- func IDNotIn(ids ...int) predicate.Device
- func Identifier(v string) predicate.Device
- func IdentifierContains(v string) predicate.Device
- func IdentifierContainsFold(v string) predicate.Device
- func IdentifierEQ(v string) predicate.Device
- func IdentifierEqualFold(v string) predicate.Device
- func IdentifierGT(v string) predicate.Device
- func IdentifierGTE(v string) predicate.Device
- func IdentifierHasPrefix(v string) predicate.Device
- func IdentifierHasSuffix(v string) predicate.Device
- func IdentifierIn(vs ...string) predicate.Device
- func IdentifierLT(v string) predicate.Device
- func IdentifierLTE(v string) predicate.Device
- func IdentifierNEQ(v string) predicate.Device
- func IdentifierNotIn(vs ...string) predicate.Device
- func Not(p predicate.Device) predicate.Device
- func Or(predicates ...predicate.Device) predicate.Device
- func UpdatedAt(v time.Time) predicate.Device
- func UpdatedAtEQ(v time.Time) predicate.Device
- func UpdatedAtGT(v time.Time) predicate.Device
- func UpdatedAtGTE(v time.Time) predicate.Device
- func UpdatedAtIn(vs ...time.Time) predicate.Device
- func UpdatedAtLT(v time.Time) predicate.Device
- func UpdatedAtLTE(v time.Time) predicate.Device
- func UpdatedAtNEQ(v time.Time) predicate.Device
- func UpdatedAtNotIn(vs ...time.Time) predicate.Device
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the device type in the database. Label = "device" // 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" // FieldIdentifier holds the string denoting the identifier field in the database. FieldIdentifier = "identifier" // FieldChannel holds the string denoting the channel field in the database. FieldChannel = "channel" // FieldChannelMeta holds the string denoting the channelmeta field in the database. FieldChannelMeta = "channel_meta" // FieldChannelToken holds the string denoting the channeltoken field in the database. FieldChannelToken = "channel_token" // FieldDeviceName holds the string denoting the devicename field in the database. FieldDeviceName = "device_name" // FieldDeviceMeta holds the string denoting the devicemeta field in the database. FieldDeviceMeta = "device_meta" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the device in the database. Table = "devices" // UserTable is the table that holds the user relation/edge. UserTable = "devices" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_devices" )
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldIdentifier, FieldChannel, FieldChannelMeta, FieldChannelToken, FieldDeviceName, FieldDeviceMeta, }
Columns holds all SQL columns for device fields.
var ForeignKeys = []string{
"user_devices",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "devices" table and are not defined as standalone fields in the schema.
Functions ¶
func Channel ¶
Channel applies equality check predicate on the "channel" field. It's identical to ChannelEQ.
func ChannelContains ¶
ChannelContains applies the Contains predicate on the "channel" field.
func ChannelContainsFold ¶
ChannelContainsFold applies the ContainsFold predicate on the "channel" field.
func ChannelEqualFold ¶
ChannelEqualFold applies the EqualFold predicate on the "channel" field.
func ChannelGTE ¶
ChannelGTE applies the GTE predicate on the "channel" field.
func ChannelHasPrefix ¶
ChannelHasPrefix applies the HasPrefix predicate on the "channel" field.
func ChannelHasSuffix ¶
ChannelHasSuffix applies the HasSuffix predicate on the "channel" field.
func ChannelLTE ¶
ChannelLTE applies the LTE predicate on the "channel" field.
func ChannelMeta ¶
ChannelMeta applies equality check predicate on the "channelMeta" field. It's identical to ChannelMetaEQ.
func ChannelMetaContains ¶
ChannelMetaContains applies the Contains predicate on the "channelMeta" field.
func ChannelMetaContainsFold ¶
ChannelMetaContainsFold applies the ContainsFold predicate on the "channelMeta" field.
func ChannelMetaEQ ¶
ChannelMetaEQ applies the EQ predicate on the "channelMeta" field.
func ChannelMetaEqualFold ¶
ChannelMetaEqualFold applies the EqualFold predicate on the "channelMeta" field.
func ChannelMetaGT ¶
ChannelMetaGT applies the GT predicate on the "channelMeta" field.
func ChannelMetaGTE ¶
ChannelMetaGTE applies the GTE predicate on the "channelMeta" field.
func ChannelMetaHasPrefix ¶
ChannelMetaHasPrefix applies the HasPrefix predicate on the "channelMeta" field.
func ChannelMetaHasSuffix ¶
ChannelMetaHasSuffix applies the HasSuffix predicate on the "channelMeta" field.
func ChannelMetaIn ¶
ChannelMetaIn applies the In predicate on the "channelMeta" field.
func ChannelMetaLT ¶
ChannelMetaLT applies the LT predicate on the "channelMeta" field.
func ChannelMetaLTE ¶
ChannelMetaLTE applies the LTE predicate on the "channelMeta" field.
func ChannelMetaNEQ ¶
ChannelMetaNEQ applies the NEQ predicate on the "channelMeta" field.
func ChannelMetaNotIn ¶
ChannelMetaNotIn applies the NotIn predicate on the "channelMeta" field.
func ChannelNEQ ¶
ChannelNEQ applies the NEQ predicate on the "channel" field.
func ChannelNotIn ¶
ChannelNotIn applies the NotIn predicate on the "channel" field.
func ChannelToken ¶
ChannelToken applies equality check predicate on the "channelToken" field. It's identical to ChannelTokenEQ.
func ChannelTokenContains ¶
ChannelTokenContains applies the Contains predicate on the "channelToken" field.
func ChannelTokenContainsFold ¶
ChannelTokenContainsFold applies the ContainsFold predicate on the "channelToken" field.
func ChannelTokenEQ ¶
ChannelTokenEQ applies the EQ predicate on the "channelToken" field.
func ChannelTokenEqualFold ¶
ChannelTokenEqualFold applies the EqualFold predicate on the "channelToken" field.
func ChannelTokenGT ¶
ChannelTokenGT applies the GT predicate on the "channelToken" field.
func ChannelTokenGTE ¶
ChannelTokenGTE applies the GTE predicate on the "channelToken" field.
func ChannelTokenHasPrefix ¶
ChannelTokenHasPrefix applies the HasPrefix predicate on the "channelToken" field.
func ChannelTokenHasSuffix ¶
ChannelTokenHasSuffix applies the HasSuffix predicate on the "channelToken" field.
func ChannelTokenIn ¶
ChannelTokenIn applies the In predicate on the "channelToken" field.
func ChannelTokenLT ¶
ChannelTokenLT applies the LT predicate on the "channelToken" field.
func ChannelTokenLTE ¶
ChannelTokenLTE applies the LTE predicate on the "channelToken" field.
func ChannelTokenNEQ ¶
ChannelTokenNEQ applies the NEQ predicate on the "channelToken" field.
func ChannelTokenNotIn ¶
ChannelTokenNotIn applies the NotIn predicate on the "channelToken" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeviceMeta ¶
DeviceMeta applies equality check predicate on the "deviceMeta" field. It's identical to DeviceMetaEQ.
func DeviceMetaContains ¶
DeviceMetaContains applies the Contains predicate on the "deviceMeta" field.
func DeviceMetaContainsFold ¶
DeviceMetaContainsFold applies the ContainsFold predicate on the "deviceMeta" field.
func DeviceMetaEQ ¶
DeviceMetaEQ applies the EQ predicate on the "deviceMeta" field.
func DeviceMetaEqualFold ¶
DeviceMetaEqualFold applies the EqualFold predicate on the "deviceMeta" field.
func DeviceMetaGT ¶
DeviceMetaGT applies the GT predicate on the "deviceMeta" field.
func DeviceMetaGTE ¶
DeviceMetaGTE applies the GTE predicate on the "deviceMeta" field.
func DeviceMetaHasPrefix ¶
DeviceMetaHasPrefix applies the HasPrefix predicate on the "deviceMeta" field.
func DeviceMetaHasSuffix ¶
DeviceMetaHasSuffix applies the HasSuffix predicate on the "deviceMeta" field.
func DeviceMetaIn ¶
DeviceMetaIn applies the In predicate on the "deviceMeta" field.
func DeviceMetaLT ¶
DeviceMetaLT applies the LT predicate on the "deviceMeta" field.
func DeviceMetaLTE ¶
DeviceMetaLTE applies the LTE predicate on the "deviceMeta" field.
func DeviceMetaNEQ ¶
DeviceMetaNEQ applies the NEQ predicate on the "deviceMeta" field.
func DeviceMetaNotIn ¶
DeviceMetaNotIn applies the NotIn predicate on the "deviceMeta" field.
func DeviceName ¶
DeviceName applies equality check predicate on the "deviceName" field. It's identical to DeviceNameEQ.
func DeviceNameContains ¶
DeviceNameContains applies the Contains predicate on the "deviceName" field.
func DeviceNameContainsFold ¶
DeviceNameContainsFold applies the ContainsFold predicate on the "deviceName" field.
func DeviceNameEQ ¶
DeviceNameEQ applies the EQ predicate on the "deviceName" field.
func DeviceNameEqualFold ¶
DeviceNameEqualFold applies the EqualFold predicate on the "deviceName" field.
func DeviceNameGT ¶
DeviceNameGT applies the GT predicate on the "deviceName" field.
func DeviceNameGTE ¶
DeviceNameGTE applies the GTE predicate on the "deviceName" field.
func DeviceNameHasPrefix ¶
DeviceNameHasPrefix applies the HasPrefix predicate on the "deviceName" field.
func DeviceNameHasSuffix ¶
DeviceNameHasSuffix applies the HasSuffix predicate on the "deviceName" field.
func DeviceNameIn ¶
DeviceNameIn applies the In predicate on the "deviceName" field.
func DeviceNameLT ¶
DeviceNameLT applies the LT predicate on the "deviceName" field.
func DeviceNameLTE ¶
DeviceNameLTE applies the LTE predicate on the "deviceName" field.
func DeviceNameNEQ ¶
DeviceNameNEQ applies the NEQ predicate on the "deviceName" field.
func DeviceNameNotIn ¶
DeviceNameNotIn applies the NotIn predicate on the "deviceName" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Identifier ¶
Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.
func IdentifierContains ¶
IdentifierContains applies the Contains predicate on the "identifier" field.
func IdentifierContainsFold ¶
IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.
func IdentifierEQ ¶
IdentifierEQ applies the EQ predicate on the "identifier" field.
func IdentifierEqualFold ¶
IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.
func IdentifierGT ¶
IdentifierGT applies the GT predicate on the "identifier" field.
func IdentifierGTE ¶
IdentifierGTE applies the GTE predicate on the "identifier" field.
func IdentifierHasPrefix ¶
IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.
func IdentifierHasSuffix ¶
IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.
func IdentifierIn ¶
IdentifierIn applies the In predicate on the "identifier" field.
func IdentifierLT ¶
IdentifierLT applies the LT predicate on the "identifier" field.
func IdentifierLTE ¶
IdentifierLTE applies the LTE predicate on the "identifier" field.
func IdentifierNEQ ¶
IdentifierNEQ applies the NEQ predicate on the "identifier" field.
func IdentifierNotIn ¶
IdentifierNotIn applies the NotIn predicate on the "identifier" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 ¶
This section is empty.