2018-07-22 01:56:40 +02:00
|
|
|
//
|
2021-01-01 13:57:46 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
|
2018-07-22 01:56:40 +02:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#include "td/db/SqliteKeyValue.h"
|
|
|
|
|
|
|
|
#include "td/utils/ScopeGuard.h"
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
|
|
|
Result<bool> SqliteKeyValue::init(string path) {
|
2020-05-23 21:27:24 +02:00
|
|
|
return true;
|
2018-07-22 01:56:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Status SqliteKeyValue::init_with_connection(SqliteDb connection, string table_name) {
|
|
|
|
return Status::OK();
|
|
|
|
}
|
|
|
|
|
2018-08-06 16:22:22 +02:00
|
|
|
Status SqliteKeyValue::drop() {
|
2020-05-23 21:27:24 +02:00
|
|
|
return Status::OK();
|
2018-07-22 01:56:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SqliteKeyValue::SeqNo SqliteKeyValue::set(Slice key, Slice value) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
string SqliteKeyValue::get(Slice key) {
|
2020-05-23 21:27:24 +02:00
|
|
|
return "";
|
2018-07-22 01:56:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SqliteKeyValue::SeqNo SqliteKeyValue::erase(Slice key) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SqliteKeyValue::erase_by_prefix(Slice prefix) {
|
|
|
|
}
|
|
|
|
|
|
|
|
string SqliteKeyValue::next_prefix(Slice prefix) {
|
|
|
|
return string{};
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace td
|