-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backup): use DESCRIBE SCHEMA WITH INTERNALS for schema backup
This commit moves from using driver KeyspaceMetadata method to CQL query for describing schema. Moreover, in order not to lose any information returned from Scylla, saved schema file format is changed. Schema file name depends on whether it's safe to use it for restore purposes. Files ending with 'schema_with_internals.json.gz' come from Scylla version >= 6.0 and are safe for restore. Files ending with 'schema.json.gz' come from Scylla version < 6.0 and aren't safe for restore, but can still be useful for the user or debugging. The new file format represents parsed DescribedSchema in a json format (no more tar archive). Json format allows for preserving additional information like object keyspace, type and name, which would be lost in a cql file.
- Loading branch information
1 parent
9a7e886
commit e20a213
Showing
7 changed files
with
134 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters