SQLite C 接口
虚拟表游标对象
struct sqlite3_vtab_cursor {
sqlite3_vtab *pVtab; /* Virtual table of this cursor */
/* Virtual table implementations will typically add additional fields */
};
每个虚拟表模块实现都使用以下结构的子类来描述指向 虚拟表并用于循环遍历虚拟表的游标。游标是使用模块的 xOpen方法创建的,并由xClose方法销毁。游标由模块的xFilter、xNext、xEof、xColumn和xRowid方法使用。每个模块实现都将定义游标结构的内容以满足自己的需要。
这个超类的存在是为了定义对所有实现都通用的游标字段。