|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
关系型数据库结果集抽象基类 更多...
#include <db_interface.hpp>
Public 成员函数 | |
| virtual size_type | row_count () const =0 |
| 获取结果集行数 | |
| virtual size_type | column_count () const =0 |
| 获取结果集列数 | |
| virtual const vector< string_view > & | column_names () const =0 |
| 获取所有列名 | |
| virtual column_meta | column_metadata (size_type n) const =0 |
| 获取列元数据 | |
| virtual string_view | get (size_type n) const =0 |
| 字符串 | |
| virtual bool | get_bool (size_type n) const =0 |
| 布尔值 | |
| virtual int16_t | get_int16 (size_type n) const =0 |
| 16位整数 | |
| virtual int32_t | get_int32 (size_type n) const =0 |
| 32位整数 | |
| virtual int64_t | get_int64 (size_type n) const =0 |
| 64位整数 | |
| virtual float32_t | get_float32 (size_type n) const =0 |
| 32位浮点数 | |
| virtual float64_t | get_float64 (size_type n) const =0 |
| 64位浮点数 | |
| virtual decimal_t | get_decimal (size_type n) const =0 |
| 高精度十进制数 | |
| virtual vector< char > | get_blob (size_type n) const =0 |
| BLOB二进制数据 | |
| virtual uint64_t | get_bit (size_type n) const =0 |
| 位字段值 | |
| virtual date | get_date (size_type n) const =0 |
| 日期类型 | |
| virtual time | get_time (size_type n) const =0 |
| 时间类型 | |
| virtual datetime | get_datetime (size_type n) const =0 |
| 日期时间类型 | |
| virtual timestamp | get_timestamp (size_type n) const =0 |
| 时间戳类型 | |
| Public 成员函数 继承自 neforce::idb_result | |
| virtual bool | empty () const =0 |
| 检查结果集是否为空 | |
| virtual bool | next ()=0 |
| 移动到下一行 | |
额外继承的成员函数 | |
| Public 类型 继承自 neforce::idb_result | |
| using | size_type = size_t |
| 大小类型 | |
| using | difference_type = ptrdiff_t |
| 差值类型 | |
|
nodiscardpure virtual |
获取结果集列数
在 neforce::mysql_prepared_result, neforce::mysql_result, neforce::pgsql_tb_result , 以及 neforce::sqlite_result 内被实现.
|
nodiscardpure virtual |
获取列元数据
| n | 列索引(从0开始) |
在 neforce::mysql_prepared_result, neforce::mysql_result, neforce::pgsql_tb_result , 以及 neforce::sqlite_result 内被实现.
|
nodiscardpure virtual |
获取所有列名
在 neforce::mysql_prepared_result, neforce::mysql_result, neforce::pgsql_tb_result , 以及 neforce::sqlite_result 内被实现.
|
nodiscardpure virtual |
获取结果集行数
在 neforce::mysql_prepared_result, neforce::mysql_result, neforce::pgsql_tb_result , 以及 neforce::sqlite_result 内被实现.