pgcli - Postgres命令行工具
作者:PostgreSQL中文社区
发布:2017-12-27
欢迎大家踊跃投稿,投稿信箱: press@postgres.cn
pgcli是一个具有自动补齐功能及语法高亮显示的Postgres命令行工具。
快速启动
如果你已经知道如何安装python 包, 那么你可以很容易地执行:
$ pip install pgcli
如果你在macOS,你可以通过Homebrew来安装它。请明白如果你没有安装postgresql该操作可能会安装它。
$ brew tap-pin dbcli/tap
$ brew install pgcli
使用方法
$ pgcli --help
Usage: pgcli [OPTIONS] [DATABASE] [USERNAME]Options:
-h, --host TEXT Host address of the postgres database.
-p, --port INTEGER Port number at which the postgres instance is listening.
-U, --user TEXT User name to connect to the postgres database.
-W, --password Force password prompt.
-w, --no-password Never prompt for password.
-v, --version Version of pgcli.
-d, --dbname TEXT database name to connect to.
--pgclirc TEXT Location of pgclirc file.
--help Show this message and exit.
例子
$ pgcli local_database
$ pgcli postgres://amjith:passw0rd@example.com:5432/app_db
$ pgcli -h localhost -p 5432 -U amjith app_db
http://shenghuo.china-bbs.com/xiangxi/ http://huilong.sctcbmw.cn/jixi/ http://yz.cqtcxxw.cn/huangshan/ http://cf.lstcxxw.cn/jzqz_13/ http://gx.lztcxxw.cn/weinan/ https://honglan.tiancebbs.cn/shjingan/ https://chaozhou.tiancebbs.cn/ http://yz.cqtcxxw.cn/bjcd/ http://fs.shtcxxw.cn/liaoning/ http://shimai.zjtcbmw.cn/suihua/ http://xinguang.sctcbmw.cn/anshun/ http://huilong.sctcbmw.cn/zjsx/ http://yz.cqtcxxw.cn/jxnc/ https://fenlei.tiancebbs.cn/jzq/ https://jiuzhi.tiancebbs.cn/ http://fuyang.tjtcbmw.cn/ktvjz/ https://gongping.tiancebbs.cn/
https://shuozhou.tiancebbs.cn/qths/473955.html https://aihuishou.tiancebbs.cn/sh/1923.html https://www.tiancebbs.cn/ershoufang/471915.html https://als.tiancebbs.cn/qths/451746.html https://aihuishou.tiancebbs.cn/sh/347.html https://changshushi.tiancebbs.cn/hjzl/458558.html https://aihuishou.tiancebbs.cn/sh/1794.html https://sh.tiancebbs.cn/hjzl/465309.html https://taicang.tiancebbs.cn/hjzl/456833.html https://zulin.tiancebbs.cn/sh/4495.html https://zulin.tiancebbs.cn/sh/2445.html https://zulin.tiancebbs.cn/sh/5053.html https://zulin.tiancebbs.cn/sh/3685.html https://su.tiancebbs.cn/hjzl/473786.html https://aihuishou.tiancebbs.cn/sh/3015.html https://aihuishou.tiancebbs.cn/sh/2816.html https://su.tiancebbs.cn/hjzl/471133.html
http://ly.shtcxxw.cn/wuwei/ http://wutai.cqtcxxw.cn/lishui/ https://beiwaitan.tiancebbs.cn/ https://fenlei.tiancebbs.cn/qitaihe/ http://xinguang.sctcbmw.cn/chuzhou/ http://nalei.zjtcbmw.cn/hbhg/ http://taiying.njtcbmw.cn/fjmchs/ http://tuiguang.hntcxxw.cn/putuosh/ http://shenghuo.china-bbs.com/cqrc/ http://ouyu.hftcbmw.cn/guangdong/ https://hukouzhen.tiancebbs.cn/ http://js.sytcxxw.cn/kspx/ https://huayuanqiao.tiancebbs.cn/ http://jinqiang.ahtcbmw.cn/quanguo/ https://jiuzhaigou.tiancebbs.cn/ http://ouyu.hftcbmw.cn/qinzhou/ http://taiying.njtcbmw.cn/gren/
二年级语文教学总结:https://www.deipei.com/zongjie/511.html 房屋买卖合同范本:https://www.deipei.com/hetong/968.html 学校党建工作总结:https://www.deipei.com/zongjie/502.html 大学生暑期实习报告:https://www.deipei.com/shixibaogao/1017.html 野性的呼唤读后感:https://www.deipei.com/duhougan/711.html 公务员转正申请书:https://www.deipei.com/fanwen/830.html 学校安全会议记录:https://www.deipei.com/gongzuo/756.html 见习工作总结:https://www.deipei.com/zongjie/696.html 中考满分作文600字:https://www.deipei.com/zuowen/599.html 我的心爱之物作文:https://www.deipei.com/zuowen/701.html 高考复习计划:https://www.deipei.com/xuexi/520.html 考核总结:https://www.deipei.com/zongjie/776.html 论文致谢词范文:https://www.deipei.com/shixibaogao/780.html 副班主任工作总结:https://www.deipei.com/zongjie/552.html 光的反射教案:https://www.deipei.com/jiaoxue/900.html 我的奇思妙想作文:https://www.deipei.com/zuowen/917.html 银行行长述职报告:https://www.deipei.com/shuzhibaogao/802.html 催款函范文:https://www.deipei.com/fanwen/685.html 高二语文教学总结:https://www.deipei.com/zongjie/630.html 乘着梦想的翅膀主题班会:https://www.deipei.com/jiaoxue/1010.html 辩论赛主持稿:https://www.deipei.com/yanjianggao/715.html 九年级语文教学反思:https://www.deipei.com/jiaoxue/604.html 房屋出租合同书:https://www.deipei.com/hetong/787.html 亲人作文:https://www.deipei.com/zuowen/928.html 学游泳作文:https://www.deipei.com/zuowen/707.html 鸡兔同笼教学反思:https://www.deipei.com/jiaoxue/977.html 建筑施工实习报告:https://www.deipei.com/shixibaogao/517.html 敬老院活动方案:https://www.deipei.com/fangan/616.html 外出学习考察报告:https://www.deipei.com/shixibaogao/574.html 数学论文:https://www.deipei.com/xuexi/808.html