1 // Copyright (c) 2014 The LevelDB Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
5 #ifndef STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
6 #define STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
9 #include "leveldb/env.h"
10 #include "leveldb/status.h"
14 // Dump the contents of the file named by fname in text format to
15 // *dst. Makes a sequence of dst->Append() calls; each call is passed
16 // the newline-terminated text corresponding to a single item found
19 // Returns a non-OK result if fname does not name a leveldb storage
20 // file, or if the file cannot be read.
21 Status DumpFile(Env* env, const std::string& fname, WritableFile* dst);
23 } // namespace leveldb
25 #endif // STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_