GPUdb C++ API  Version 7.2.3.0
gpudb::CreateBackupRequest Struct Reference

A set of parameters for GPUdb::createBackup. More...

#include <gpudb/protocol/create_backup.h>

Public Member Functions

 CreateBackupRequest ()
 Constructs a CreateBackupRequest object with default parameters. More...
 
 CreateBackupRequest (const std::string &backupName_, const std::string &backupType_, const std::map< std::string, std::string > &backupObjectsMap_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
 Constructs a CreateBackupRequest object with the specified parameters. More...
 

Public Attributes

std::string backupName
 Name for this backup object. More...
 
std::string backupType
 Type of backup to create. More...
 
std::map< std::string, std::string > backupObjectsMap
 Map of objects to be captured in the backup. More...
 
std::string datasinkName
 Datasink where backup will be stored. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::createBackup.

Creates a database backup containing a current snapshot of existing objects.

Definition at line 19 of file create_backup.h.

Constructor & Destructor Documentation

◆ CreateBackupRequest() [1/2]

gpudb::CreateBackupRequest::CreateBackupRequest ( )
inline

Constructs a CreateBackupRequest object with default parameters.

Definition at line 24 of file create_backup.h.

◆ CreateBackupRequest() [2/2]

gpudb::CreateBackupRequest::CreateBackupRequest ( const std::string &  backupName_,
const std::string &  backupType_,
const std::map< std::string, std::string > &  backupObjectsMap_,
const std::string &  datasinkName_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a CreateBackupRequest object with the specified parameters.

Parameters
[in]backupName_Name for this backup object. If the backup object already exists, only an incremental or differential backup can be made, unless recreate is specified
[in]backupType_Type of backup to create. Supported values:
[in]backupObjectsMap_Map of objects to be captured in the backup. Error if empty and creating full backup. Error if non-empty when creating an incremental or differential backup.
[in]datasinkName_Datasink where backup will be stored.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 209 of file create_backup.h.

Member Data Documentation

◆ backupName

std::string gpudb::CreateBackupRequest::backupName

Name for this backup object.

If the backup object already exists, only an incremental or differential backup can be made, unless recreate is specified

Definition at line 223 of file create_backup.h.

◆ backupObjectsMap

std::map<std::string, std::string> gpudb::CreateBackupRequest::backupObjectsMap

Map of objects to be captured in the backup.

Error if empty and creating full backup. Error if non-empty when creating an incremental or differential backup.

Definition at line 280 of file create_backup.h.

◆ backupType

std::string gpudb::CreateBackupRequest::backupType

Type of backup to create.

Supported values:

Definition at line 236 of file create_backup.h.

◆ datasinkName

std::string gpudb::CreateBackupRequest::datasinkName

Datasink where backup will be stored.

Definition at line 285 of file create_backup.h.

◆ options

std::map<std::string, std::string> gpudb::CreateBackupRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 354 of file create_backup.h.


The documentation for this struct was generated from the following file: