]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright (c) 2011 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. | |
4 | ||
5 | #pragma once | |
6 | #ifndef ROCKSDB_LITE | |
7c673cae | 7 | #include <string> |
494da23a | 8 | #include <vector> |
7c673cae | 9 | |
7c673cae | 10 | #include "rocksdb/db.h" |
494da23a TL |
11 | #include "rocksdb/utilities/db_ttl.h" |
12 | #include "rocksdb/utilities/stackable_db.h" | |
7c673cae FG |
13 | |
14 | namespace rocksdb { | |
15 | ||
16 | // Please don't use this class. It's deprecated | |
17 | class UtilityDB { | |
18 | public: | |
19 | // This function is here only for backwards compatibility. Please use the | |
20 | // functions defined in DBWithTTl (rocksdb/utilities/db_ttl.h) | |
21 | // (deprecated) | |
22 | #if defined(__GNUC__) || defined(__clang__) | |
23 | __attribute__((deprecated)) | |
24 | #elif _WIN32 | |
494da23a | 25 | __declspec(deprecated) |
7c673cae | 26 | #endif |
494da23a TL |
27 | static Status |
28 | OpenTtlDB(const Options& options, const std::string& name, | |
29 | StackableDB** dbptr, int32_t ttl = 0, bool read_only = false); | |
7c673cae FG |
30 | }; |
31 | ||
494da23a | 32 | } // namespace rocksdb |
7c673cae | 33 | #endif // ROCKSDB_LITE |