sapling/eden/fs/rocksdb/RocksDbUtil.h
Facebook Github Bot 5 2eeea32117 Initial commit
fbshipit-source-id: 2bcefbd0cd127cc5ea982e074ea6819d7aac3d7a
2016-05-12 14:09:13 -07:00

27 lines
680 B
C++

/*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once
#include <folly/String.h>
#include <rocksdb/db.h>
#include <memory>
#include <string>
namespace facebook {
namespace eden {
/**
* Returns an instance of a RocksDB that uses the specified directory for
* storage. If there is an existing RocksDB at that path, it will be used.
*/
std::unique_ptr<rocksdb::DB> createRocksDb(folly::StringPiece dbPath);
}
}