|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
预处理语句抽象基类 更多...
#include <db_interface.hpp>
Public 成员函数 | |
| virtual uint32_t | param_count () const noexcept=0 |
| 获取参数数量 | |
| virtual bool | bind_param (uint32_t index, const string &value)=0 |
| 绑定字符串 | |
| virtual bool | bind_param (uint32_t index, string_view value)=0 |
| 绑定字符串视图 | |
| virtual bool | bind_param (uint32_t index, const char *value)=0 |
| 绑定C字符串 | |
| virtual bool | bind_param (uint32_t index, int32_t value)=0 |
| 绑定32位整数 | |
| virtual bool | bind_param (uint32_t index, int64_t value)=0 |
| 绑定64位整数 | |
| virtual bool | bind_param (uint32_t index, float64_t value)=0 |
| 绑定浮点数 | |
| virtual bool | bind_param (uint32_t index, cbyte_view value)=0 |
| 绑定二进制数据 | |
| virtual bool | execute ()=0 |
| 执行非查询语句(UPDATE/INSERT/DELETE) | |
| virtual unique_ptr< idb_prepared_result > | execute_query ()=0 |
| 执行查询语句(SELECT) | |
| virtual string_view | get_error () const noexcept=0 |
| 获取错误信息 | |
| virtual uint32_t | get_errno () const noexcept=0 |
| 获取错误码 | |
|
pure virtual |
执行非查询语句(UPDATE/INSERT/DELETE)
在 mysql_prepared_statement, pgsql_prepared_statement , 以及 sqlite_prepared_statement 内被实现.
引用了 execute().
被这些函数引用 execute().
|
pure virtual |
执行查询语句(SELECT)
在 mysql_prepared_statement, pgsql_prepared_statement , 以及 sqlite_prepared_statement 内被实现.
引用了 execute_query().
被这些函数引用 execute_query().
|
pure virtualnoexcept |
获取错误码
在 mysql_prepared_statement, pgsql_prepared_statement , 以及 sqlite_prepared_statement 内被实现.
引用了 get_errno().
被这些函数引用 get_errno().
|
pure virtualnoexcept |
获取错误信息
在 mysql_prepared_statement, pgsql_prepared_statement , 以及 sqlite_prepared_statement 内被实现.
引用了 get_error().
被这些函数引用 get_error().
|
pure virtualnoexcept |
获取参数数量
在 mysql_prepared_statement, pgsql_prepared_statement , 以及 sqlite_prepared_statement 内被实现.