package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev
# Functions
BytesEncodeFormatFromString converts a string into a BytesEncodeFormat.
DistSQLExecModeFromString converts a string into a DistSQLExecMode.
MakeSearchPath returns a new immutable SearchPath struct.
NewSequenceState creates a SequenceState.
OptimizerModeFromString converts a string into a OptimizerMode.
SerialNormalizationModeFromString converts a string into a SerialNormalizationMode.
VectorizeExecModeFromString converts a string into a VectorizeExecMode.
# Constants
BytesEncodeBase64 uses base64 encoding.
BytesEncodeEscape uses the escaped format: e'abc\n'::BYTES::STRING -> 'abc\012'.
BytesEncodeHex uses the hex format: e'abc\n'::BYTES::STRING -> '\x61626312'.
DefaultDatabaseName is the name ofthe default CockroachDB database used for connections without a current db set.
DistSQLAlways means that we only distribute; unsupported queries fail.
DistSQLAuto means that we automatically decide on a case-by-case basis if we distribute queries.
DistSQLOff means that we never distribute queries.
DistSQLOn means that we distribute queries that are supported.
OptimizerAlways means that we attempt to use the optimizer always, even for unsupported statements which result in errors.
OptimizerLocal means that we use the optimizer for all supported statements, but we don't try to distribute the resulting plan.
OptimizerOff means that we don't use the optimizer.
OptimizerOn means that we use the optimizer for all supported statements.
PgCatalogName is the name of the pg_catalog system schema.
PgDatabaseName is the name of the default postgres system database.
SerialUsesRowID means use INT NOT NULL DEFAULT unique_rowid().
SerialUsesSQLSequences means create a regular SQL sequence and use INT NOT NULL DEFAULT nextval(...).
SerialUsesVirtualSequences means create a virtual sequence and use INT NOT NULL DEFAULT nextval(...).
VectorizeAlways means that we attempt to vectorize all queries; unsupported queries will fail.
VectorizeOff means that columnar execution is disabled.
VectorizeOn means that any supported queries will be run using the columnar execution on.
# Structs
DataConversionConfig contains the parameters that influence the conversion between SQL data types and strings/byte arrays.
SearchPath represents a list of namespaces to search builtins in.
SearchPathIter enables iteration over the search paths without triggering an allocation.
SequenceState stores session-scoped state used by sequence builtins.
SessionData contains session parameters.
# Type aliases
BytesEncodeFormat controls which format to use for BYTES->STRING conversions.
DistSQLExecMode controls if and when the Executor distributes queries.
OptimizerMode controls if and when the Executor uses the optimizer.
SerialNormalizationMode controls if and when the Executor uses DistSQL.
VectorizeExecMode controls if an when the Executor executes queries using the columnar execution engine.