Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Graph) predicate.Graph
- func HasGroup() predicate.Graph
- func HasGroupWith(preds ...predicate.Group) predicate.Graph
- func HasMetrics() predicate.Graph
- func HasMetricsWith(preds ...predicate.Metric) predicate.Graph
- func ID(id int) predicate.Graph
- func IDEQ(id int) predicate.Graph
- func IDGT(id int) predicate.Graph
- func IDGTE(id int) predicate.Graph
- func IDIn(ids ...int) predicate.Graph
- func IDLT(id int) predicate.Graph
- func IDLTE(id int) predicate.Graph
- func IDNEQ(id int) predicate.Graph
- func IDNotIn(ids ...int) predicate.Graph
- func Not(p predicate.Graph) predicate.Graph
- func Or(predicates ...predicate.Graph) predicate.Graph
- func Title(v string) predicate.Graph
- func TitleContains(v string) predicate.Graph
- func TitleContainsFold(v string) predicate.Graph
- func TitleEQ(v string) predicate.Graph
- func TitleEqualFold(v string) predicate.Graph
- func TitleGT(v string) predicate.Graph
- func TitleGTE(v string) predicate.Graph
- func TitleHasPrefix(v string) predicate.Graph
- func TitleHasSuffix(v string) predicate.Graph
- func TitleIn(vs ...string) predicate.Graph
- func TitleLT(v string) predicate.Graph
- func TitleLTE(v string) predicate.Graph
- func TitleNEQ(v string) predicate.Graph
- func TitleNotIn(vs ...string) predicate.Graph
- func Unit(v string) predicate.Graph
- func UnitContains(v string) predicate.Graph
- func UnitContainsFold(v string) predicate.Graph
- func UnitEQ(v string) predicate.Graph
- func UnitEqualFold(v string) predicate.Graph
- func UnitGT(v string) predicate.Graph
- func UnitGTE(v string) predicate.Graph
- func UnitHasPrefix(v string) predicate.Graph
- func UnitHasSuffix(v string) predicate.Graph
- func UnitIn(vs ...string) predicate.Graph
- func UnitLT(v string) predicate.Graph
- func UnitLTE(v string) predicate.Graph
- func UnitNEQ(v string) predicate.Graph
- func UnitNotIn(vs ...string) predicate.Graph
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldTitle, FieldUnit, }
Columns holds all SQL columns for graph fields.
var ForeignKeys = []string{
"group_graphs",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Graph type.
Functions ¶
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasMetrics ¶
HasMetrics applies the HasEdge predicate on the "metrics" edge.
func HasMetricsWith ¶
HasMetricsWith applies the HasEdge predicate on the "metrics" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func UnitContains ¶
UnitContains applies the Contains predicate on the "unit" field.
func UnitContainsFold ¶
UnitContainsFold applies the ContainsFold predicate on the "unit" field.
func UnitEqualFold ¶
UnitEqualFold applies the EqualFold predicate on the "unit" field.
func UnitHasPrefix ¶
UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
func UnitHasSuffix ¶
UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.