MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
event
storage_event.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 Longda on 2021/4/14.
13
//
14
15
#pragma once
16
17
#include "common/seda/stage_event.h"
18
19
class
SQLStageEvent
;
20
21
class
StorageEvent
:
public
common::StageEvent {
22
public
:
23
StorageEvent
(
SQLStageEvent
*sql_event) : sql_event_(sql_event)
24
{}
25
26
virtual
~StorageEvent
();
27
28
SQLStageEvent
*sql_event()
const
29
{
30
return
sql_event_;
31
}
32
33
private
:
34
SQLStageEvent
*sql_event_;
35
};
SQLStageEvent
与SessionEvent类似,也是处理SQL请求的事件,只是用在SQL的不同阶段
Definition:
sql_event.h:30
StorageEvent
Definition:
storage_event.h:21
制作者
1.9.5