graph

package
v0.0.0-...-2eeffc0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the graph type in the database.
	Label = "graph"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldUnit holds the string denoting the unit field in the database.
	FieldUnit = "unit"

	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeMetrics holds the string denoting the metrics edge name in mutations.
	EdgeMetrics = "metrics"

	// Table holds the table name of the graph in the database.
	Table = "graphs"
	// GroupTable is the table the holds the group relation/edge.
	GroupTable = "graphs"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "group_graphs"
	// MetricsTable is the table the holds the metrics relation/edge.
	MetricsTable = "metrics"
	// MetricsInverseTable is the table name for the Metric entity.
	// It exists in this package in order to avoid circular dependency with the "metric" package.
	MetricsInverseTable = "metrics"
	// MetricsColumn is the table column denoting the metrics relation/edge.
	MetricsColumn = "graph_metrics"
)

Variables

Columns holds all SQL columns for graph fields.

View Source
var ForeignKeys = []string{
	"group_graphs",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Graph type.

Functions

func And

func And(predicates ...predicate.Graph) predicate.Graph

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

func HasGroup

func HasGroup() predicate.Graph

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

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Graph

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

func HasMetrics

func HasMetrics() predicate.Graph

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

func HasMetricsWith

func HasMetricsWith(preds ...predicate.Metric) predicate.Graph

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

func ID

func ID(id int) predicate.Graph

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Graph

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Graph

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Graph

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Graph

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Graph

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Graph

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

func Title

func Title(v string) predicate.Graph

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Graph

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Graph

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Graph

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Graph

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Graph

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Graph

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Graph

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Graph

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Graph

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Graph

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Graph

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Graph

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Graph

TitleNotIn applies the NotIn predicate on the "title" field.

func Unit

func Unit(v string) predicate.Graph

Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.

func UnitContains

func UnitContains(v string) predicate.Graph

UnitContains applies the Contains predicate on the "unit" field.

func UnitContainsFold

func UnitContainsFold(v string) predicate.Graph

UnitContainsFold applies the ContainsFold predicate on the "unit" field.

func UnitEQ

func UnitEQ(v string) predicate.Graph

UnitEQ applies the EQ predicate on the "unit" field.

func UnitEqualFold

func UnitEqualFold(v string) predicate.Graph

UnitEqualFold applies the EqualFold predicate on the "unit" field.

func UnitGT

func UnitGT(v string) predicate.Graph

UnitGT applies the GT predicate on the "unit" field.

func UnitGTE

func UnitGTE(v string) predicate.Graph

UnitGTE applies the GTE predicate on the "unit" field.

func UnitHasPrefix

func UnitHasPrefix(v string) predicate.Graph

UnitHasPrefix applies the HasPrefix predicate on the "unit" field.

func UnitHasSuffix

func UnitHasSuffix(v string) predicate.Graph

UnitHasSuffix applies the HasSuffix predicate on the "unit" field.

func UnitIn

func UnitIn(vs ...string) predicate.Graph

UnitIn applies the In predicate on the "unit" field.

func UnitLT

func UnitLT(v string) predicate.Graph

UnitLT applies the LT predicate on the "unit" field.

func UnitLTE

func UnitLTE(v string) predicate.Graph

UnitLTE applies the LTE predicate on the "unit" field.

func UnitNEQ

func UnitNEQ(v string) predicate.Graph

UnitNEQ applies the NEQ predicate on the "unit" field.

func UnitNotIn

func UnitNotIn(vs ...string) predicate.Graph

UnitNotIn applies the NotIn predicate on the "unit" 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