MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
sql
stmt
show_tables_stmt.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
//
12
// Created by Wangyunlai on 2023/6/14.
13
//
14
15
#pragma once
16
17
#include <string>
18
#include <vector>
19
20
#include "
sql/stmt/stmt.h
"
21
22
class
Db
;
23
29
class
ShowTablesStmt
:
public
Stmt
30
{
31
public
:
32
ShowTablesStmt
() =
default
;
33
virtual
~ShowTablesStmt
() =
default
;
34
35
StmtType type()
const override
{
return
StmtType::SHOW_TABLES; }
36
37
static
RC create(
Db
*db,
Stmt
*&stmt)
38
{
39
stmt =
new
ShowTablesStmt
();
40
return
RC::SUCCESS;
41
}
42
};
Db
一个DB实例负责管理一批表
Definition:
db.h:34
ShowTablesStmt
描述表的语句
Definition:
show_tables_stmt.h:30
Stmt
Stmt for Statement
Definition:
stmt.h:78
stmt.h
制作者
1.9.5