1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "db_constant.h"
17 
18 namespace DistributedDB {
19 const std::string DBConstant::MULTI_SUB_DIR = "multi_ver";
20 const std::string DBConstant::SINGLE_SUB_DIR = "single_ver";
21 const std::string DBConstant::LOCAL_SUB_DIR = "local";
22 const std::string DBConstant::MAINDB_DIR = "main";
23 const std::string DBConstant::METADB_DIR = "meta";
24 const std::string DBConstant::CACHEDB_DIR = "cache";
25 const std::string DBConstant::SYSTEM_TABLE_PREFIX = "naturalbase_rdb_";
26 const std::string DBConstant::RELATIONAL_PREFIX = "naturalbase_rdb_aux_";
27 const std::string DBConstant::RELATIONAL_SCHEMA_KEY = "relational_schema";
28 const std::string DBConstant::RELATIONAL_TRACKER_SCHEMA_KEY = "relational_tracker_schema";
29 const std::string DBConstant::LOG_TABLE_VERSION_KEY = "log_table_version";
30 const std::string DBConstant::TIMESTAMP_ALIAS = "naturalbase_rdb_aux_timestamp";
31 const std::string DBConstant::UPDATE_META_FUNC = "update_meta_within_trigger";
32 const std::string DBConstant::SINGLE_VER_DATA_STORE = "gen_natural_store";
33 const std::string DBConstant::SINGLE_VER_META_STORE = "meta";
34 const std::string DBConstant::SINGLE_VER_CACHE_STORE = "cache";
35 }
36