程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

如何使用 python 脚本更改 Pentaho 中的数据库连接变量?

发布于2023-05-20 14:03     阅读(1033)     评论(0)     点赞(14)     收藏(1)


I'm trying to minimize the work when copying a transformation from one environment to another. Currently, we have to manually change every db connection variables when switching from dev environment to uat environment. Im trying to write a python script which will change the values of those variables depending on the environment.

Right now I have a python variable which can hold values for environment names like 'dev' or 'uat' or 'prod'. Depending on the value of this variable python can change the values of db variables. The user only has to change the environment variable on python script. Is there a way to optimize this. Or lets say at some point we have the connection details are changed, in that case we have to change scripts for every transformations. Is there a way to have a base python script that contains the connection values and another script on Pentaho which contains the environment variable that user can change.


解决方案


暂无回答



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:https://www.pythonheidong.com/blog/article/1979281/34b37c91ee1591df8e79/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

14 0
收藏该文
已收藏

评论内容:(最多支持255个字符)