package
19.2.12+incompatible
Repository: https://github.com/vaskevich/cockroach.git
Documentation: pkg.go.dev
# Functions
CheckTableExists returns an error if a table already exists with given parent and name.
ReadBackupDescriptorFromURI creates an export store from the given URI, then reads and unmarshals a BackupDescriptor 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
BackupDescriptorCheckpointName is the file name used to store the serialized BackupDescriptor proto while the backup is in progress.
BackupDescriptorName is the file name used for serialized BackupDescriptor protos.
BackupFormatDescriptorTrackingVersion added tracking of complete DBs.
BackupManifestName is a future name for the serialized BackupDescriptor proto.
BackupPartitionDescriptorPrefix is the file name prefix for serialized BackupPartitionDescriptor protos.
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
RestoreHeader is the header for RESTORE stmt results.
# Structs
BackupDescriptor represents a consistent snapshot of ranges.
No description provided by the author
BackupDescriptor_File represents a file that contains the diff for a key range between two timestamps.
No description provided by the author
# Type aliases
BackupFileDescriptors is an alias on which to implement sort's interface.
No description provided by the author
TableRewriteMap maps old table IDs to new table and parent IDs.