移除数据库配置项 - RemoveDbConfig
函数简介
移除自定义的配置项。
接口名称
RemoveDbConfig
DLL调用
int RemoveDbConfig(long ola, long db, string key);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| db | 长整数型 | 数据库对象指针,由 OpenDatabase 接口返回。 |
| key | 字符串 | 配置项名,如"width"、"height"。 |
示例
# 设置数据库配置
key = "cache_size"
value = "1000"
OLAServer.SetDbConfig(db, key, value)
# 移除数据库配置
RemoveDbConfigResult = OLAServer.RemoveDbConfig(db, key)
print(f"RemoveDbConfig 返回:{RemoveDbConfigResult}")
返回值
整数型:1 成功,0 失败。
