package
2.1.0-alpha.20180702+incompatible
Repository: https://github.com/rmloveland/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 SearchPath struct.
NewSequenceState creates a SequenceState.
OptimizerModeFromString converts a string into a OptimizerMode.
# 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 use distSQL; unsupported queries fail.
DistSQLAuto means that we automatically decide on a case-by-case basis if we use distSQL.
DistSQLOff means that we never use distSQL.
DistSQLOn means that we use distSQL for 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.
# Structs
SearchPath represents a list of namespaces to search builtins in.
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 uses DistSQL.
OptimizerMode controls if and when the Executor uses the optimizer.