移除数据库配置项 - RemoveDbConfigEx
函数简介
移除自定义的配置项,默认使用 SetConfig 接口配置的数据库,如果未配置则返回失败。
接口名称
RemoveDbConfigEx
DLL调用
int RemoveDbConfigEx(long ola, string key);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| key | 字符串 | 配置项名,如"width"、"height"。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// Set -> Get -> Remove 流程
SetDbConfigEx(instance, "token", "abc123");
long ptr = GetDbConfigEx(instance, "token");
FreeStringPtr(instance, ptr);
// 移除配置项
int ret = RemoveDbConfigEx(instance, "token");
Python
# 待补充
返回值
整数型:1 成功,0 失败。
