fastdo  0.6.8
eiendb::SqliteStatement类 参考

#include <eiendb_sqlite.hpp>

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

Public 成员函数

 SqliteStatement (SqliteConnection *cnn)
 
 SqliteStatement (SqliteConnection *cnn, winux::String const &sql)
 
 SqliteStatement (SqliteConnection *cnn, winux::String const &sql, winux::Mixed const &params)
 
 SqliteStatement (SqliteConnection *cnn, winux::String const &sql, winux::MixedArray const &params)
 
 SqliteStatement (SqliteConnection *cnn, winux::String const &sql, winux::StringMixedMap const &params)
 
virtual ~SqliteStatement ()
 
virtual bool build (winux::String const &sql) override
 建立一个SQL语句 更多...
 
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
 绑定参数 参数索引起始为1 更多...
 
virtual bool bind (winux::String const &paramName, winux::Mixed const &val) override
 绑定参数 按参数名 参数名前需要加':' 更多...
 
 operator sqlite3_stmt * () const
 
SqliteConnectiongetCnn () const
 
winux::String getSql () const
 
- Public 成员函数 继承自 eiendb::IDbStatement
virtual ~IDbStatement ()
 

友元

class SqliteResult
 

详细描述

在文件 eiendb_sqlite.hpp84 行定义.

构造及析构函数说明

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

成员函数说明

virtual bool eiendb::SqliteStatement::bind ( size_t  paramIndex,
winux::Mixed const &  val 
)
overridevirtual

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

建立一个SQL语句

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

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

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

重载 eiendb::IDbStatement .

SqliteConnection* eiendb::SqliteStatement::getCnn ( ) const
inline

在文件 eiendb_sqlite.hpp104 行定义.

winux::String eiendb::SqliteStatement::getSql ( ) const
inline

在文件 eiendb_sqlite.hpp105 行定义.

eiendb::SqliteStatement::operator sqlite3_stmt * ( ) const
inline

在文件 eiendb_sqlite.hpp103 行定义.

友元及相关函数文档

friend class SqliteResult
friend

在文件 eiendb_sqlite.hpp114 行定义.


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