绑定信息持久化管理类 更多...
#include <binding.hpp>

Public 成员函数 | |
| BindingMapper (const std::string &dbfile) | |
| 绑定信息持久化管理类 构造函数 | |
| void | createTable () |
| 创建一张表 | |
| void | removeTable () |
| 移除一张表 | |
| bool | insert (Binding::ptr &binding) |
| 新增一个绑定信息 | |
| bool | remove (const std::string &ename, const std::string &qname) |
| 移除一个绑定信息 | |
| bool | removeExchangeBindings (const std::string &ename) |
| 移除交换机绑定信息 | |
| bool | removeQueueBindings (const std::string &qname) |
| 移除消息队列绑定信息 | |
| BindingMap | recovery () |
| 获取所有绑定信息 从数据库加载到内存 | |
静态 Private 成员函数 | |
| static int | selectCallback (void *arg, int numcol, char **row, char **fields) |
| select语句的回调函数 将获取到的数据存入参数中 | |
Private 属性 | |
| SqliteHelper | _sql_helper |
| 数据库操作对象 | |
绑定信息持久化管理类
|
inline |
绑定信息持久化管理类 构造函数
| dbfile | 数据库名称 |

|
inline |
创建一张表


|
inline |
新增一个绑定信息
| binding | 消息绑定信息指针 |


|
inline |
|
inline |
移除一个绑定信息
| ename | 交换机名称 |
| qname | 消息队列名称 |


|
inline |
移除交换机绑定信息
| ename | 交换机名称 |


|
inline |
移除消息队列绑定信息
| ename | 消息队列名称 |


|
inline |
移除一张表


|
inlinestaticprivate |
select语句的回调函数 将获取到的数据存入参数中
| arg | 存入的参数 |
| numcol | 列数 |
| row | 行 |
| fields | 列名 |

|
private |
数据库操作对象