package
0.0.0-20230719143739-37de26ce6741
Repository: https://github.com/gobench-io/gobench.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns the Client stored in a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validaton error.
Log sets the logging function for debug mode.
MaskNotFound masks nor found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewApplicationClient returns a client for the Application from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewCounterClient returns a client for the Counter from the given config.
NewGaugeClient returns a client for the Gauge from the given config.
NewGraphClient returns a client for the Graph from the given config.
NewGroupClient returns a client for the Group from the given config.
NewHistogramClient returns a client for the Histogram from the given config.
NewMetricClient returns a client for the Metric from the given config.
NewTagClient returns a client for the Tag from the given config.
NewTxContext returns a new context with the given Client attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns the Tx stored in a context, or nil if there isn't one.
# Constants
Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Application is the model entity for the Application schema.
ApplicationClient is a client for the Application schema.
ApplicationCreate is the builder for creating a Application entity.
ApplicationCreateBulk is the builder for creating a bulk of Application entities.
ApplicationDelete is the builder for deleting a Application entity.
ApplicationDeleteOne is the builder for deleting a single Application entity.
ApplicationEdges holds the relations/edges for other nodes in the graph.
ApplicationGroupBy is the builder for group-by Application entities.
ApplicationMutation represents an operation that mutate the Applications nodes in the graph.
ApplicationQuery is the builder for querying Application entities.
ApplicationSelect is the builder for select fields of Application entities.
ApplicationUpdate is the builder for updating Application entities.
ApplicationUpdateOne is the builder for updating a single Application entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Counter is the model entity for the Counter schema.
CounterClient is a client for the Counter schema.
CounterCreate is the builder for creating a Counter entity.
CounterCreateBulk is the builder for creating a bulk of Counter entities.
CounterDelete is the builder for deleting a Counter entity.
CounterDeleteOne is the builder for deleting a single Counter entity.
CounterEdges holds the relations/edges for other nodes in the graph.
CounterGroupBy is the builder for group-by Counter entities.
CounterMutation represents an operation that mutate the Counters nodes in the graph.
CounterQuery is the builder for querying Counter entities.
CounterSelect is the builder for select fields of Counter entities.
CounterUpdate is the builder for updating Counter entities.
CounterUpdateOne is the builder for updating a single Counter entity.
Gauge is the model entity for the Gauge schema.
GaugeClient is a client for the Gauge schema.
GaugeCreate is the builder for creating a Gauge entity.
GaugeCreateBulk is the builder for creating a bulk of Gauge entities.
GaugeDelete is the builder for deleting a Gauge entity.
GaugeDeleteOne is the builder for deleting a single Gauge entity.
GaugeEdges holds the relations/edges for other nodes in the graph.
GaugeGroupBy is the builder for group-by Gauge entities.
GaugeMutation represents an operation that mutate the Gauges nodes in the graph.
GaugeQuery is the builder for querying Gauge entities.
GaugeSelect is the builder for select fields of Gauge entities.
GaugeUpdate is the builder for updating Gauge entities.
GaugeUpdateOne is the builder for updating a single Gauge entity.
Graph is the model entity for the Graph schema.
GraphClient is a client for the Graph schema.
GraphCreate is the builder for creating a Graph entity.
GraphCreateBulk is the builder for creating a bulk of Graph entities.
GraphDelete is the builder for deleting a Graph entity.
GraphDeleteOne is the builder for deleting a single Graph entity.
GraphEdges holds the relations/edges for other nodes in the graph.
GraphGroupBy is the builder for group-by Graph entities.
GraphMutation represents an operation that mutate the Graphs nodes in the graph.
GraphQuery is the builder for querying Graph entities.
GraphSelect is the builder for select fields of Graph entities.
GraphUpdate is the builder for updating Graph entities.
GraphUpdateOne is the builder for updating a single Graph entity.
Group is the model entity for the Group schema.
GroupClient is a client for the Group schema.
GroupCreate is the builder for creating a Group entity.
GroupCreateBulk is the builder for creating a bulk of Group entities.
GroupDelete is the builder for deleting a Group entity.
GroupDeleteOne is the builder for deleting a single Group entity.
GroupEdges holds the relations/edges for other nodes in the graph.
GroupGroupBy is the builder for group-by Group entities.
GroupMutation represents an operation that mutate the Groups nodes in the graph.
GroupQuery is the builder for querying Group entities.
GroupSelect is the builder for select fields of Group entities.
GroupUpdate is the builder for updating Group entities.
GroupUpdateOne is the builder for updating a single Group entity.
Histogram is the model entity for the Histogram schema.
HistogramClient is a client for the Histogram schema.
HistogramCreate is the builder for creating a Histogram entity.
HistogramCreateBulk is the builder for creating a bulk of Histogram entities.
HistogramDelete is the builder for deleting a Histogram entity.
HistogramDeleteOne is the builder for deleting a single Histogram entity.
HistogramEdges holds the relations/edges for other nodes in the graph.
HistogramGroupBy is the builder for group-by Histogram entities.
HistogramMutation represents an operation that mutate the Histograms nodes in the graph.
HistogramQuery is the builder for querying Histogram entities.
HistogramSelect is the builder for select fields of Histogram entities.
HistogramUpdate is the builder for updating Histogram entities.
HistogramUpdateOne is the builder for updating a single Histogram entity.
Metric is the model entity for the Metric schema.
MetricClient is a client for the Metric schema.
MetricCreate is the builder for creating a Metric entity.
MetricCreateBulk is the builder for creating a bulk of Metric entities.
MetricDelete is the builder for deleting a Metric entity.
MetricDeleteOne is the builder for deleting a single Metric entity.
MetricEdges holds the relations/edges for other nodes in the graph.
MetricGroupBy is the builder for group-by Metric entities.
MetricMutation represents an operation that mutate the Metrics nodes in the graph.
MetricQuery is the builder for querying Metric entities.
MetricSelect is the builder for select fields of Metric entities.
MetricUpdate is the builder for updating Metric entities.
MetricUpdateOne is the builder for updating a single Metric entity.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Tag is the model entity for the Tag schema.
TagClient is a client for the Tag schema.
TagCreate is the builder for creating a Tag entity.
TagCreateBulk is the builder for creating a bulk of Tag entities.
TagDelete is the builder for deleting a Tag entity.
TagDeleteOne is the builder for deleting a single Tag entity.
TagEdges holds the relations/edges for other nodes in the graph.
TagGroupBy is the builder for group-by Tag entities.
TagMutation represents an operation that mutate the Tags nodes in the graph.
TagQuery is the builder for querying Tag entities.
TagSelect is the builder for select fields of Tag entities.
TagUpdate is the builder for updating Tag entities.
TagUpdateOne is the builder for updating a single Tag entity.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field fails.
# Type aliases
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Applications is a parsable slice of Application.
No description provided by the author
No description provided by the author
Counters is a parsable slice of Counter.
Gauges is a parsable slice of Gauge.
Graphs is a parsable slice of Graph.
Groups is a parsable slice of Group.
Histograms is a parsable slice of Histogram.
ent aliases to avoid import conflict in user's code.
Metrics is a parsable slice of Metric.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
No description provided by the author
No description provided by the author
Tags is a parsable slice of Tag.
ent aliases to avoid import conflict in user's code.