Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Metrics) predicate.Metrics
- func HasActionSummary() predicate.Metrics
- func HasActionSummaryWith(preds ...predicate.ActionSummary) predicate.Metrics
- func HasArtifactMetrics() predicate.Metrics
- func HasArtifactMetricsWith(preds ...predicate.ArtifactMetrics) predicate.Metrics
- func HasBazelInvocation() predicate.Metrics
- func HasBazelInvocationWith(preds ...predicate.BazelInvocation) predicate.Metrics
- func HasBuildGraphMetrics() predicate.Metrics
- func HasBuildGraphMetricsWith(preds ...predicate.BuildGraphMetrics) predicate.Metrics
- func HasCumulativeMetrics() predicate.Metrics
- func HasCumulativeMetricsWith(preds ...predicate.CumulativeMetrics) predicate.Metrics
- func HasDynamicExecutionMetrics() predicate.Metrics
- func HasDynamicExecutionMetricsWith(preds ...predicate.DynamicExecutionMetrics) predicate.Metrics
- func HasMemoryMetrics() predicate.Metrics
- func HasMemoryMetricsWith(preds ...predicate.MemoryMetrics) predicate.Metrics
- func HasNetworkMetrics() predicate.Metrics
- func HasNetworkMetricsWith(preds ...predicate.NetworkMetrics) predicate.Metrics
- func HasPackageMetrics() predicate.Metrics
- func HasPackageMetricsWith(preds ...predicate.PackageMetrics) predicate.Metrics
- func HasTargetMetrics() predicate.Metrics
- func HasTargetMetricsWith(preds ...predicate.TargetMetrics) predicate.Metrics
- func HasTimingMetrics() predicate.Metrics
- func HasTimingMetricsWith(preds ...predicate.TimingMetrics) predicate.Metrics
- func ID(id int) predicate.Metrics
- func IDEQ(id int) predicate.Metrics
- func IDGT(id int) predicate.Metrics
- func IDGTE(id int) predicate.Metrics
- func IDIn(ids ...int) predicate.Metrics
- func IDLT(id int) predicate.Metrics
- func IDLTE(id int) predicate.Metrics
- func IDNEQ(id int) predicate.Metrics
- func IDNotIn(ids ...int) predicate.Metrics
- func Not(p predicate.Metrics) predicate.Metrics
- func Or(predicates ...predicate.Metrics) predicate.Metrics
- func ValidColumn(column string) bool
- type OrderOption
- func ByActionSummaryField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByArtifactMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBazelInvocationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBuildGraphMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCumulativeMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDynamicExecutionMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMemoryMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNetworkMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTargetMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTimingMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the metrics type in the database. Label = "metrics" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeBazelInvocation holds the string denoting the bazel_invocation edge name in mutations. EdgeBazelInvocation = "bazel_invocation" // EdgeActionSummary holds the string denoting the action_summary edge name in mutations. EdgeActionSummary = "action_summary" // EdgeMemoryMetrics holds the string denoting the memory_metrics edge name in mutations. EdgeMemoryMetrics = "memory_metrics" // EdgeTargetMetrics holds the string denoting the target_metrics edge name in mutations. EdgeTargetMetrics = "target_metrics" // EdgePackageMetrics holds the string denoting the package_metrics edge name in mutations. EdgePackageMetrics = "package_metrics" // EdgeTimingMetrics holds the string denoting the timing_metrics edge name in mutations. EdgeTimingMetrics = "timing_metrics" // EdgeCumulativeMetrics holds the string denoting the cumulative_metrics edge name in mutations. EdgeCumulativeMetrics = "cumulative_metrics" // EdgeArtifactMetrics holds the string denoting the artifact_metrics edge name in mutations. EdgeArtifactMetrics = "artifact_metrics" // EdgeNetworkMetrics holds the string denoting the network_metrics edge name in mutations. EdgeNetworkMetrics = "network_metrics" // EdgeDynamicExecutionMetrics holds the string denoting the dynamic_execution_metrics edge name in mutations. EdgeDynamicExecutionMetrics = "dynamic_execution_metrics" // EdgeBuildGraphMetrics holds the string denoting the build_graph_metrics edge name in mutations. EdgeBuildGraphMetrics = "build_graph_metrics" // Table holds the table name of the metrics in the database. Table = "metrics" // BazelInvocationTable is the table that holds the bazel_invocation relation/edge. BazelInvocationTable = "metrics" // BazelInvocationInverseTable is the table name for the BazelInvocation entity. // It exists in this package in order to avoid circular dependency with the "bazelinvocation" package. BazelInvocationInverseTable = "bazel_invocations" // BazelInvocationColumn is the table column denoting the bazel_invocation relation/edge. BazelInvocationColumn = "bazel_invocation_metrics" // ActionSummaryTable is the table that holds the action_summary relation/edge. ActionSummaryTable = "action_summaries" // ActionSummaryInverseTable is the table name for the ActionSummary entity. // It exists in this package in order to avoid circular dependency with the "actionsummary" package. ActionSummaryInverseTable = "action_summaries" // ActionSummaryColumn is the table column denoting the action_summary relation/edge. ActionSummaryColumn = "metrics_action_summary" // MemoryMetricsTable is the table that holds the memory_metrics relation/edge. MemoryMetricsTable = "memory_metrics" // MemoryMetricsInverseTable is the table name for the MemoryMetrics entity. // It exists in this package in order to avoid circular dependency with the "memorymetrics" package. MemoryMetricsInverseTable = "memory_metrics" // MemoryMetricsColumn is the table column denoting the memory_metrics relation/edge. MemoryMetricsColumn = "metrics_memory_metrics" // TargetMetricsTable is the table that holds the target_metrics relation/edge. TargetMetricsTable = "target_metrics" // TargetMetricsInverseTable is the table name for the TargetMetrics entity. // It exists in this package in order to avoid circular dependency with the "targetmetrics" package. TargetMetricsInverseTable = "target_metrics" // TargetMetricsColumn is the table column denoting the target_metrics relation/edge. TargetMetricsColumn = "metrics_target_metrics" // PackageMetricsTable is the table that holds the package_metrics relation/edge. PackageMetricsTable = "package_metrics" // PackageMetricsInverseTable is the table name for the PackageMetrics entity. // It exists in this package in order to avoid circular dependency with the "packagemetrics" package. PackageMetricsInverseTable = "package_metrics" // PackageMetricsColumn is the table column denoting the package_metrics relation/edge. PackageMetricsColumn = "metrics_package_metrics" // TimingMetricsTable is the table that holds the timing_metrics relation/edge. TimingMetricsTable = "timing_metrics" // TimingMetricsInverseTable is the table name for the TimingMetrics entity. // It exists in this package in order to avoid circular dependency with the "timingmetrics" package. TimingMetricsInverseTable = "timing_metrics" // TimingMetricsColumn is the table column denoting the timing_metrics relation/edge. TimingMetricsColumn = "metrics_timing_metrics" // CumulativeMetricsTable is the table that holds the cumulative_metrics relation/edge. CumulativeMetricsTable = "cumulative_metrics" // CumulativeMetricsInverseTable is the table name for the CumulativeMetrics entity. // It exists in this package in order to avoid circular dependency with the "cumulativemetrics" package. CumulativeMetricsInverseTable = "cumulative_metrics" // CumulativeMetricsColumn is the table column denoting the cumulative_metrics relation/edge. CumulativeMetricsColumn = "metrics_cumulative_metrics" // ArtifactMetricsTable is the table that holds the artifact_metrics relation/edge. ArtifactMetricsTable = "artifact_metrics" // ArtifactMetricsInverseTable is the table name for the ArtifactMetrics entity. // It exists in this package in order to avoid circular dependency with the "artifactmetrics" package. ArtifactMetricsInverseTable = "artifact_metrics" // ArtifactMetricsColumn is the table column denoting the artifact_metrics relation/edge. ArtifactMetricsColumn = "metrics_artifact_metrics" // NetworkMetricsTable is the table that holds the network_metrics relation/edge. NetworkMetricsTable = "network_metrics" // NetworkMetricsInverseTable is the table name for the NetworkMetrics entity. // It exists in this package in order to avoid circular dependency with the "networkmetrics" package. NetworkMetricsInverseTable = "network_metrics" // NetworkMetricsColumn is the table column denoting the network_metrics relation/edge. NetworkMetricsColumn = "metrics_network_metrics" // DynamicExecutionMetricsTable is the table that holds the dynamic_execution_metrics relation/edge. DynamicExecutionMetricsTable = "dynamic_execution_metrics" // DynamicExecutionMetricsInverseTable is the table name for the DynamicExecutionMetrics entity. // It exists in this package in order to avoid circular dependency with the "dynamicexecutionmetrics" package. DynamicExecutionMetricsInverseTable = "dynamic_execution_metrics" // DynamicExecutionMetricsColumn is the table column denoting the dynamic_execution_metrics relation/edge. DynamicExecutionMetricsColumn = "metrics_dynamic_execution_metrics" // BuildGraphMetricsTable is the table that holds the build_graph_metrics relation/edge. BuildGraphMetricsTable = "build_graph_metrics" // BuildGraphMetricsInverseTable is the table name for the BuildGraphMetrics entity. // It exists in this package in order to avoid circular dependency with the "buildgraphmetrics" package. BuildGraphMetricsInverseTable = "build_graph_metrics" // BuildGraphMetricsColumn is the table column denoting the build_graph_metrics relation/edge. BuildGraphMetricsColumn = "metrics_build_graph_metrics" )
Variables ¶
var Columns = []string{ FieldID, }
Columns holds all SQL columns for metrics fields.
var ForeignKeys = []string{
"bazel_invocation_metrics",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "metrics" table and are not defined as standalone fields in the schema.
Functions ¶
func HasActionSummary ¶
HasActionSummary applies the HasEdge predicate on the "action_summary" edge.
func HasActionSummaryWith ¶
func HasActionSummaryWith(preds ...predicate.ActionSummary) predicate.Metrics
HasActionSummaryWith applies the HasEdge predicate on the "action_summary" edge with a given conditions (other predicates).
func HasArtifactMetrics ¶
HasArtifactMetrics applies the HasEdge predicate on the "artifact_metrics" edge.
func HasArtifactMetricsWith ¶
func HasArtifactMetricsWith(preds ...predicate.ArtifactMetrics) predicate.Metrics
HasArtifactMetricsWith applies the HasEdge predicate on the "artifact_metrics" edge with a given conditions (other predicates).
func HasBazelInvocation ¶
HasBazelInvocation applies the HasEdge predicate on the "bazel_invocation" edge.
func HasBazelInvocationWith ¶
func HasBazelInvocationWith(preds ...predicate.BazelInvocation) predicate.Metrics
HasBazelInvocationWith applies the HasEdge predicate on the "bazel_invocation" edge with a given conditions (other predicates).
func HasBuildGraphMetrics ¶
HasBuildGraphMetrics applies the HasEdge predicate on the "build_graph_metrics" edge.
func HasBuildGraphMetricsWith ¶
func HasBuildGraphMetricsWith(preds ...predicate.BuildGraphMetrics) predicate.Metrics
HasBuildGraphMetricsWith applies the HasEdge predicate on the "build_graph_metrics" edge with a given conditions (other predicates).
func HasCumulativeMetrics ¶
HasCumulativeMetrics applies the HasEdge predicate on the "cumulative_metrics" edge.
func HasCumulativeMetricsWith ¶
func HasCumulativeMetricsWith(preds ...predicate.CumulativeMetrics) predicate.Metrics
HasCumulativeMetricsWith applies the HasEdge predicate on the "cumulative_metrics" edge with a given conditions (other predicates).
func HasDynamicExecutionMetrics ¶
HasDynamicExecutionMetrics applies the HasEdge predicate on the "dynamic_execution_metrics" edge.
func HasDynamicExecutionMetricsWith ¶
func HasDynamicExecutionMetricsWith(preds ...predicate.DynamicExecutionMetrics) predicate.Metrics
HasDynamicExecutionMetricsWith applies the HasEdge predicate on the "dynamic_execution_metrics" edge with a given conditions (other predicates).
func HasMemoryMetrics ¶
HasMemoryMetrics applies the HasEdge predicate on the "memory_metrics" edge.
func HasMemoryMetricsWith ¶
func HasMemoryMetricsWith(preds ...predicate.MemoryMetrics) predicate.Metrics
HasMemoryMetricsWith applies the HasEdge predicate on the "memory_metrics" edge with a given conditions (other predicates).
func HasNetworkMetrics ¶
HasNetworkMetrics applies the HasEdge predicate on the "network_metrics" edge.
func HasNetworkMetricsWith ¶
func HasNetworkMetricsWith(preds ...predicate.NetworkMetrics) predicate.Metrics
HasNetworkMetricsWith applies the HasEdge predicate on the "network_metrics" edge with a given conditions (other predicates).
func HasPackageMetrics ¶
HasPackageMetrics applies the HasEdge predicate on the "package_metrics" edge.
func HasPackageMetricsWith ¶
func HasPackageMetricsWith(preds ...predicate.PackageMetrics) predicate.Metrics
HasPackageMetricsWith applies the HasEdge predicate on the "package_metrics" edge with a given conditions (other predicates).
func HasTargetMetrics ¶
HasTargetMetrics applies the HasEdge predicate on the "target_metrics" edge.
func HasTargetMetricsWith ¶
func HasTargetMetricsWith(preds ...predicate.TargetMetrics) predicate.Metrics
HasTargetMetricsWith applies the HasEdge predicate on the "target_metrics" edge with a given conditions (other predicates).
func HasTimingMetrics ¶
HasTimingMetrics applies the HasEdge predicate on the "timing_metrics" edge.
func HasTimingMetricsWith ¶
func HasTimingMetricsWith(preds ...predicate.TimingMetrics) predicate.Metrics
HasTimingMetricsWith applies the HasEdge predicate on the "timing_metrics" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Metrics queries.
func ByActionSummaryField ¶
func ByActionSummaryField(field string, opts ...sql.OrderTermOption) OrderOption
ByActionSummaryField orders the results by action_summary field.
func ByArtifactMetricsField ¶
func ByArtifactMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByArtifactMetricsField orders the results by artifact_metrics field.
func ByBazelInvocationField ¶
func ByBazelInvocationField(field string, opts ...sql.OrderTermOption) OrderOption
ByBazelInvocationField orders the results by bazel_invocation field.
func ByBuildGraphMetricsField ¶
func ByBuildGraphMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByBuildGraphMetricsField orders the results by build_graph_metrics field.
func ByCumulativeMetricsField ¶
func ByCumulativeMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByCumulativeMetricsField orders the results by cumulative_metrics field.
func ByDynamicExecutionMetricsField ¶
func ByDynamicExecutionMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByDynamicExecutionMetricsField orders the results by dynamic_execution_metrics field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMemoryMetricsField ¶
func ByMemoryMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByMemoryMetricsField orders the results by memory_metrics field.
func ByNetworkMetricsField ¶
func ByNetworkMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByNetworkMetricsField orders the results by network_metrics field.
func ByPackageMetricsField ¶
func ByPackageMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageMetricsField orders the results by package_metrics field.
func ByTargetMetricsField ¶
func ByTargetMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByTargetMetricsField orders the results by target_metrics field.
func ByTimingMetricsField ¶
func ByTimingMetricsField(field string, opts ...sql.OrderTermOption) OrderOption
ByTimingMetricsField orders the results by timing_metrics field.