List the contents of a backup file.
For an overview see page Incremental Backup
Prototype
void backupInfo(McoSql::String* file, SyntheticTable* table, Allocator* allocator);Arguments
fileThe path and filename for the backup file.tableThe table to receive the list of backup record descriptors.allocatorA dynamic memory allocator.Description
This method lists the contents of a backup file by calling the C API mco_backup_list(). (Please refer to the mco_backup_list() reference page for further details.)
Return Codes
In case of error, a runtime exception will be thrown with the appropriate error message.Example
{ MCO_RET rc; mco_device_t dev[4]; McoSqlEngine engine; McoSqlOpenParameters params; char * backup_file = "SimpleDb_backup.dbs"; SyntheticTable * table = SyntheticTable(); Allocator * allocator = Allocator(); ... rc = engine.open(params); if ( MCO_S_OK == rc ) { engine.backupInfo( backup_file, table, allocator); engine.close(); } ... }