device

package
v0.0.0-...-d2e3589 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for device fields.

View Source
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 And

func And(predicates ...predicate.Device) predicate.Device

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Device

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Device

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Device

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Device

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Device

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Device

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Device

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Device

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Device

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeviceID

func DeviceID(v string) predicate.Device

DeviceID applies equality check predicate on the "device_id" field. It's identical to DeviceIDEQ.

func DeviceIDContains

func DeviceIDContains(v string) predicate.Device

DeviceIDContains applies the Contains predicate on the "device_id" field.

func DeviceIDContainsFold

func DeviceIDContainsFold(v string) predicate.Device

DeviceIDContainsFold applies the ContainsFold predicate on the "device_id" field.

func DeviceIDEQ

func DeviceIDEQ(v string) predicate.Device

DeviceIDEQ applies the EQ predicate on the "device_id" field.

func DeviceIDEqualFold

func DeviceIDEqualFold(v string) predicate.Device

DeviceIDEqualFold applies the EqualFold predicate on the "device_id" field.

func DeviceIDGT

func DeviceIDGT(v string) predicate.Device

DeviceIDGT applies the GT predicate on the "device_id" field.

func DeviceIDGTE

func DeviceIDGTE(v string) predicate.Device

DeviceIDGTE applies the GTE predicate on the "device_id" field.

func DeviceIDHasPrefix

func DeviceIDHasPrefix(v string) predicate.Device

DeviceIDHasPrefix applies the HasPrefix predicate on the "device_id" field.

func DeviceIDHasSuffix

func DeviceIDHasSuffix(v string) predicate.Device

DeviceIDHasSuffix applies the HasSuffix predicate on the "device_id" field.

func DeviceIDIn

func DeviceIDIn(vs ...string) predicate.Device

DeviceIDIn applies the In predicate on the "device_id" field.

func DeviceIDLT

func DeviceIDLT(v string) predicate.Device

DeviceIDLT applies the LT predicate on the "device_id" field.

func DeviceIDLTE

func DeviceIDLTE(v string) predicate.Device

DeviceIDLTE applies the LTE predicate on the "device_id" field.

func DeviceIDNEQ

func DeviceIDNEQ(v string) predicate.Device

DeviceIDNEQ applies the NEQ predicate on the "device_id" field.

func DeviceIDNotIn

func DeviceIDNotIn(vs ...string) predicate.Device

DeviceIDNotIn applies the NotIn predicate on the "device_id" field.

func HasOwner

func HasOwner() predicate.Device

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Device

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func Hash

func Hash(v string) predicate.Device

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Device

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Device

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Device

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Device

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Device

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Device

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Device

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Device

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Device

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Device

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Device

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Device

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Device

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id uuid.UUID) predicate.Device

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Device

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Device

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Device

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Device

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Device

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Device

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Device

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Device

IDNotIn applies the NotIn predicate on the ID field.

func Language

func Language(v string) predicate.Device

Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.

func LanguageContains

func LanguageContains(v string) predicate.Device

LanguageContains applies the Contains predicate on the "language" field.

func LanguageContainsFold

func LanguageContainsFold(v string) predicate.Device

LanguageContainsFold applies the ContainsFold predicate on the "language" field.

func LanguageEQ

func LanguageEQ(v string) predicate.Device

LanguageEQ applies the EQ predicate on the "language" field.

func LanguageEqualFold

func LanguageEqualFold(v string) predicate.Device

LanguageEqualFold applies the EqualFold predicate on the "language" field.

func LanguageGT

func LanguageGT(v string) predicate.Device

LanguageGT applies the GT predicate on the "language" field.

func LanguageGTE

func LanguageGTE(v string) predicate.Device

LanguageGTE applies the GTE predicate on the "language" field.

func LanguageHasPrefix

func LanguageHasPrefix(v string) predicate.Device

LanguageHasPrefix applies the HasPrefix predicate on the "language" field.

func LanguageHasSuffix

func LanguageHasSuffix(v string) predicate.Device

LanguageHasSuffix applies the HasSuffix predicate on the "language" field.

func LanguageIn

func LanguageIn(vs ...string) predicate.Device

LanguageIn applies the In predicate on the "language" field.

func LanguageLT

func LanguageLT(v string) predicate.Device

LanguageLT applies the LT predicate on the "language" field.

func LanguageLTE

func LanguageLTE(v string) predicate.Device

LanguageLTE applies the LTE predicate on the "language" field.

func LanguageNEQ

func LanguageNEQ(v string) predicate.Device

LanguageNEQ applies the NEQ predicate on the "language" field.

func LanguageNotIn

func LanguageNotIn(vs ...string) predicate.Device

LanguageNotIn applies the NotIn predicate on the "language" field.

func LastSeen

func LastSeen(v time.Time) predicate.Device

LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v time.Time) predicate.Device

LastSeenEQ applies the EQ predicate on the "last_seen" field.

func LastSeenGT

func LastSeenGT(v time.Time) predicate.Device

LastSeenGT applies the GT predicate on the "last_seen" field.

func LastSeenGTE

func LastSeenGTE(v time.Time) predicate.Device

LastSeenGTE applies the GTE predicate on the "last_seen" field.

func LastSeenIn

func LastSeenIn(vs ...time.Time) predicate.Device

LastSeenIn applies the In predicate on the "last_seen" field.

func LastSeenLT

func LastSeenLT(v time.Time) predicate.Device

LastSeenLT applies the LT predicate on the "last_seen" field.

func LastSeenLTE

func LastSeenLTE(v time.Time) predicate.Device

LastSeenLTE applies the LTE predicate on the "last_seen" field.

func LastSeenNEQ

func LastSeenNEQ(v time.Time) predicate.Device

LastSeenNEQ applies the NEQ predicate on the "last_seen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...time.Time) predicate.Device

LastSeenNotIn applies the NotIn predicate on the "last_seen" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Device) predicate.Device

Or groups predicates with the OR operator between them.

func Platform

func Platform(v string) predicate.Device

Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.

func PlatformContains

func PlatformContains(v string) predicate.Device

PlatformContains applies the Contains predicate on the "platform" field.

func PlatformContainsFold

func PlatformContainsFold(v string) predicate.Device

PlatformContainsFold applies the ContainsFold predicate on the "platform" field.

func PlatformEQ

func PlatformEQ(v string) predicate.Device

PlatformEQ applies the EQ predicate on the "platform" field.

func PlatformEqualFold

func PlatformEqualFold(v string) predicate.Device

PlatformEqualFold applies the EqualFold predicate on the "platform" field.

func PlatformGT

func PlatformGT(v string) predicate.Device

PlatformGT applies the GT predicate on the "platform" field.

func PlatformGTE

func PlatformGTE(v string) predicate.Device

PlatformGTE applies the GTE predicate on the "platform" field.

func PlatformHasPrefix

func PlatformHasPrefix(v string) predicate.Device

PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.

func PlatformHasSuffix

func PlatformHasSuffix(v string) predicate.Device

PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.

func PlatformIn

func PlatformIn(vs ...string) predicate.Device

PlatformIn applies the In predicate on the "platform" field.

func PlatformLT

func PlatformLT(v string) predicate.Device

PlatformLT applies the LT predicate on the "platform" field.

func PlatformLTE

func PlatformLTE(v string) predicate.Device

PlatformLTE applies the LTE predicate on the "platform" field.

func PlatformNEQ

func PlatformNEQ(v string) predicate.Device

PlatformNEQ applies the NEQ predicate on the "platform" field.

func PlatformNotIn

func PlatformNotIn(vs ...string) predicate.Device

PlatformNotIn applies the NotIn predicate on the "platform" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Device

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Device

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Device

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Device

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Device

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Device

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Device

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Device

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Device

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL