fastdo  0.5.12
eiendb::MySQLStatement类 参考

#include <eiendb_mysql.hpp>

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

Public 成员函数

 MySQLStatement (MySQLConnection *cnn)
 
 MySQLStatement (MySQLConnection *cnn, winux::String const &sql)
 
 MySQLStatement (MySQLConnection *cnn, winux::String const &sql, winux::Mixed const &params)
 
 MySQLStatement (MySQLConnection *cnn, winux::String const &sql, winux::MixedArray const &params)
 
 MySQLStatement (MySQLConnection *cnn, winux::String const &sql, winux::StringMixedMap const &params)
 
virtual ~MySQLStatement ()
 
virtual bool build (winux::String const &sql)
 
virtual bool build (winux::String const &sql, winux::Mixed const &params)
 建立一个SQL语句,params可以是array或者collection类型 更多...
 
virtual bool build (winux::String const &sql, winux::MixedArray const &params)
 建立一个SQL语句,绑定参数,params数组的0索引对应参数索引1,依此类推 更多...
 
virtual bool build (winux::String const &sql, winux::StringMixedMap const &params)
 建立一个SQL语句,绑定参数,SQL中参数名前要加':' 更多...
 
virtual bool bind (int paramIndex, winux::Mixed const &val)
 
virtual bool bind (winux::String const &paramName, winux::Mixed const &val)
 
 operator bool () const
 
MySQLConnectiongetCnn () const
 
winux::String const & getSql ()
 
winux::Mixed const & getParam (int paramIndex) const
 
winux::Mixed const & getParam (winux::String const &paramName) const
 
- Public 成员函数 继承自 eiendb::IDBStatement
virtual ~IDBStatement ()
 

详细描述

在文件 eiendb_mysql.hpp73 行定义.

构造及析构函数说明

eiendb::MySQLStatement::MySQLStatement ( MySQLConnection cnn)
eiendb::MySQLStatement::MySQLStatement ( MySQLConnection cnn,
winux::String const &  sql 
)
eiendb::MySQLStatement::MySQLStatement ( MySQLConnection cnn,
winux::String const &  sql,
winux::Mixed const &  params 
)
eiendb::MySQLStatement::MySQLStatement ( MySQLConnection cnn,
winux::String const &  sql,
winux::MixedArray const &  params 
)
eiendb::MySQLStatement::MySQLStatement ( MySQLConnection cnn,
winux::String const &  sql,
winux::StringMixedMap const &  params 
)
virtual eiendb::MySQLStatement::~MySQLStatement ( )
virtual

成员函数说明

virtual bool eiendb::MySQLStatement::bind ( int  paramIndex,
winux::Mixed const &  val 
)
virtual

绑定参数 参数索引起始为1

重载 eiendb::IDBStatement .

virtual bool eiendb::MySQLStatement::bind ( winux::String const &  paramName,
winux::Mixed const &  val 
)
virtual

绑定参数 按参数名 参数名前需要加:

重载 eiendb::IDBStatement .

virtual bool eiendb::MySQLStatement::build ( winux::String const &  sql)
virtual

建立一个SQL语句

重载 eiendb::IDBStatement .

virtual bool eiendb::MySQLStatement::build ( winux::String const &  sql,
winux::Mixed const &  params 
)
virtual

建立一个SQL语句,params可以是array或者collection类型

实现了 eiendb::IDBStatement.

virtual bool eiendb::MySQLStatement::build ( winux::String const &  sql,
winux::MixedArray const &  params 
)
virtual

建立一个SQL语句,绑定参数,params数组的0索引对应参数索引1,依此类推

重载 eiendb::IDBStatement .

virtual bool eiendb::MySQLStatement::build ( winux::String const &  sql,
winux::StringMixedMap const &  params 
)
virtual

建立一个SQL语句,绑定参数,SQL中参数名前要加':'

重载 eiendb::IDBStatement .

MySQLConnection* eiendb::MySQLStatement::getCnn ( ) const
inline

在文件 eiendb_mysql.hpp93 行定义.

winux::Mixed const& eiendb::MySQLStatement::getParam ( int  paramIndex) const
winux::Mixed const& eiendb::MySQLStatement::getParam ( winux::String const &  paramName) const
winux::String const& eiendb::MySQLStatement::getSql ( )
eiendb::MySQLStatement::operator bool ( ) const
inline

在文件 eiendb_mysql.hpp92 行定义.


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