device

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 2 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" // FieldDevice holds the string denoting the device vertex property in the database.
	FieldDevice = "device"

	// Table holds the table name of the device in the database.
	Table = "devices"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldDevice,
}

Columns holds all SQL columns for device fields.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func Device

func Device(v string) predicate.Device

Device applies equality check predicate on the "device" field. It's identical to DeviceEQ.

func DeviceContains

func DeviceContains(v string) predicate.Device

DeviceContains applies the Contains predicate on the "device" field.

func DeviceContainsFold

func DeviceContainsFold(v string) predicate.Device

DeviceContainsFold applies the ContainsFold predicate on the "device" field.

func DeviceEQ

func DeviceEQ(v string) predicate.Device

DeviceEQ applies the EQ predicate on the "device" field.

func DeviceEqualFold

func DeviceEqualFold(v string) predicate.Device

DeviceEqualFold applies the EqualFold predicate on the "device" field.

func DeviceGT

func DeviceGT(v string) predicate.Device

DeviceGT applies the GT predicate on the "device" field.

func DeviceGTE

func DeviceGTE(v string) predicate.Device

DeviceGTE applies the GTE predicate on the "device" field.

func DeviceHasPrefix

func DeviceHasPrefix(v string) predicate.Device

DeviceHasPrefix applies the HasPrefix predicate on the "device" field.

func DeviceHasSuffix

func DeviceHasSuffix(v string) predicate.Device

DeviceHasSuffix applies the HasSuffix predicate on the "device" field.

func DeviceIn

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

DeviceIn applies the In predicate on the "device" field.

func DeviceLT

func DeviceLT(v string) predicate.Device

DeviceLT applies the LT predicate on the "device" field.

func DeviceLTE

func DeviceLTE(v string) predicate.Device

DeviceLTE applies the LTE predicate on the "device" field.

func DeviceNEQ

func DeviceNEQ(v string) predicate.Device

DeviceNEQ applies the NEQ predicate on the "device" field.

func DeviceNotIn

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

DeviceNotIn applies the NotIn predicate on the "device" field.

func ID

func ID(id int) predicate.Device

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Device

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Device

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Device

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Device

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Device

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Device

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Device

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Device

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups list of predicates with the OR operator between them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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