(conf: DatasourceConf)
| 96 | |
| 97 | |
| 98 | def get_extra_config(conf: DatasourceConf): |
| 99 | config_dict = {} |
| 100 | if conf.extraJdbc: |
| 101 | config_arr = conf.extraJdbc.split("&") |
| 102 | for config in config_arr: |
| 103 | kv = config.split("=") |
| 104 | if len(kv) == 2 and kv[0] and kv[1]: |
| 105 | config_dict[kv[0]] = kv[1] |
| 106 | else: |
| 107 | raise Exception(f'param: {config} is error') |
| 108 | return config_dict |
| 109 | |
| 110 | |
| 111 | def get_origin_connect(type: str, conf: DatasourceConf): |
no outgoing calls
no test coverage detected