nettopologydevicemap

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 nettopologydevicemap type in the database.
	Label = "net_topology_device_map"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPositionX holds the string denoting the position_x field in the database.
	FieldPositionX = "position_x"
	// FieldPositionY holds the string denoting the position_y field in the database.
	FieldPositionY = "position_y"
	// EdgeOnTopology holds the string denoting the on_topology edge name in mutations.
	EdgeOnTopology = "on_topology"
	// EdgeDevice holds the string denoting the device edge name in mutations.
	EdgeDevice = "device"
	// EdgeEdge holds the string denoting the edge edge name in mutations.
	EdgeEdge = "edge"
	// Table holds the table name of the nettopologydevicemap in the database.
	Table = "net_topology_device_maps"
	// OnTopologyTable is the table the holds the on_topology relation/edge.
	OnTopologyTable = "net_topology_device_maps"
	// OnTopologyInverseTable is the table name for the NetTopology entity.
	// It exists in this package in order to avoid circular dependency with the "nettopology" package.
	OnTopologyInverseTable = "net_topologies"
	// OnTopologyColumn is the table column denoting the on_topology relation/edge.
	OnTopologyColumn = "net_topology_topology"
	// DeviceTable is the table the holds the device relation/edge.
	DeviceTable = "net_topology_device_maps"
	// DeviceInverseTable is the table name for the Device entity.
	// It exists in this package in order to avoid circular dependency with the "device" package.
	DeviceInverseTable = "devices"
	// DeviceColumn is the table column denoting the device relation/edge.
	DeviceColumn = "device_in_topology"
	// EdgeTable is the table the holds the edge relation/edge. The primary key declared below.
	EdgeTable = "net_topology_device_map_edge"
)

Variables

View Source
var (
	// DefaultPositionX holds the default value on creation for the "position_x" field.
	DefaultPositionX int
	// DefaultPositionY holds the default value on creation for the "position_y" field.
	DefaultPositionY int
)

Columns holds all SQL columns for nettopologydevicemap fields.

View Source
var (
	// EdgePrimaryKey and EdgeColumn2 are the table columns denoting the
	// primary key for the edge relation (M2M).
	EdgePrimaryKey = []string{"net_topology_device_map_id", "edge_id"}
)
View Source
var ForeignKeys = []string{
	"device_in_topology",
	"net_topology_topology",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "net_topology_device_maps" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasDevice

func HasDevice() predicate.NetTopologyDeviceMap

HasDevice applies the HasEdge predicate on the "device" edge.

func HasDeviceWith

func HasDeviceWith(preds ...predicate.Device) predicate.NetTopologyDeviceMap

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

func HasEdge

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

func HasEdgeWith

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

func HasOnTopology

func HasOnTopology() predicate.NetTopologyDeviceMap

HasOnTopology applies the HasEdge predicate on the "on_topology" edge.

func HasOnTopologyWith

func HasOnTopologyWith(preds ...predicate.NetTopology) predicate.NetTopologyDeviceMap

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PositionX

func PositionX(v int) predicate.NetTopologyDeviceMap

PositionX applies equality check predicate on the "position_x" field. It's identical to PositionXEQ.

func PositionXEQ

func PositionXEQ(v int) predicate.NetTopologyDeviceMap

PositionXEQ applies the EQ predicate on the "position_x" field.

func PositionXGT

func PositionXGT(v int) predicate.NetTopologyDeviceMap

PositionXGT applies the GT predicate on the "position_x" field.

func PositionXGTE

func PositionXGTE(v int) predicate.NetTopologyDeviceMap

PositionXGTE applies the GTE predicate on the "position_x" field.

func PositionXIn

func PositionXIn(vs ...int) predicate.NetTopologyDeviceMap

PositionXIn applies the In predicate on the "position_x" field.

func PositionXLT

func PositionXLT(v int) predicate.NetTopologyDeviceMap

PositionXLT applies the LT predicate on the "position_x" field.

func PositionXLTE

func PositionXLTE(v int) predicate.NetTopologyDeviceMap

PositionXLTE applies the LTE predicate on the "position_x" field.

func PositionXNEQ

func PositionXNEQ(v int) predicate.NetTopologyDeviceMap

PositionXNEQ applies the NEQ predicate on the "position_x" field.

func PositionXNotIn

func PositionXNotIn(vs ...int) predicate.NetTopologyDeviceMap

PositionXNotIn applies the NotIn predicate on the "position_x" field.

func PositionY

func PositionY(v int) predicate.NetTopologyDeviceMap

PositionY applies equality check predicate on the "position_y" field. It's identical to PositionYEQ.

func PositionYEQ

func PositionYEQ(v int) predicate.NetTopologyDeviceMap

PositionYEQ applies the EQ predicate on the "position_y" field.

func PositionYGT

func PositionYGT(v int) predicate.NetTopologyDeviceMap

PositionYGT applies the GT predicate on the "position_y" field.

func PositionYGTE

func PositionYGTE(v int) predicate.NetTopologyDeviceMap

PositionYGTE applies the GTE predicate on the "position_y" field.

func PositionYIn

func PositionYIn(vs ...int) predicate.NetTopologyDeviceMap

PositionYIn applies the In predicate on the "position_y" field.

func PositionYLT

func PositionYLT(v int) predicate.NetTopologyDeviceMap

PositionYLT applies the LT predicate on the "position_y" field.

func PositionYLTE

func PositionYLTE(v int) predicate.NetTopologyDeviceMap

PositionYLTE applies the LTE predicate on the "position_y" field.

func PositionYNEQ

func PositionYNEQ(v int) predicate.NetTopologyDeviceMap

PositionYNEQ applies the NEQ predicate on the "position_y" field.

func PositionYNotIn

func PositionYNotIn(vs ...int) predicate.NetTopologyDeviceMap

PositionYNotIn applies the NotIn predicate on the "position_y" 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