1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. 2 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. See the AUTHORS file for names of contributors. 5 6 #pragma once 7 #ifndef ROCKSDB_LITE 8 #include <string> 9 #include <vector> 10 11 #include "rocksdb/db.h" 12 #include "rocksdb/utilities/db_ttl.h" 13 #include "rocksdb/utilities/stackable_db.h" 14 15 namespace ROCKSDB_NAMESPACE { 16 17 // Please don't use this class. It's deprecated 18 class UtilityDB { 19 public: 20 // This function is here only for backwards compatibility. Please use the 21 // functions defined in DBWithTTl (rocksdb/utilities/db_ttl.h) 22 // (deprecated) 23 #if defined(__GNUC__) || defined(__clang__) 24 __attribute__((deprecated)) 25 #elif _WIN32 26 __declspec(deprecated) 27 #endif 28 static Status 29 OpenTtlDB(const Options& options, const std::string& name, 30 StackableDB** dbptr, int32_t ttl = 0, bool read_only = false); 31 }; 32 33 } // namespace ROCKSDB_NAMESPACE 34 #endif // ROCKSDB_LITE 35