MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
meta_util.h
1/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2miniob is licensed under Mulan PSL v2.
3You can use this software according to the terms and conditions of the Mulan PSL v2.
4You may obtain a copy of Mulan PSL v2 at:
5 http://license.coscl.org.cn/MulanPSL2
6THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9See the Mulan PSL v2 for more details. */
10
11// Created by wangyunlai.wyl on 2021/5/18.
12//
13
14#pragma once
15
16#include <string>
17
18static constexpr const char *TABLE_META_SUFFIX = ".table";
19static constexpr const char *TABLE_META_FILE_PATTERN = ".*\\.table$";
20static constexpr const char *TABLE_DATA_SUFFIX = ".data";
21static constexpr const char *TABLE_INDEX_SUFFIX = ".index";
22
23std::string table_meta_file(const char *base_dir, const char *table_name);
24std::string table_data_file(const char *base_dir, const char *table_name);
25std::string table_index_file(const char *base_dir, const char *table_name, const char *index_name);