package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

GetAndHashInitialValuesToString generates the bootstrap keys and sha-256 that can be used to generate data files (to be included in future releases).
InitialValuesFromString is the reciprocal to InitialValuesToString and appends the tenant prefix from the given codec.
InitialValuesToString returns a string representation of the return values of MetadataSchema.GetInitialValues.
InitialZoneConfigKVs returns a list of KV pairs to seed `system.zones`.
MakeKVWriter constructs a KVWriter instance.
MakeMetadataSchema constructs a new MetadataSchema value which constructs the "system" database.
TestingMinNonDefaultUserDescID returns the smallest user-creatable descriptor ID in a bootstrapped cluster.
TestingMinUserDescID returns the smallest user-created descriptor ID in a bootstrapped cluster.
TestingUserDescID is a convenience function which returns a user ID offset from the minimum value allowed in a simple unit test setting.
TestingUserTableDataMin is a convenience function which returns the first user table data key in a simple unit test setting.
VersionsWithInitialValues returns all the versions which can be used for InitialValuesOpts.OverrideKey, in descending order; the first one is always the current version.

# Constants

NumSystemTablesForSystemTenant is the number of system tables defined on the system tenant.

# Structs

InitialValuesOpts is used to get initial values for system/secondary tenants and allows overriding initial values with ones from previous releases.
KVWriter is used to transform SQL table records into KV pairs.
MetadataSchema is used to construct the initial sql schema for a new CockroachDB cluster being bootstrapped.