dae7379050
Summary: Primarily a refactor. Introduced LDBTool interface to which customers can plug in their options and this will create their own version of ldb tool. Test Plan: made ldb tool and tried it. Reviewers: dhruba, heyongqiang Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D10191
15 lines
347 B
C++
15 lines
347 B
C++
// Copyright 2008-present Facebook. All Rights Reserved.
|
|
#ifndef STORAGE_LEVELDB_INCLUDE_LDB_TOOL_H
|
|
#define STORAGE_LEVELDB_INCLUDE_LDB_TOOL_H
|
|
#include "leveldb/options.h"
|
|
|
|
namespace leveldb {
|
|
|
|
class LDBTool {
|
|
public:
|
|
void Run(int argc, char** argv, Options = Options());
|
|
};
|
|
|
|
} // namespace leveldb
|
|
#endif // STORAGE_LEVELDB_INCLUDE_LDB_TOOL_H
|