devices

package
v0.0.0-...-910bef7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the devices type in the database.
	Label = "devices"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// FieldDevice holds the string denoting the device field in the database.
	FieldDevice = "device"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the devices in the database.
	Table = "devices"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "devices"
	// UserInverseTable is the table name for the Users entity.
	// It exists in this package in order to avoid circular dependency with the "users" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "users_devices"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for devices fields.

View Source
var ForeignKeys = []string{
	"users_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.Devices) predicate.Devices

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Devices

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Devices

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Devices

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Devices

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Devices

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Devices

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Devices

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Devices

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Devices

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Device

func Device(v string) predicate.Devices

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

func DeviceContains

func DeviceContains(v string) predicate.Devices

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

func DeviceContainsFold

func DeviceContainsFold(v string) predicate.Devices

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

func DeviceEQ

func DeviceEQ(v string) predicate.Devices

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

func DeviceEqualFold

func DeviceEqualFold(v string) predicate.Devices

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

func DeviceGT

func DeviceGT(v string) predicate.Devices

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

func DeviceGTE

func DeviceGTE(v string) predicate.Devices

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

func DeviceHasPrefix

func DeviceHasPrefix(v string) predicate.Devices

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

func DeviceHasSuffix

func DeviceHasSuffix(v string) predicate.Devices

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

func DeviceIn

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

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

func DeviceLT

func DeviceLT(v string) predicate.Devices

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

func DeviceLTE

func DeviceLTE(v string) predicate.Devices

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

func DeviceNEQ

func DeviceNEQ(v string) predicate.Devices

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

func DeviceNotIn

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

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

func HasUser

func HasUser() predicate.Devices

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.Users) predicate.Devices

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

func ID

func ID(id uint64) predicate.Devices

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Devices

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Devices

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Devices

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Devices

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Devices

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Devices

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Devices

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Devices

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Devices

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.Devices

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.Devices

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

func IPEQ(v string) predicate.Devices

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.Devices

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

func IPGT(v string) predicate.Devices

IPGT applies the GT predicate on the "ip" field.

func IPGTE

func IPGTE(v string) predicate.Devices

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.Devices

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.Devices

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.Devices

IPIn applies the In predicate on the "ip" field.

func IPLT

func IPLT(v string) predicate.Devices

IPLT applies the LT predicate on the "ip" field.

func IPLTE

func IPLTE(v string) predicate.Devices

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

func IPNEQ(v string) predicate.Devices

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.Devices

IPNotIn applies the NotIn predicate on the "ip" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Devices) predicate.Devices

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Devices

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Devices

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Devices

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Devices

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Devices

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Devices

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Devices

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Devices

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Devices

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Devices queries.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByDevice

func ByDevice(opts ...sql.OrderTermOption) OrderOption

ByDevice orders the results by the device field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIP

func ByIP(opts ...sql.OrderTermOption) OrderOption

ByIP orders the results by the ip field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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