Age | Commit message (Collapse) | Author |
|
* fixed #1403, improved comment handling
* black + hooks + changelog
---------
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
|
|
* WIP.
* Add some comments about porting from psycopg 2 to 3 (#1318)
* WIP
* Disable _set_wait_callback()
* TransactionStatus.
* First working query.
* More pg3 changes.
* test_pgexecute still fails.
* Fix bytea support.
* Fix json and enum unicode.
* Get unit tests to pass.
* Behave tests still break, WIP.
* Prompt seems to be displayed fine, why don't the tests see the whitespace?
* Python version.
* Fix test.
* Black.
* Added black to dev reqs.
* nbu link for donations.
* Use psycopg.sql to format statement.
* Special case for show help in pgbouncer.
* Fix test.
* Added integration test.
* Install pgbouncer in ci.
* Fix integration test.
* Remove tmate session.
* Revert commenting out python versions.
* Pin pgspecial to >=2.
* Changelog.
Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Co-authored-by: Amjith Ramanujam <amjith.r@gmail.com>
|
|
* add explain visualizer
* format files
* remove humanize dependency
* disable by default
* add explain visualizer
* run black
|
|
|
|
|
|
* Another attempt to fix pgbouncer error (1093.)
* Fixes for various pgbouncer problems.
* different approach with custom cursor.
* Fix rebase.
* Missed this.
* Fix completion refresher test.
* Black.
* Unused import.
* Changelog.
* Fix race condition in test.
* Switch from is_pgbouncer to more generic is_virtual_database, and duck-type it. Add very dumb unit test for virtual cursor.
* Remove debugger code.
|
|
1. `class A(object)` can be written as `class A:`
2. replace `dict([…])` and `set([…])` with `{…}`
3. use f-strings or compact `.format`
4. use `yield from` instead of `yield` in a `for` loop
5. import `mock` from `unittest`
6. expect `OSError` instead of `IOError` or `select` error
7. use Python3 defaults for file reading or `super()`
8. remove redundant parenthesis (keep those in tuples though)
9. shorten set intersection instead of creating lists
10. backslashes in strings do not have to be escaped if prepended with `r`
|
|
|
|
|
|
|
|
* Drop Python3.5.
* delete 3.5 from setup.py
* fix black format. Using python3.7 for development now.
* black target to py36
|
|
* 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)
|
|
|
|
|
|
|
|
queries.
|
|
* Added changes to skip empty queries
Empty queries consist of one or more semicolons
* Reformatted with black
* Added contribution to changelog and name to AUTHORS
* Black.
|
|
|
|
|
|
This is similar to mycli.
|
|
* 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.
|
|
|
|
|
|
* Dsn parameters not always present.
|
|
|
|
|
|
* Psycopg2 already has a method to format a dsn. We should use it. Fix for #1043.
* Changelog.
* pep8.
|
|
* Allow application_name to be overridden
* Fixed broken link.
* Default password value is empty str?
* Make pep8 happier.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
* 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
|
|
Remove extension and private functions from completer.
|
|
This fixes #919.
|
|
|
|
|
|
|
|
Instead of whitelisting all errors that do not require reconnecting, we simply
only reconnect if we detect a disconnect has occurred.
psql notably behaves in a similar way: https://git.io/fbxuc#L1461
Fixes #807
|