summaryrefslogtreecommitdiffstats
path: root/pgcli
AgeCommit message (Collapse)Author
2020-12-02fix black format.feature/history-configlaixintao
2020-10-25[wip] featu: supprt --history option.laixintao
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.
2020-10-15doc: add history_file per dsn config, and --history option.laixintao
2020-09-14format code using black.laixintao
2020-09-08Add schema suggestion for functions (#1206)Jan Brun Rasmussen
* 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.
2020-09-06Add Token.Prompt/Continuation (#1207)bitkeen
2020-09-05Use InputMode.REPLACE_SINGLE (#1208)bitkeen
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.
2020-07-31More explicit error message when DSN alias is not found (#1198)Tom Caruso
* add a specific error message when DSN with provided alias is not found * update changelog & authors file
2020-07-31Update suggestion literals (#1195)Sky.G.Uieen
* Updated all data types literals * Updated sql functions literals * Updated changelog and auther * Updated test code * Added datatype test case
2020-07-28Move from humanize to pendulum library for displaying query durations (#1199)Tom Caruso
2020-07-07Add custom color (#1196)Sky.G.Uieen
* Updated author, changelog for supporting color of string, number, keyword * Added string, number, keyword custom color
2020-06-26Fix for #1193 list index out of range on sql comment.Irina Truong
2020-05-28Support style for missing value. (#1186)laixintao
* Support style for missing value. * update changelog. * upgrade minimal version of cli_helpers, in order to use style for null.
2020-05-26Minor typo fixes in pgclircanthonydb
2020-05-07Fix bug introduced in #1102. (#1178)Irina Truong
2020-04-23Add support for using pspg as the pager. (#1173)pmav99
* 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-18Merge pull request #1171 from dbcli/bugfix/no-new-lineAmjith Ramanujam
bugfix: don't echo a newline when output is empty.
2020-04-18bugfix: don't echo a newline when output is empty.laixintao
2020-04-17show_bottom_toolbar - Feature to Show/Hide Toolbar (#1170)Stephano Paraskeva
* 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-17Add pg_service.conf handling (#1155)g.denis
* add parse_service_info * added tests * changelog + AUTHORS * py35
2020-04-10Releasing version 3.0.0v3.0.0Irina Truong
2020-03-30Add an example for how to use the colored prompt. (#1163)Amjith Ramanujam
2020-03-14removed py2-related stuffGeorgy Frolov
2020-03-12Fix: Unable to drop previously connected-to database (#1152)g.denis
* close connections + added to authors + changelog * check conn exists
2020-03-11Drop 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-09Deprecate 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 4b6d0496ccc18d0ebd696b5f21d8065c4a9b0cb9. * deprecated py27 using black. * remove 2.7 from travis. * update setup.py: delete python 2.7 support.
2020-02-13Add Support for partitioned tables. (#1145)lazydba247
* 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-01-14Fix warning raised for using `is not` to compare string literal (#1139)George Thomas
Using `is not` for comparing string literals raises warning that != should be used. Fixes #1138
2019-12-19add main file to allow python3 -m pgcli executionJonas Jelten
2019-12-08Merge pull request #1122 from TheJJ/prompt-colorsAmjith Ramanujam
support ansi escape sequences for prompt colors
2019-12-05Fix simple typo: thows -> throwsTim Gates
Closes #1128
2019-12-04Releasing version 2.2.0v2.2.0Irina Truong
2019-11-25support ansi escape sequences for prompt colorsJonas Jelten
2019-10-29run black againMartin Matějek
2019-10-29Fix logging-format-interpolationMartin Matějek
2019-10-29black formatingMartin Matějek
2019-10-28Merge pull request #1112 from dbcli/j-bennet/pqconninfo-1110Amjith Ramanujam
[WIP] Fix for PQconninfo not available.
2019-10-26Use libpq version instead of psycopg2 version.Amjith Ramanujam
2019-10-26Log message.Irina Truong
2019-10-23Disable escape-enter keybinding in vi modeOwen Stephens
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).
2019-10-23Fix the condition for <enter> key. (#1114)Amjith Ramanujam
* Fix the condition for <enter> key. * Improve the debug message and remove debug statement.
2019-10-19Fix for PQconninfo not available.Irina Truong
2019-10-16Merge pull request #1107 from owst/function_arg_completions_with_aliasAmjith Ramanujam
Take account of table aliases when completing function args (#1048)
2019-10-16fixup! fixup! Take account of table aliases when completing function args ↵Owen Stephens
(#1048)
2019-10-16fixup! fixup! Handle a multi-line query on Enter key-press (fixes #1031)Owen Stephens
2019-10-13fixup! Handle a multi-line query on Enter key-press (fixes #1031)Owen Stephens
2019-10-13Handle a multi-line query on Enter key-press (fixes #1031)Owen Stephens
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)
2019-10-12Take account of table aliases when completing function args (#1048)Owen Stephens
2019-09-29rm Google Group from main.pyChristopher Harrington
2019-08-28Get server params, such as is_superuser and server_version, without extra ↵Irina Truong
queries.