archery1.10.0无法选择pgsql数据源下的数据库

本文描述了解决在使用archery工具时,由于数据库名称包含postgres导致被过滤的问题。作者提供了在Docker容器中修改pgsql.py文件,移除对postgres的过滤条件,以及重启archery服务的步骤。
摘要由CSDN通过智能技术生成

好巧不巧,我的数据库名称叫postgres,而archery正好过滤掉这个数据库了

所以解决方式如下:

第一步:进入archery用户

docker exec -it archery bash

第二步:打开pgsql.py

vi /opt/archery/sql/engines/pgsql.py

第三步:找到这段代码:

if row[0] not in ["postgres","template0", "template1"]

第四步:将这段代码中的postgres删除

if row[0] not in ["template0", "template1"]

第五步:退出archery用户

exit

第六步:重启archery

docker exec -it archery bash
  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值