fastdo  0.5.12
eiendb::MySQLResult类 参考

#include <eiendb_mysql.hpp>

类 eiendb::MySQLResult 继承关系图:
eiendb::MySQLResult 的协作图:

Public 成员函数

 MySQLResult (winux::SharedPointer< MySQLStatement > stmt)
 
virtual ~MySQLResult ()
 
virtual bool free ()
 释放Result资源 更多...
 
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 winux::ulong fieldsCount ()
 获取结果里的字段数 更多...
 
virtual winux::ulong rowsCount ()
 获取结果里的记录数 更多...
 
virtual winux::String fieldType (int fieldIndex)
 获取在一个结果集中指定字段的类型 更多...
 
bool reset ()
 
 operator bool () const
 
 operator struct st_mysql_res * () const
 
- Public 成员函数 继承自 eiendb::IDBResult
virtual ~IDBResult ()
 

详细描述

在文件 eiendb_mysql.hpp114 行定义.

构造及析构函数说明

eiendb::MySQLResult::MySQLResult ( winux::SharedPointer< MySQLStatement stmt)
virtual eiendb::MySQLResult::~MySQLResult ( )
virtual

成员函数说明

virtual bool eiendb::MySQLResult::dataSeek ( int  index)
virtual

数据记录定位

参数
indexint 0为第一条记录
返回
boolean

重载 eiendb::IDBResult .

virtual bool eiendb::MySQLResult::fetchRow ( winux::Mixed fields,
int  type = 0 
)
virtual

提取为数组或者映射表

参数
typeint 0:为映射表,1:为数组

实现了 eiendb::IDBResult.

virtual bool eiendb::MySQLResult::fetchRow ( winux::MixedArray fields)
virtual

提取为数组(by index)

重载 eiendb::IDBResult .

virtual bool eiendb::MySQLResult::fetchRow ( winux::StringMixedMap fields)
virtual

提取为映射表(by fieldname)

重载 eiendb::IDBResult .

virtual winux::String eiendb::MySQLResult::fieldName ( int  fieldIndex)
virtual

获取结果集中指定字段的名称

参数
fieldIndexint 字段索引
返回
string

重载 eiendb::IDBResult .

virtual winux::ulong eiendb::MySQLResult::fieldsCount ( )
virtual

获取结果里的字段数

返回
ulong

重载 eiendb::IDBResult .

virtual winux::String eiendb::MySQLResult::fieldType ( int  fieldIndex)
virtual

获取在一个结果集中指定字段的类型

参数
fieldIndexint 字段索引
返回
string

重载 eiendb::IDBResult .

virtual bool eiendb::MySQLResult::free ( )
virtual

释放Result资源

返回
boolean

重载 eiendb::IDBResult .

eiendb::MySQLResult::operator bool ( ) const
inline

在文件 eiendb_mysql.hpp131 行定义.

eiendb::MySQLResult::operator struct st_mysql_res * ( ) const
inline

在文件 eiendb_mysql.hpp132 行定义.

bool eiendb::MySQLResult::reset ( )
virtual winux::ulong eiendb::MySQLResult::rowsCount ( )
virtual

获取结果里的记录数

返回
int

重载 eiendb::IDBResult .


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