MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
与SessionEvent类似,也是处理SQL请求的事件,只是用在SQL的不同阶段 更多...
#include <sql_event.h>
Public 成员函数 | |
SQLStageEvent (SessionEvent *event, const string &sql) | |
SessionEvent * | session_event () const |
const string & | sql () const |
const unique_ptr< ParsedSqlNode > & | sql_node () const |
Stmt * | stmt () const |
unique_ptr< PhysicalOperator > & | physical_operator () |
const unique_ptr< PhysicalOperator > & | physical_operator () const |
void | set_sql (const char *sql) |
void | set_sql_node (unique_ptr< ParsedSqlNode > sql_node) |
void | set_stmt (Stmt *stmt) |
void | set_operator (unique_ptr< PhysicalOperator > oper) |
Private 属性 | |
SessionEvent * | session_event_ = nullptr |
string | sql_ |
处理的SQL语句 | |
unique_ptr< ParsedSqlNode > | sql_node_ |
语法解析后的SQL命令 | |
Stmt * | stmt_ = nullptr |
Resolver之后生成的数据结构 | |
unique_ptr< PhysicalOperator > | operator_ |
生成的执行计划,也可能没有 | |
与SessionEvent类似,也是处理SQL请求的事件,只是用在SQL的不同阶段