Пример #1
0
        public void Export()
        {
            if (TableName != null)
            {
                using (var esentExportOperation = new EsentExportOperation(DatabaseDataDir, HasCompression, Encryption))
                {
                    esentExportOperation.ExportTable(TableName, OutputDumpPath);
                }
            }
            else
            {
                int batchSize = BatchSize == 0 ? DefaultBatchSize : BatchSize;

                using (var storageExporter = new StorageExporter(DatabaseDataDir, OutputDumpPath, batchSize, DocumentsStartEtag, HasCompression, Encryption, JournalsPath, IsRavendbFs))
                {
                    if (IsRavendbFs)
                    {
                        storageExporter.ExportFilesystemAsAttachments();
                    }
                    else
                    {
                        storageExporter.ExportDatabase();
                    }
                }
            }
        }
Пример #2
0
 public void Export()
 {
     if (TableName != null)
     {
         using (var esentExportOperation = new EsentExportOperation(DatabaseDataDir))
         {
             esentExportOperation.ExportTable(TableName, OutputDumpPath);
         }
     }
     else
     {
         int batchSize = BatchSize == 0 ? DefualtBatchSize : BatchSize;
         var storageExporter = new StorageExporter(DatabaseDataDir, OutputDumpPath, batchSize);
         storageExporter.ExportDatabase();
     }
 }
Пример #3
0
 public void Export()
 {
     if (TableName != null)
     {
         using (var esentExportOperation = new EsentExportOperation(DatabaseDataDir, HasCompression, Encryption))
         {
             esentExportOperation.ExportTable(TableName, OutputDumpPath);
         }
     }
     else
     {
         int batchSize       = BatchSize == 0 ? DefaultBatchSize : BatchSize;
         var storageExporter = new StorageExporter(DatabaseDataDir, OutputDumpPath, batchSize, DocumentsStartEtag, HasCompression, Encryption);
         storageExporter.ExportDatabase();
     }
 }
 public void Export()
 {
     if (TableName != null)
     {
         using (var esentExportOperation = new EsentExportOperation(DatabaseDataDir))
         {
             esentExportOperation.ExportTable(TableName, OutputDumpPath);
         }
     }
     else
     {
         int batchSize       = BatchSize == 0 ? DefualtBatchSize : BatchSize;
         var storageExporter = new StorageExporter(DatabaseDataDir, OutputDumpPath, batchSize);
         storageExporter.ExportDatabase();
     }
 }
 public void Export()
 {
     if (TableName != null)
     {
         using (var esentExportOperation = new EsentExportOperation(DatabaseDataDir, HasCompression, Encryption))
         {
             esentExportOperation.ExportTable(TableName, OutputDumpPath);
         }
     }
     else
     {
         int batchSize = BatchSize == 0 ? DefaultBatchSize : BatchSize;
         var storageExporter = new StorageExporter(DatabaseDataDir, OutputDumpPath, batchSize, DocumentsStartEtag, HasCompression, Encryption);
         storageExporter.ExportDatabase();
     }
 }