package
20.1.0-beta.2+incompatible
Repository: https://github.com/jbowens/cockroach.git
Documentation: pkg.go.dev
# Functions
CheckTableExists returns an error if a table already exists with given parent and name.
ReadBackupManifestFromURI creates an export store from the given URI, then reads and unmarshals a BackupManifest at the standard location in the export storage.
ResolveTargetsToDescriptors performs name resolution on a set of targets and returns the resulting descriptors.
RewriteTableDescs mutates tables to match the ID and privilege specified in tableRewrites, as well as adjusting cross-table references to use the new IDs.
VerifyUsableExportTarget ensures that the target location does not already contain a BACKUP or checkpoint and writes an empty checkpoint, both verifying that the location is writable and locking out accidental concurrent operations on that location if subsequently try this check.
WriteTableDescs writes all the the new descriptors: First the ID -> TableDescriptor for the new table, then flip (or initialize) the name -> ID entry so any new queries will use the new one.
# Constants
BackupFormatDescriptorTrackingVersion added tracking of complete DBs.
BackupManifestCheckpointName is the file name used to store the serialized BackupManifest proto while the backup is in progress.
BackupManifestName is the file name used for serialized BackupManifest protos.
BackupNewManifestName is a future name for the serialized BackupManifest proto.
BackupPartitionDescriptorPrefix is the file name prefix for serialized BackupPartitionDescriptor protos.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
BackupCheckpointInterval is the interval at which backup progress is saved to durable storage.
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
RestoreHeader is the header for RESTORE stmt results.
# Structs
BackupManifest represents a consistent snapshot of ranges.
No description provided by the author
BackupManifest_File represents a file that contains the diff for a key range between two timestamps.
No description provided by the author
EncryptionInfo is stored IN PLAINTEXT along side collections of encrypted files stored outside of cockroach, for example by BACKUP/RESTORE.
# Type aliases
BackupFileDescriptors is an alias on which to implement sort's interface.
No description provided by the author
No description provided by the author
TableRewriteMap maps old table IDs to new table and parent IDs.