devicetype

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the devicetype type in the database.
	Label = "device_type"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeviceTypeName holds the string denoting the device_type_name field in the database.
	FieldDeviceTypeName = "device_type_name"
	// EdgeTypes holds the string denoting the types edge name in mutations.
	EdgeTypes = "types"
	// Table holds the table name of the devicetype in the database.
	Table = "device_types"
	// TypesTable is the table the holds the types relation/edge.
	TypesTable = "devices"
	// TypesInverseTable is the table name for the Device entity.
	// It exists in this package in order to avoid circular dependency with the "device" package.
	TypesInverseTable = "devices"
	// TypesColumn is the table column denoting the types relation/edge.
	TypesColumn = "device_type_types"
)

Variables

Columns holds all SQL columns for devicetype fields.

View Source
var (
	// DeviceTypeNameValidator is a validator for the "device_type_name" field. It is called by the builders before save.
	DeviceTypeNameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.DeviceType) predicate.DeviceType

And groups predicates with the AND operator between them.

func DeviceTypeName

func DeviceTypeName(v string) predicate.DeviceType

DeviceTypeName applies equality check predicate on the "device_type_name" field. It's identical to DeviceTypeNameEQ.

func DeviceTypeNameContains

func DeviceTypeNameContains(v string) predicate.DeviceType

DeviceTypeNameContains applies the Contains predicate on the "device_type_name" field.

func DeviceTypeNameContainsFold

func DeviceTypeNameContainsFold(v string) predicate.DeviceType

DeviceTypeNameContainsFold applies the ContainsFold predicate on the "device_type_name" field.

func DeviceTypeNameEQ

func DeviceTypeNameEQ(v string) predicate.DeviceType

DeviceTypeNameEQ applies the EQ predicate on the "device_type_name" field.

func DeviceTypeNameEqualFold

func DeviceTypeNameEqualFold(v string) predicate.DeviceType

DeviceTypeNameEqualFold applies the EqualFold predicate on the "device_type_name" field.

func DeviceTypeNameGT

func DeviceTypeNameGT(v string) predicate.DeviceType

DeviceTypeNameGT applies the GT predicate on the "device_type_name" field.

func DeviceTypeNameGTE

func DeviceTypeNameGTE(v string) predicate.DeviceType

DeviceTypeNameGTE applies the GTE predicate on the "device_type_name" field.

func DeviceTypeNameHasPrefix

func DeviceTypeNameHasPrefix(v string) predicate.DeviceType

DeviceTypeNameHasPrefix applies the HasPrefix predicate on the "device_type_name" field.

func DeviceTypeNameHasSuffix

func DeviceTypeNameHasSuffix(v string) predicate.DeviceType

DeviceTypeNameHasSuffix applies the HasSuffix predicate on the "device_type_name" field.

func DeviceTypeNameIn

func DeviceTypeNameIn(vs ...string) predicate.DeviceType

DeviceTypeNameIn applies the In predicate on the "device_type_name" field.

func DeviceTypeNameLT

func DeviceTypeNameLT(v string) predicate.DeviceType

DeviceTypeNameLT applies the LT predicate on the "device_type_name" field.

func DeviceTypeNameLTE

func DeviceTypeNameLTE(v string) predicate.DeviceType

DeviceTypeNameLTE applies the LTE predicate on the "device_type_name" field.

func DeviceTypeNameNEQ

func DeviceTypeNameNEQ(v string) predicate.DeviceType

DeviceTypeNameNEQ applies the NEQ predicate on the "device_type_name" field.

func DeviceTypeNameNotIn

func DeviceTypeNameNotIn(vs ...string) predicate.DeviceType

DeviceTypeNameNotIn applies the NotIn predicate on the "device_type_name" field.

func HasTypes

func HasTypes() predicate.DeviceType

HasTypes applies the HasEdge predicate on the "types" edge.

func HasTypesWith

func HasTypesWith(preds ...predicate.Device) predicate.DeviceType

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

func ID

func ID(id int) predicate.DeviceType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DeviceType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DeviceType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DeviceType

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DeviceType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DeviceType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DeviceType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.DeviceType) predicate.DeviceType

Or groups predicates with the OR operator between them.

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