package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package bulkingest defines a workload that is intended to stress some edge cases in our bulk-ingestion infrastructure.
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
Package ycsb is the workload specified by the Yahoo! Cloud Serving Benchmark.

# Functions

ApproxDatumSize returns the canonical size of a datum as returned from a call to `Table.InitialRowFn`.
CSVMux returns a mux over http handers for csv data in all tables in the given generators.
FromFlags returns a new validated generator with the given flags.
Get returns the registered Generator with the given name, if it exists.
HandleCSV configures a Generator with url params and outputs the data for a single Table as a CSV (optionally limiting the rows via `row-start` and `row-end` params).
NewConnFlags returns an initialized ConnFlags.
NewCSVRowsReader returns an io.Reader that outputs the initial data of the given table as CSVs.
NewHistogramRegistry returns an initialized HistogramRegistry.
NewMultiConnPool creates a new MultiConnPool (with one pool per url).
Register is a hook for init-time registration of Generator implementations.
Registered returns all registered Generators.
SanitizeUrls verifies that the give SQL connection strings have the correct SQL database set, rewriting them in place if necessary.
Setup creates the given tables and fills them with initial data via batched INSERTs.
Split creates the range splits defined by the given table.
StringTuple returns the given datums as strings suitable for use in directly in SQL.
Tuples returns a BatchedTuples where each batch has size 1.
WriteCSVRows writes the specified table rows as a csv.

# Structs

BatchedTuples is a generic generator of tuples (SQL rows, PKs to split at, etc).
ConnFlags is helper of common flags that are relevant to QueryLoads.
FlagMeta is metadata about a workload flag.
Flags is a container for flags and associated metadata.
HistogramRegistry is a thread-safe enclosure for a (possibly large) number of named histograms.
Histograms is a thread-local handle for creating and registering NamedHistograms.
HistogramTick is an aggregation of ticking all histograms in a HistogramRegistry with a given name.
Hooks stores functions to be called at points in the workload lifecycle.
Meta is used to register a Generator at init time and holds meta information about this generator, including a name, description, and a function to create instances of it.
MultiConnPool maintains a set of pgx ConnPools (to different servers).
NamedHistogram is a named histogram for use in Operations.
QueryLoad represents some SQL query workload performable on a database initialized with the requisite tables.
SnapshotTick parallels HistogramTick but replace the histogram with a snapshot that is suitable for serialization.
SQLRunner is a helper for issuing SQL statements; it supports multiple methods for issuing queries.
StmtHandle is associated with a (possibly prepared) statement; created by SQLRunner.Define.
Table represents a single table in a Generator.

# Interfaces

Flagser returns the flags this Generator is configured with.
Generator represents one or more sql query loads and associated initial data.
Hookser returns any hooks associated with the generator.
Opser returns the work functions for this generator.

# Type aliases

PgxTx is a thin wrapper that implements the crdb.Tx interface, allowing pgx transactions to be used with ExecuteInTx.