We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
移除dms的数据库扩展参数配置,调用sqle的v1/instance_additional_metas,v2/configurations/drivers
优先dms的数据库扩展参数配置,没有调用sqle的v1/instance_additional_metas,v2/configurations/drivers
sqle存在的情况使用sqle提供的参数,不存在使用dms配置的参数
sqle/provision实现的插件所需的参数需要满足下列约束
{ "data": [ { "db_type": "Oracle", "logo_path": "/static/logo/oracle.png", "params": [ { "name": "service_name", "value": "xe", "description": "service name", "type": "string" } ] } ], "code": 0, "message": "" }
dms分别请求sqle和provision提供的扩展插件接口,成功返回相关的扩展插件参数,失败仅记录错误日志;若接口无可用扩展插件参数数据返回,添加数据源页面选择数据库类型选项为空,不能添加数据源
sqle扩展参数返回值
[ { "db_type": "MySQL", "logo_path": "/logo/mysql.png", "params": [] }, { "db_type": "Oracle", "logo_path": "/static/logo/oracle.png", "params": [ { "name": "service_name", "value": "xe", "description": "service name", "type": "string" } ] } ]
provision扩展参数返回值
[ { "db_type": "Oracle", "logo_path": "/static/logo/oracle.png", "params": [ { "name": "service_name", "value": "xe", "description": "service name", "type": "string" } ] } ]
合并扩展参数返回值
上述sqle和provision都存在Oracle类型数据库,参数name值相同合并结果会使用sqle提供的参数,logo_path都存在值优先使用sqle提供的logo地址
TODO
The text was updated successfully, but these errors were encountered:
⚠️ 开发时需考虑自动插件配置脚本的使用
Sorry, something went wrong.
ColdWaterLW
No branches or pull requests
背景
目标
讨论后排除的方案
方案1移除dms的数据库扩展参数配置,调用sqle的v1/instance_additional_metas,v2/configurations/drivers方案2优先dms的数据库扩展参数配置,没有调用sqle的v1/instance_additional_metas,v2/configurations/drivers方案4sqle存在的情况使用sqle提供的参数,不存在使用dms配置的参数最新解决方案sqle/provision实现的插件所需的参数需要满足下列约束
方案1. 移除dms的插件配置,provision提供类似sqle的接口v1/instance_additional_metas,v2/configurations/drivers,sqle与provison的扩展参数根据name值进行合并(name值一样进行覆盖);需满足上述约束方案2. 移除dms的插件配置,provision提供类似sqle的接口v1/instance_additional_metas,v2/configurations/drivers,sqle与provison的所有扩展选项进行ALL合并,增加对应的sqle/provision前缀;需满足上述约束方案3. dms配置文件提供所有已实现的插件配置参数(由插件开发者提供增加到dms配置里,增加开关选项),默认关闭;需满足上述约束最终选择方案
方案描述
扩展插件参数开发约束
dms/sqle/provision扩展插件需要实现部分
dms部分
provision部分
sqle部分
dms请求sqle和provision异常情况处理
dms分别请求sqle和provision提供的扩展插件接口,成功返回相关的扩展插件参数,失败仅记录错误日志;若接口无可用扩展插件参数数据返回,添加数据源页面选择数据库类型选项为空,不能添加数据源
扩展插件参数合并原则
扩展插件参数合并示例
sqle扩展参数返回值
provision扩展参数返回值
合并扩展参数返回值
上述sqle和provision都存在Oracle类型数据库,参数name值相同合并结果会使用sqle提供的参数,logo_path都存在值优先使用sqle提供的logo地址
优点
缺点
TODO
The text was updated successfully, but these errors were encountered: