f868dcbbed
Summary: This enables user to add a TTL column family to normal DB. Next step should be to expand StackableDB and create StackableColumnFamily, such that users can for example add geo-spatial column families to normal DB. Test Plan: added a test Reviewers: dhruba, haobo, ljin Reviewed By: haobo CC: leveldb Differential Revision: https://reviews.facebook.net/D18201
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
|
|
#pragma once
|
|
#ifndef ROCKSDB_LITE
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include "utilities/stackable_db.h"
|
|
#include "utilities/db_ttl.h"
|
|
#include "rocksdb/db.h"
|
|
|
|
namespace rocksdb {
|
|
|
|
// Please don't use this class. It's deprecated
|
|
class UtilityDB {
|
|
public:
|
|
// This function is here only for backwards compatibility. Please use the
|
|
// functions defined in DBWithTTl (utilities/db_ttl.h)
|
|
// (deprecated)
|
|
__attribute__((deprecated)) static Status OpenTtlDB(const Options& options,
|
|
const std::string& name,
|
|
StackableDB** dbptr,
|
|
int32_t ttl = 0,
|
|
bool read_only = false);
|
|
};
|
|
|
|
} // namespace rocksdb
|
|
#endif // ROCKSDB_LITE
|