backupInfo
此方法通过调用 C API 函数 mco_backup_list() 来列出备份文件内容。
void backupInfo(
file,
table,
allocator
);
参数
file
char const*
备份文件的路径和文件名。
table
SyntheticTable*
用于接收备份记录描述符列表的表。
allocator
Allocator*
动态内存分配器。
返回
RuntimeException
在出现错误的情况下抛出一个 RuntimeException 异常。
示例
{
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 )
{
rc = engine.backupInfo( backup_file, table, allocator);
engine.close();
}
...
}