fastdo  0.6.8
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) override
 
virtual bool build (winux::String const &sql, winux::Mixed const &params) override
 建立一个SQL语句,params可以是array或者collection类型 更多...
 
virtual bool build (winux::String const &sql, winux::MixedArray const &params) override
 建立一个SQL语句,绑定参数,params数组的0索引对应参数索引1,依此类推 更多...
 
virtual bool build (winux::String const &sql, winux::StringMixedMap const &params) override
 建立一个SQL语句,绑定参数,SQL中参数名前要加':' 更多...
 
virtual bool bind (size_t paramIndex, winux::Mixed const &val) override
 
virtual bool bind (winux::String const &paramName, winux::Mixed const &val) override
 
 operator bool () const
 
MysqlConnectiongetCnn () const
 
winux::String const & getSql ()
 
winux::Mixed const & getParam (size_t 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 ( size_t  paramIndex,
winux::Mixed const &  val 
)
overridevirtual

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

建立一个SQL语句

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

MysqlConnection* eiendb::MysqlStatement::getCnn ( ) const
inline

在文件 eiendb_mysql.hpp93 行定义.

winux::Mixed const& eiendb::MysqlStatement::getParam ( size_t  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 行定义.


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