Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Device) 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 DeviceID(v string) predicate.Device
- func DeviceIDContains(v string) predicate.Device
- func DeviceIDContainsFold(v string) predicate.Device
- func DeviceIDEQ(v string) predicate.Device
- func DeviceIDEqualFold(v string) predicate.Device
- func DeviceIDGT(v string) predicate.Device
- func DeviceIDGTE(v string) predicate.Device
- func DeviceIDHasPrefix(v string) predicate.Device
- func DeviceIDHasSuffix(v string) predicate.Device
- func DeviceIDIn(vs ...string) predicate.Device
- func DeviceIDLT(v string) predicate.Device
- func DeviceIDLTE(v string) predicate.Device
- func DeviceIDNEQ(v string) predicate.Device
- func DeviceIDNotIn(vs ...string) predicate.Device
- func HasOwner() predicate.Device
- func HasOwnerWith(preds ...predicate.User) predicate.Device
- func Hash(v string) predicate.Device
- func HashContains(v string) predicate.Device
- func HashContainsFold(v string) predicate.Device
- func HashEQ(v string) predicate.Device
- func HashEqualFold(v string) predicate.Device
- func HashGT(v string) predicate.Device
- func HashGTE(v string) predicate.Device
- func HashHasPrefix(v string) predicate.Device
- func HashHasSuffix(v string) predicate.Device
- func HashIn(vs ...string) predicate.Device
- func HashLT(v string) predicate.Device
- func HashLTE(v string) predicate.Device
- func HashNEQ(v string) predicate.Device
- func HashNotIn(vs ...string) predicate.Device
- func ID(id uuid.UUID) predicate.Device
- func IDEQ(id uuid.UUID) predicate.Device
- func IDGT(id uuid.UUID) predicate.Device
- func IDGTE(id uuid.UUID) predicate.Device
- func IDIn(ids ...uuid.UUID) predicate.Device
- func IDLT(id uuid.UUID) predicate.Device
- func IDLTE(id uuid.UUID) predicate.Device
- func IDNEQ(id uuid.UUID) predicate.Device
- func IDNotIn(ids ...uuid.UUID) predicate.Device
- func Language(v string) predicate.Device
- func LanguageContains(v string) predicate.Device
- func LanguageContainsFold(v string) predicate.Device
- func LanguageEQ(v string) predicate.Device
- func LanguageEqualFold(v string) predicate.Device
- func LanguageGT(v string) predicate.Device
- func LanguageGTE(v string) predicate.Device
- func LanguageHasPrefix(v string) predicate.Device
- func LanguageHasSuffix(v string) predicate.Device
- func LanguageIn(vs ...string) predicate.Device
- func LanguageLT(v string) predicate.Device
- func LanguageLTE(v string) predicate.Device
- func LanguageNEQ(v string) predicate.Device
- func LanguageNotIn(vs ...string) predicate.Device
- func LastSeen(v time.Time) predicate.Device
- func LastSeenEQ(v time.Time) predicate.Device
- func LastSeenGT(v time.Time) predicate.Device
- func LastSeenGTE(v time.Time) predicate.Device
- func LastSeenIn(vs ...time.Time) predicate.Device
- func LastSeenLT(v time.Time) predicate.Device
- func LastSeenLTE(v time.Time) predicate.Device
- func LastSeenNEQ(v time.Time) predicate.Device
- func LastSeenNotIn(vs ...time.Time) predicate.Device
- func Not(p predicate.Device) predicate.Device
- func Or(predicates ...predicate.Device) predicate.Device
- func Platform(v string) predicate.Device
- func PlatformContains(v string) predicate.Device
- func PlatformContainsFold(v string) predicate.Device
- func PlatformEQ(v string) predicate.Device
- func PlatformEqualFold(v string) predicate.Device
- func PlatformGT(v string) predicate.Device
- func PlatformGTE(v string) predicate.Device
- func PlatformHasPrefix(v string) predicate.Device
- func PlatformHasSuffix(v string) predicate.Device
- func PlatformIn(vs ...string) predicate.Device
- func PlatformLT(v string) predicate.Device
- func PlatformLTE(v string) predicate.Device
- func PlatformNEQ(v string) predicate.Device
- func PlatformNotIn(vs ...string) 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" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldDeviceID holds the string denoting the device_id field in the database. FieldDeviceID = "device_id" // FieldPlatform holds the string denoting the platform field in the database. FieldPlatform = "platform" // FieldLastSeen holds the string denoting the last_seen field in the database. FieldLastSeen = "last_seen" // FieldLanguage holds the string denoting the language field in the database. FieldLanguage = "language" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the device in the database. Table = "devices" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "devices" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "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 time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldHash, FieldDeviceID, FieldPlatform, FieldLastSeen, FieldLanguage, }
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 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 DeviceID ¶
DeviceID applies equality check predicate on the "device_id" field. It's identical to DeviceIDEQ.
func DeviceIDContains ¶
DeviceIDContains applies the Contains predicate on the "device_id" field.
func DeviceIDContainsFold ¶
DeviceIDContainsFold applies the ContainsFold predicate on the "device_id" field.
func DeviceIDEQ ¶
DeviceIDEQ applies the EQ predicate on the "device_id" field.
func DeviceIDEqualFold ¶
DeviceIDEqualFold applies the EqualFold predicate on the "device_id" field.
func DeviceIDGT ¶
DeviceIDGT applies the GT predicate on the "device_id" field.
func DeviceIDGTE ¶
DeviceIDGTE applies the GTE predicate on the "device_id" field.
func DeviceIDHasPrefix ¶
DeviceIDHasPrefix applies the HasPrefix predicate on the "device_id" field.
func DeviceIDHasSuffix ¶
DeviceIDHasSuffix applies the HasSuffix predicate on the "device_id" field.
func DeviceIDIn ¶
DeviceIDIn applies the In predicate on the "device_id" field.
func DeviceIDLT ¶
DeviceIDLT applies the LT predicate on the "device_id" field.
func DeviceIDLTE ¶
DeviceIDLTE applies the LTE predicate on the "device_id" field.
func DeviceIDNEQ ¶
DeviceIDNEQ applies the NEQ predicate on the "device_id" field.
func DeviceIDNotIn ¶
DeviceIDNotIn applies the NotIn predicate on the "device_id" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Language ¶
Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.
func LanguageContains ¶
LanguageContains applies the Contains predicate on the "language" field.
func LanguageContainsFold ¶
LanguageContainsFold applies the ContainsFold predicate on the "language" field.
func LanguageEQ ¶
LanguageEQ applies the EQ predicate on the "language" field.
func LanguageEqualFold ¶
LanguageEqualFold applies the EqualFold predicate on the "language" field.
func LanguageGT ¶
LanguageGT applies the GT predicate on the "language" field.
func LanguageGTE ¶
LanguageGTE applies the GTE predicate on the "language" field.
func LanguageHasPrefix ¶
LanguageHasPrefix applies the HasPrefix predicate on the "language" field.
func LanguageHasSuffix ¶
LanguageHasSuffix applies the HasSuffix predicate on the "language" field.
func LanguageIn ¶
LanguageIn applies the In predicate on the "language" field.
func LanguageLT ¶
LanguageLT applies the LT predicate on the "language" field.
func LanguageLTE ¶
LanguageLTE applies the LTE predicate on the "language" field.
func LanguageNEQ ¶
LanguageNEQ applies the NEQ predicate on the "language" field.
func LanguageNotIn ¶
LanguageNotIn applies the NotIn predicate on the "language" field.
func LastSeen ¶
LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "last_seen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "last_seen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "last_seen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "last_seen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "last_seen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "last_seen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "last_seen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "last_seen" field.
func Platform ¶
Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.
func PlatformContains ¶
PlatformContains applies the Contains predicate on the "platform" field.
func PlatformContainsFold ¶
PlatformContainsFold applies the ContainsFold predicate on the "platform" field.
func PlatformEQ ¶
PlatformEQ applies the EQ predicate on the "platform" field.
func PlatformEqualFold ¶
PlatformEqualFold applies the EqualFold predicate on the "platform" field.
func PlatformGT ¶
PlatformGT applies the GT predicate on the "platform" field.
func PlatformGTE ¶
PlatformGTE applies the GTE predicate on the "platform" field.
func PlatformHasPrefix ¶
PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.
func PlatformHasSuffix ¶
PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.
func PlatformIn ¶
PlatformIn applies the In predicate on the "platform" field.
func PlatformLT ¶
PlatformLT applies the LT predicate on the "platform" field.
func PlatformLTE ¶
PlatformLTE applies the LTE predicate on the "platform" field.
func PlatformNEQ ¶
PlatformNEQ applies the NEQ predicate on the "platform" field.
func PlatformNotIn ¶
PlatformNotIn applies the NotIn predicate on the "platform" 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.