ldb.cc 582 B

123456789101112131415161718192021
  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).
  5. //
  6. #ifndef ROCKSDB_LITE
  7. #include "rocksdb/ldb_tool.h"
  8. int main(int argc, char** argv) {
  9. ROCKSDB_NAMESPACE::LDBTool tool;
  10. tool.Run(argc, argv);
  11. return 0;
  12. }
  13. #else
  14. #include <stdio.h>
  15. int main(int /*argc*/, char** /*argv*/) {
  16. fprintf(stderr, "Not supported in lite mode.\n");
  17. return 1;
  18. }
  19. #endif // ROCKSDB_LITE