1
0
mirror of https://github.com/dbcli/pgcli synced 2024-05-31 01:17:54 +00:00
Commit Graph

260 Commits

Author SHA1 Message Date
Irina Truong
a2ed5e46d1
Changelog update before release. (#1062) 2019-05-30 17:10:15 -07:00
Alexander Zawadzki
df4dd00585 README.rst: tidy up redundant instructions (#1061)
* README.rst: tidy up redundant instructions 

Remove the README section which detailed how to force `psycopg2` 2.7 dependency installation from source rather than binary.

`psycopg2` 2.7 would automatically favour installation from binary. A bug affecting some users made it desirable to have the option to install from source instead. The README detailed how to do this using pip's `--no-binary` option (nice!).

`psycopg2` 2.8 has now split the binary and source dependencies into different packages with different names (source: [psycopg2 docs](http://initd.org/psycopg/docs/install.html#change-in-binary-packages-between-psycopg-2-7-and-2-8)) which makes the `--no-binary` instructions redundant. To specify source/binary you now need to explicitly specify the desired package.

As of #1060, installing `pgcli` from pip will result in the installation of `psycopg2` 2.8 from source.

* README: additional instructions for psycopg2 2.7 users

Anyone limited to psycopg2 2.7 may still encounter some known issues when installing from binary.
Add a link to the README to acknowledge this, and help those users install it from source.

* Update changelog.rst

* Update AUTHORS

* Update changelog
2019-05-30 10:03:47 -07:00
Telmo "Trooper
8c597751fd Allow psycopg2 up to 2.8.2 (#1060)
* Allow psycopg2 up to 2.8.2

This fixes the issue with pgcli not working on Arch Linux, since the package `python2-psycopg2` is already on 2.8.2.

* Added name to 'AUTHORS' and contribution to 'changelog.rst' referring to #2de6266

* Allow for newer versions of psycopg2 to be used
2019-05-29 21:14:32 -07:00
Irina Truong
8cb7009bcd
black all the things. (#1049)
* added black to develop guide

* no need for pep8radius.

* changelog.

* Add pre-commit checkbox.

* Add pre-commit to dev reqs.

* Add pyproject.toml for black.

* Pre-commit config.

* Add black to travis and dev reqs.

* Install and run black in travis.

* Remove black from dev reqs.

* Lower black target version.

* Re-format with black.
2019-05-25 13:08:56 -07:00
Irina Truong
300febccdd Dsn parameters not always present. (#1054)
* Dsn parameters not always present.
2019-05-11 07:57:45 +02:00
Amjith Ramanujam
fe1b202c55
Merge branch 'master' into pr1047 2019-05-06 11:11:47 -07:00
Amjith Ramanujam
dc43430a9a Update changelog. 2019-05-06 07:29:48 -07:00
Irina Truong
f1fc864281 changelog. 2019-05-04 07:33:28 -04:00
VVelox
1421da3c33
Update changelog.rst 2019-05-03 04:24:27 -05:00
zzl
6d1b653e24 lazy load keyring. (#1046)
fix issue: https://github.com/dbcli/pgcli/issues/1041
2019-05-01 08:53:55 -07:00
Irina Truong
3fd91012f2
More intelligent dsn format (#1045)
* Psycopg2 already has a method to format a dsn. We should use it. Fix for #1043.

* Changelog.

* pep8.
2019-04-28 15:06:01 -07:00
Irina Truong
9a53fe859a Possibly fix #1040. (#1042)
Fix #1040
2019-04-28 08:00:40 +02:00
raylu
eef0e0d65c Allow application_name to be overridden (#1044)
* Allow application_name to be overridden

* Fixed broken link.

* Default password value is empty str?

* Make pep8 happier.
2019-04-27 21:25:19 -06:00
Nathan Vērzemnieks
4af4e33e31 Allow escape to switch to vi navigation mode (#1039) 2019-04-13 13:22:03 -07:00
Irina Truong
ab18b08903
Changelog update before release. Bump cli_helpers. (#1030) 2019-04-05 17:24:10 -07:00
Irina Truong
b0529bcc4f Changelog. 2019-03-22 16:55:16 +00:00
Irina Truong
21e7c7cbc1 Changelog. 2019-03-18 03:10:52 +00:00
Amjith Ramanujam
3652134bc5
Merge branch 'master' into system-error 2019-03-16 21:18:21 -07:00
Amjith Ramanujam
cbd944ffab
Merge branch 'master' into tab-on-line-start 2019-03-16 14:06:24 -07:00
Amjith Ramanujam
5d55e6822b Changelog update. 2019-03-15 20:32:23 -07:00
Irina Truong
c447ffc887 Changelog. 2019-03-04 16:16:47 -08:00
Scott Brenstuhl
1c66dece59 Add reconnect automatically enhancement (#1009)
* Adding reconnect automatically enhancement

* files for pr checklist

* changelog fixes

* setting auto-reconnect to be the default

* fix issue of getting logged queries instead of most recent

* travisci pep8 check issue
2019-02-23 16:37:26 -08:00
ಠ_ಠ
bd0aaefdd2 keybinding for dismissing autocompletelist (#1007)
* +added esc key to dismiss the autocomple list

* +added esc key to dismiss the autocomple list
2019-02-12 16:18:32 -08:00
Dick Marinus
351135b61e fix unhashable formatted text 2019-02-08 21:24:36 +01:00
Dick Marinus
862706ff03 Remove build dir before running sdist (#1002) 2019-01-25 12:37:17 -08:00
Amjith Ramanujam
3eff3bbebd
Merge pull request #1001 from dbcli/internal/add_behave_logging
Missed logfile for earlier clean up and add behave logging changes
2019-01-22 10:46:31 -08:00
Dick Marinus
a88c693c49 fixup! Clean up and add behave logging (#956) 2019-01-22 19:18:39 +01:00
Marcin Cieślak
4542637eff Use pexpect.TIMEOUT instead of pexpect.exceptions.TIMEOUT
All pexpect submodules have been moved into the pexpect package as of version 3.0.
2019-01-22 00:05:20 +00:00
Marcin Cieślak
ef8aac61c4 Determine hstore OID from the system view (#992)
Avoid error message on the server side if hstore
extension is not installed in the current database.

Issue: https://github.com/dbcli/pgcli/issues/991
2019-01-21 16:00:25 -08:00
Mikhail Elovskikh
f614cef7ed Support multihost connection string (#978)
* Switch to psycopg2 parse_dsn instead of urlparse

* Added wronglink to contributors and updated changelog

* Fix test codestyle

* Support for PGPORT customization in tests

* Support for PGPORT customization in tests

* Refactored PGExecute init and moved short_host generation to object property

* Fix test util codestyle

* Fix local tests run

* Store PGExecute initial params in  _conn_params and added PGExecute.copy method

* Fix codestyle

* Added docstring to PGExecute.copy() method
2019-01-03 14:27:47 -08:00
Irina Truong
b3bf7ec188
Changelog update for bugfix release. (#984) 2019-01-02 16:31:05 -08:00
Irina Truong
0cae7e2036
Remove some functions completions (#982)
Remove extension and private functions from completer.
2019-01-02 16:15:59 -08:00
igncampa
7b03f8e204 allow passing -u flag (lowercase) to specify username (#975)
* added -u flag
2018-11-30 15:21:12 -08:00
Amjith Ramanujam
3b9041fe36 Fix special commands (#973)
* Add tests for special commands completion.
2018-11-27 07:49:54 -08:00
Irina Truong
580ff415c8
going to release. (#972) 2018-11-18 20:16:29 -08:00
Amjith Ramanujam
25a66ecfb3 Fix the StopIteration issue in Python 3.7 (#971)
* Fix the StopIteration issue in Python 3.7
2018-11-18 20:11:15 -08:00
Amjith Ramanujam
923f2d6441 Enable suspend using C-Z. (#970)
* Enable suspend using C-Z.

* Update changelog.
2018-11-17 19:41:34 -08:00
Amjith Ramanujam
945461bfa2
Merge branch 'master' into tab-on-line-start 2018-11-17 19:34:36 -08:00
Amjith Ramanujam
ec18ff0141
Merge branch 'master' into bugfix/named-queries-from-config 2018-11-17 11:25:20 -08:00
igncampa
819f66e5b5 Contrib guide improv (#946)
improved DEVELOP docs
2018-11-13 14:01:47 -08:00
Dick Marinus
94475e6283 Require prompt_toolkit>=2.0.6. 2018-11-11 13:42:33 -08:00
Daniel Egger
b92743368b Bugfix for #938: load named queries from provided config file 2018-10-31 18:46:04 +01:00
Irina Truong
589c2abdfb
Missed changelog update. (#960) 2018-10-30 07:41:38 -07:00
Dick Marinus
12ad10f697 Clean up and add behave logging (#956) 2018-10-14 13:53:19 -07:00
Irina Truong
fcf0eb022e
Fix for pgcli --list. (#952)
Fix for pgcli --list
2018-10-02 17:10:43 -07:00
Artur Balabanov
f897ea466e Merge branch 'master' into tab-on-line-start 2018-10-01 10:25:13 +01:00
Irina Truong
029a1be016 Changelog update to release 2.0.0. 2018-09-28 14:25:54 -07:00
Irina Truong
dfe700edea Changelog update to release 1.11.0. 2018-09-24 16:23:26 -07:00
Max Rothman
172c9cd271 Respect \pset pager on expected behavior
"\pset pager" has three possible values: "always", "on", and "off".
pgcli previously treated all non-"off" values as "always". This change
implements the expected behavior, which is to use the pager when the
output is larger than the terminal height (See \pset pager in
https://www.postgresql.org/docs/9.2/static/app-psql.html). Pgcli adds to
this by also using the pager when the output is wider than the terminal
width.

Fixes #813
2018-09-23 17:02:08 -04:00
Irina Truong
3f52d8db96 Let's release more bugfixes. 2018-07-27 12:03:12 -07:00