MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
描述一个操作,比如插入、删除行等 更多...
#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 |
Table * | table () const |
PageNum | page_num () const |
SlotNum | slot_num () const |
Private 属性 | |
Type | type_ |
< 操作的哪张表。这里直接使用表其实并不准确,因为表中的索引也可能有日志 | |
Table * | table_ = nullptr |
PageNum | page_num_ |
SlotNum | slot_num_ |
描述一个操作,比如插入、删除行等
通常包含一个操作的类型,以及操作的对象和具体的数据