MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Private 属性 | 所有成员列表
Operation类 参考

描述一个操作,比如插入、删除行等 更多...

#include <trx.h>

Public 类型

enum class  Type : int { INSERT , UPDATE , DELETE , UNDEFINED }
 操作的类型
 

Public 成员函数

 Operation (Type type, Table *table, const RID &rid)
 
Type type () const
 
int32_t table_id () const
 
Tabletable () const
 
PageNum page_num () const
 
SlotNum slot_num () const
 

Private 属性

Type type_
 < 操作的哪张表。这里直接使用表其实并不准确,因为表中的索引也可能有日志
 
Tabletable_ = nullptr
 
PageNum page_num_
 
SlotNum slot_num_
 

详细描述

描述一个操作,比如插入、删除行等

通常包含一个操作的类型,以及操作的对象和具体的数据


该类的文档由以下文件生成: