]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/include/rocksdb/db_dump_tool.h
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
11 #include "rocksdb/db.h"
16 // Database that will be dumped
18 // File location that will contain dump output
19 std::string dump_location
;
20 // Don't include db information header in the dump
21 bool anonymous
= false;
26 bool Run(const DumpOptions
& dump_options
,
27 rocksdb::Options options
= rocksdb::Options());
30 struct UndumpOptions
{
31 // Database that we will load the dumped file into
33 // File location of the dumped file that will be loaded
34 std::string dump_location
;
35 // Compact the db after loading the dumped file
36 bool compact_db
= false;
41 bool Run(const UndumpOptions
& undump_options
,
42 rocksdb::Options options
= rocksdb::Options());
44 } // namespace rocksdb
45 #endif // ROCKSDB_LITE