package
19.1.0-rc.1+incompatible
Repository: https://github.com/dchenk/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
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.
DistinctCount returns the expected number of distinct values in a column with rowCount rows, given that the values are chosen from maxDistinctCount possible values using uniform random sampling with replacement.
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).
MakeStat returns a JSONStatistic given the column names, row count, distinct count, and null count.
NewConnFlags returns an initialized ConnFlags.
NewCSVRowsReader returns an io.Reader that outputs the initial data of the given table as CSVs.
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.

# Constants

AutoStatsName is copied from stats.AutoStatsName to avoid pulling in a dependency on sql/stats.

# 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.
Hooks stores functions to be called at points in the workload lifecycle.
JSONStatistic is copied from stats.JSONStatistic to avoid pulling in a dependency on sql/stats.
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).
QueryLoad represents some SQL query workload performable on a database initialized with the requisite tables.
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.