Age | Commit message (Collapse) | Author |
|
|
|
I added two args for PGCli init, because I think we need to figure out
which history file to use on `__init__`. And we will need `histfile`
`alias_dsn` for that.
PS: I don't think change PGCli's property after initializing is good.
|
|
|
|
|
|
* 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.
|
|
|
|
InputMode.REPLACE_SINGLE was added to prompt-toolkit.
This fixes Exception <InputMode.REPLACE_SINGLE: 'vi-replace-single'>
in single-char replace mode when using prompt_toolkit>=3.0.6.
|
|
* add a specific error message when DSN with provided alias is not found
* update changelog & authors file
|
|
* Updated all data types literals
* Updated sql functions literals
* Updated changelog and auther
* Updated test code
* Added datatype test case
|
|
|
|
* Updated author, changelog for supporting color of string, number, keyword
* Added string, number, keyword custom color
|
|
|
|
* Support style for missing value.
* update changelog.
* upgrade minimal version of cli_helpers, in order to use style for null.
|
|
|
|
|
|
* 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
|
|
bugfix: don't echo a newline when output is empty.
|
|
|
|
* 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
|
|
* add parse_service_info
* added tests
* changelog + AUTHORS
* py35
|
|
|
|
|
|
|
|
* close connections + added to authors + changelog
* check conn exists
|
|
* Drop Python3.5.
* delete 3.5 from setup.py
* fix black format. Using python3.7 for development now.
* black target to py36
|
|
* 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 4b6d0496ccc18d0ebd696b5f21d8065c4a9b0cb9.
* deprecated py27 using black.
* remove 2.7 from travis.
* update setup.py: delete python 2.7 support.
|
|
* 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
|
|
|
|
support ansi escape sequences for prompt colors
|
|
Closes #1128
|
|
|
|
|
|
|
|
|
|
|
|
[WIP] Fix for PQconninfo not available.
|
|
|
|
|
|
Escape then enter intended as two separate key presses is a very common
sequence when using vi mode - returning to normal mode from insert mode
(escape) and then submitting the query (enter). The presence of the
escape-enter key binding overrides this behaviour by inserting
undesirable newlines (newline is be easily inserted when in insert mode
by pressing enter) or by introducing a noticable delay/lag before enter
can be pressed after escape, due to prompt toolkit not being able to
recognise escape immediately (since it may form part of an escape-enter
sequence).
|
|
* Fix the condition for <enter> key.
* Improve the debug message and remove debug statement.
|
|
|
|
Take account of table aliases when completing function args (#1048)
|
|
(#1048)
|
|
|
|
|
|
Use a (conditional) Enter key-binding to force-handle a multi-line
buffer, rather than doing so by (conditionally) disabling the multiline
mode of prompt_toolkit.
This has the benefit of being more efficient (the multiline Condition
filter is called very often, which (due to the repeated query parsing)
causes editing to become slow with a large buffer that ends in a
semicolon), clearer in intent (we want to force-handle the query, rather
than (temporarily) disable multiline mode which indirectly forces the
buffer to be handled) and avoids a bug in multi-line history search
(issue #1031)
|
|
|
|
|
|
queries.
|