Age | Commit message (Collapse) | Author |
|
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
|
|
* add explain visualizer
* format files
* remove humanize dependency
* disable by default
* add explain visualizer
* run black
|
|
|
|
* Add initial sshtunnel support
* Force CI to rerun.
* Fix unit test for 3.6.
* Black.
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
|
|
|
|
|
|
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`
|
|
These config properties got introduced in 41dd24e8 as a means to have
more granular control over the syntax highlighting. The problem is that
these cannot be in the default config file since `get_config()` always
reads both the default config file and the user specified one, and there
is no way to unset these variables in the user specified config file to
restore their default behavior. Even if there would be a way, it
wouldn't be intuitive at all to be required to unset some random
settings under the `[colors]` section just to be able to use the well
documented `syntax_style` setting.
Note that one *can* still set these three lines in their user config
file if they want to utilize them.
Resolves #1212
|
|
|
|
* Add schema suggestion for functions
- Update sqlcompletion.py
- Update metadata files
* Move autocomletion for function under condition
- Make sure suggestion are only added under drop, alter etc.
|
|
|
|
* Updated author, changelog for supporting color of string, number, keyword
* Added string, number, keyword custom color
|
|
|
|
* Update python version from 2.7 to 3.8 in Dockerfile
* Update AUTHORS and changelog.rst
|
|
* 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
|
|
* 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
|
|
* close connections + added to authors + changelog
* check conn exists
|
|
* 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)
|
|
Using `is not` for comparing string literals raises warning that != should be
used.
Fixes #1138
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
* Add keybinding for alt-enter to introduce a line break.
* Update changelog.
* Added myself to AUTHORS file
* Fixed quote issue by pre-commit
|
|
* 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
|
|
* 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
|
|
|
|
fix issue: https://github.com/dbcli/pgcli/issues/1041
|
|
* Allow application_name to be overridden
* Fixed broken link.
* Default password value is empty str?
* Make pep8 happier.
|
|
|
|
|
|
* 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
|
|
* +added esc key to dismiss the autocomple list
* +added esc key to dismiss the autocomple list
|
|
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
|
|
* added -u flag
|
|
|
|
|
|
"\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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|