MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
load_data_executor.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//
12// Created by Wangyunlai on 2023/7/12.
13//
14
15#pragma once
16
17#include "common/rc.h"
18
19class SQLStageEvent;
20class Table;
21class SqlResult;
22
28{
29public:
30 LoadDataExecutor() = default;
31 virtual ~LoadDataExecutor() = default;
32
33 RC execute(SQLStageEvent *sql_event);
34
35private:
36 void load_data(Table *table, const char *file_name, SqlResult *sql_result);
37};
导入数据的执行器
Definition: load_data_executor.h:28
与SessionEvent类似,也是处理SQL请求的事件,只是用在SQL的不同阶段
Definition: sql_event.h:30
SQL执行结果
Definition: sql_result.h:33
Definition: table.h:37