fastdo
0.5.12
|
内存结果集 更多...
#include <eiendb_common.hpp>
Public 成员函数 | |
MemoryResult (winux::StringArray const &fields) | |
template<winux::uint n> | |
MemoryResult (winux::String(&fields)[n]) | |
virtual | ~MemoryResult () |
template<typename _Ty > | |
int | addRow (std::vector< _Ty > const &values) |
添加一数据行 更多... | |
template<typename _Ty , winux::uint n> | |
int | addRow (_Ty(&values)[n]) |
virtual bool | dataSeek (int index) |
数据记录定位 更多... | |
virtual bool | fetchRow (winux::Mixed *fields, int type=0) |
提取为数组或者映射表 更多... | |
virtual bool | fetchRow (winux::MixedArray *fields) |
提取为数组(by index) 更多... | |
virtual bool | fetchRow (winux::StringMixedMap *fields) |
提取为映射表(by fieldname) 更多... | |
virtual winux::String | fieldName (int fieldIndex) |
获取结果集中指定字段的名称 更多... | |
virtual bool | free () |
释放Result资源 更多... | |
virtual winux::ulong | fieldsCount () |
获取结果里的字段数 更多... | |
virtual winux::ulong | rowsCount () |
获取结果里的记录数 更多... | |
virtual winux::String | fieldType (int fieldIndex) |
获取在一个结果集中指定字段的类型 更多... | |
![]() | |
virtual | ~IDBResult () |
内存结果集
主要用于兼容接口方法。 譬如,某些数据库的某些数据并不能通过query得到,而是其他方法。 但又需要用IDBResult接口去操作。
在文件 eiendb_common.hpp 第 16 行定义.
eiendb::MemoryResult::MemoryResult | ( | winux::StringArray const & | fields | ) |
|
inline |
在文件 eiendb_common.hpp 第 23 行定义.
|
virtual |
|
inline |
添加一数据行
在文件 eiendb_common.hpp 第 32 行定义.
|
inline |
在文件 eiendb_common.hpp 第 47 行定义.
|
virtual |
|
virtual |
|
virtual |
提取为数组(by index)
重载 eiendb::IDBResult .
|
virtual |
提取为映射表(by fieldname)
重载 eiendb::IDBResult .
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |