1
0
Fork 0
Commit Graph

2176 Commits

Author SHA1 Message Date
Igor Kim b994c75701
Update python version from 2.7 to 3.8 in Dockerfile (#1181)
* Update python version from 2.7 to 3.8 in Dockerfile

* Update AUTHORS and changelog.rst
2020-05-11 09:51:23 -07:00
Irina Truong 901ef31fd1
Fix bug introduced in #1102. (#1178) 2020-05-07 16:41:23 -07:00
pmav99 bcb0c8bce7
Add support for using pspg as the pager. (#1173)
* Stop printing "status" when table_format is "csv"

* Use the "unix" dialect on *nix for CSV output.

* Use a pager when `pspg` has been configured with CSV "table_format".

Fix #1102
2020-04-23 10:17:40 -07:00
Amjith Ramanujam 3071de14f5 Update changelog for the compact output. 2020-04-18 19:08:07 -07:00
Amjith Ramanujam 64c0b3553d
Merge pull request #1171 from dbcli/bugfix/no-new-line
bugfix: don't echo a newline when output is empty.
2020-04-18 19:06:25 -07:00
laixintao 94718efc35
bugfix: don't echo a newline when output is empty. 2020-04-18 14:05:34 +08:00
Stephano Paraskeva 936475258d
show_bottom_toolbar - Feature to Show/Hide Toolbar (#1170)
* adds ternary to decide whether bottom_toolbar is shown based on config value

* runs black format

* adds name to authors

* modifies changelog.rst

* removes change in changelog.rst

* formats config

* removes unused variable, adds change to changelog

* changes default back to true

* removed reference to var
2020-04-17 22:58:13 -07:00
g.denis f3ac559844
Add pg_service.conf handling (#1155)
* add parse_service_info

* added tests

* changelog + AUTHORS

* py35
2020-04-17 14:52:19 -07:00
Irina Truong 005fd2fcee Releasing version 3.0.0 2020-04-10 15:16:44 -07:00
Irina Truong 63b87ba3a8
New release 3.0.0. (#1165) 2020-04-10 15:14:56 -07:00
赖信涛 b6e2a229e5
upgrade prompt-toolit to 3.0 (#1149)
* upgrade prompt-toolit to 3.0

fix: https://github.com/dbcli/pgcli/issues/1148

related:
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/886

in order to make the `behave` test pass, I have to:

- extend timeout for database connection test.
- extend timeout for basic command expect.
- extend timeout for features/steps/crud_table.py:: see data selected.
- disable cpr for features but "run the cli"

* [ci] disable CPR for all behave tests.

* bugfix: remove duplicated prompt expect.

* [ci] delete CPR env setting.

* Revert "[ci] delete CPR env setting."

This reverts commit fe4d5b565e.

* revert the extending timeout back.

* [ci] test when didn't disable CPR.

* Revert "[ci] test when didn't disable CPR."

This reverts commit d379b1e736.
2020-04-05 20:56:31 -07:00
antoniotrkdz 93c14f844e
pgcli bash completion script (#892)
This file is a bash completion script for pgcli.
It allows to <tab> complete database names, users and hosts, plus showing the other available options when calling pgcli atthe terminal prompt.
In order to work it steals a couple of functions from psql, which is the postgres CLI client installed by default. 
It is intended to be packaged with the debian package and to be copied on /usr/share/bash-completion/completions/pgcli (filename changes for consistency) upon installation of the package.
Please make the debian package mantainer aware of it and include it in the relevant section of the installation scripts/package.
I hope it is useful.
2020-04-03 15:15:53 -07:00
Chris Barnes d9ea18d3a0
Add --help output to README (#1164)
* Add --help output to README

* README: Add reference to psql env variables
2020-03-30 20:50:06 +08:00
Amjith Ramanujam 2a28399c3f
Add an example for how to use the colored prompt. (#1163) 2020-03-30 09:32:00 +08:00
赖信涛 d444db412b
upgrade coverage to 5.x (#1158) 2020-03-18 12:59:01 -07:00
赖信涛 e9874e2f96
python3.8: add travis test and setup.py class. (#1157) 2020-03-18 09:11:10 -07:00
Georgy Frolov 61c81b05f5 removed py2-related stuff 2020-03-14 10:53:43 +08:00
g.denis 0f3d4602ef
Fix: Unable to drop previously connected-to database (#1152)
* close connections + added to authors + changelog

* check conn exists
2020-03-12 13:45:59 -07:00
赖信涛 bc7a5d0100
Drop Python3.5. (#1154)
* Drop Python3.5.

* delete 3.5 from setup.py

* fix black format. Using python3.7 for development now.

* black target to py36
2020-03-11 13:58:13 -07:00
赖信涛 fd77549754
Deprecate Python2.7. (#1153)
* deprecate Python2.7.

So we can use latest version of prompt-toolit.
Relate: https://github.com/dbcli/pgcli/pull/1149

* black format, remove 2.7 support.

* using version py35 for black.

* Revert "black format, remove 2.7 support."

This reverts commit 4b6d0496cc.

* deprecated py27 using black.

* remove 2.7 from travis.

* update setup.py: delete python 2.7 support.
2020-03-09 20:14:51 -07:00
lazydba247 91263c37b9
Add Support for partitioned tables. (#1145)
* partitioned tables: add support

Starting from 9.6+ relkind has new members (more info here: https://www.postgresql.org/docs/12/catalog-pg-class.html)

* Update AUTHORS

* Update changelog.rst

* foreign tables: add support

Starting from 9.6+ relkind has new members (more info here: https://www.postgresql.org/docs/12/catalog-pg-class.html)
2020-02-13 14:24:37 -08:00
赖信涛 8fe316e537 Drop Python 3.4 support (#1141)
* remove python3.4 support.

Python 3.4 has reached end-of-life.
https://www.python.org/downloads/release/python-340/

* drop maximun version of pytest

* update changelog

* add laixintao to contributors, delete py34 from tox
2020-01-15 22:45:16 -08:00
George Thomas 77a361966a Fix warning raised for using `is not` to compare string literal (#1139)
Using `is not` for comparing string literals raises warning that != should be
used.

Fixes #1138
2020-01-14 20:56:07 -08:00
Amjith Ramanujam 2b55da8481
Merge pull request #1123 from TheJJ/main-file
add main file to allow python3 -m pgcli execution
2020-01-07 06:55:36 -08:00
Amjith Ramanujam c74bfe37ac
Merge branch 'master' into main-file 2020-01-07 06:55:17 -08:00
Amjith Ramanujam a5f7d9196c
Merge pull request #1135 from BrownShibaDog/master
Fix dead link of behave package.
2020-01-07 06:53:42 -08:00
BrownShibaDog eb2718ba05 Add my name to changelog. 2020-01-03 08:50:34 +09:00
BrownShibaDog 6e4fdd4415 Add line to AUTHORS. 2020-01-01 21:51:16 +09:00
BrownShibaDog cc27ec3b9a Add lines to changelog.rst. 2020-01-01 21:48:32 +09:00
BrownShibaDog 1826db534b Fix dead link of behave. 2019-12-31 17:47:37 +09:00
Jonas Jelten bc66b85730 add main file to allow python3 -m pgcli execution 2019-12-19 00:18:14 +01:00
Amjith Ramanujam 901812a7bf
Merge pull request #1122 from TheJJ/prompt-colors
support ansi escape sequences for prompt colors
2019-12-08 19:19:43 -08:00
Amjith Ramanujam 257d0f2786
Merge pull request #1119 from mmtj/setup-cleanup
setup: Simplify getting module version
2019-12-08 19:18:42 -08:00
Amjith Ramanujam 31d0ea9d22
Merge pull request #1129 from timgates42/bugfix/typo_throws
Fix simple typo: thows -> throws
2019-12-08 19:17:14 -08:00
Tim Gates 8456dcb18f
Fix simple typo: thows -> throws
Closes #1128
2019-12-05 08:35:22 +11:00
Irina Truong 69b2da9f8e Add wheel to dev reqs (needed to release). 2019-12-04 09:29:24 -08:00
Irina Truong be04f1fc5e Releasing version 2.2.0 2019-12-04 09:25:02 -08:00
Irina Truong 51d4d4a04c
J bennet/release 2.2.0 (#1126)
* Changelog.

* Bump pgspecial.

* Restrict prompt_toolkit to <3.0.0.
2019-12-04 09:24:17 -08:00
Jonas Jelten 36605174a4 support ansi escape sequences for prompt colors 2019-11-25 22:51:15 +01:00
Martin Matějek 202ce851ce
setup: Simplify getting module version 2019-10-29 21:33:09 +01:00
Amjith Ramanujam 0f969aba0c
Merge pull request #1118 from mmtj/logging-cleanup
Logging cleanup
2019-10-29 10:05:56 -07:00
Martin Matějek 6b2e8df8bd
run black again 2019-10-29 17:47:18 +01:00
Martin Matějek 23eb840ad7
Update AUTHORS 2019-10-29 02:59:56 +01:00
Martin Matějek 01520ac728
Fix logging-format-interpolation 2019-10-29 02:57:00 +01:00
Martin Matějek a192255d7e
black formating 2019-10-29 02:56:28 +01:00
Amjith Ramanujam f3dc23a94b
Merge pull request #1112 from dbcli/j-bennet/pqconninfo-1110
[WIP] Fix for PQconninfo not available.
2019-10-28 10:08:59 -07:00
Irina Truong d758781858 Changelog. 2019-10-28 09:19:59 -07:00
Irina Truong c145291072 Bump psycopg2 to 2.8. 2019-10-28 09:19:13 -07:00
Amjith Ramanujam 43e79d0027 Use libpq version instead of psycopg2 version. 2019-10-26 19:45:02 -07:00
Irina Truong 76133a3740 Changelog. 2019-10-26 13:22:54 -07:00