fastdo
0.6.16
|
数据库语句类通用实现 更多...
#include <eiendb_base.hpp>
Public 成员函数 | |
DbStatement (IDbConnection *cnn) | |
DbStatement (IDbConnection *cnn, winux::String const &sql, winux::Mixed const ¶ms=winux::mxNull) | |
virtual bool | build (winux::String const &sql, winux::Mixed const ¶ms=winux::mxNull) override |
建立一个SQL语句,params可以是Array或者Collection类型 更多... | |
virtual bool | bind (size_t paramIndex, winux::Mixed const &val) override |
绑定参数,按参数索引 更多... | |
virtual bool | bind (winux::String const ¶mName, winux::Mixed const &val) override |
绑定参数,按参数名 更多... | |
operator bool () const | |
IDbConnection * | getCnn () const |
winux::String const & | getSql () |
winux::Mixed const & | getParam (size_t paramIndex) const |
winux::Mixed const & | getParam (winux::String const ¶mName) const |
Public 成员函数 继承自 eiendb::IDbStatement | |
virtual | ~IDbStatement () |
数据库语句类通用实现
在文件 eiendb_base.hpp 第 339 行定义.
eiendb::DbStatement::DbStatement | ( | IDbConnection * | cnn | ) |
eiendb::DbStatement::DbStatement | ( | IDbConnection * | cnn, |
winux::String const & | sql, | ||
winux::Mixed const & | params = winux::mxNull |
||
) |
|
overridevirtual |
建立一个SQL语句,params可以是Array或者Collection类型
重载 eiendb::IDbStatement .
|
overridevirtual |
|
overridevirtual |
|
inline |
在文件 eiendb_base.hpp 第 349 行定义.
|
inline |
在文件 eiendb_base.hpp 第 350 行定义.
winux::String const& eiendb::DbStatement::getSql | ( | ) |
winux::Mixed const& eiendb::DbStatement::getParam | ( | size_t | paramIndex | ) | const |
winux::Mixed const& eiendb::DbStatement::getParam | ( | winux::String const & | paramName | ) | const |