#pragma once #include #include namespace DB { class BackupEntriesCollector; class RestorerFromBackup; enum class UserDefinedSQLObjectType : uint8_t; class IBackupEntry; using BackupEntryPtr = std::shared_ptr; /// Makes backup entries to backup user-defined SQL objects. void backupUserDefinedSQLObjects( BackupEntriesCollector & backup_entries_collector, const String & data_path_in_backup, UserDefinedSQLObjectType object_type, const std::vector> & objects); /// Restores user-defined SQL objects from the backup. std::vector> restoreUserDefinedSQLObjects(RestorerFromBackup & restorer, const String & data_path_in_backup, UserDefinedSQLObjectType object_type); }