summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-08-23Releasing version 3.2.0v3.2.0Amjith Ramanujam
2021-08-23Update changelog for 3.2.0 release.Amjith Ramanujam
2021-05-21Another attempt to fix pgbouncer error (1093.) (#1097)Irina Truong
* 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.
2021-05-07Merge pull request #1266 from dbcli/search_path_functionsAmjith Ramanujam
Include functions from search_path in completion.
2021-05-07Blacken.Amjith Ramanujam
2021-05-07Add tests for search_path function completion.Amjith Ramanujam
2021-05-06Change precommit hook to use stable black.Amjith Ramanujam
2021-05-06Blacken.Amjith Ramanujam
2021-05-06Include functions from search_path in completion.Amjith Ramanujam
2021-05-06Merge pull request #1265 from psacawa/func-prAmjith Ramanujam
WIP: Support Missing Function Literals
2021-05-06Merge branch 'master' into func-prAmjith Ramanujam
2021-05-06Add missing function literalsPaweł Sacawa
2021-05-05Black formatting.Amjith Ramanujam
2021-05-05Merge pull request #1263 from psacawa/prAmjith Ramanujam
Fix: ANSI escape codes in first line make the cli choose expanded output incorrectly...
2021-05-02Modify changelogPaweł Sacawa
2021-05-02Fix: ANSI escape codes in first line make the cli choose expanded output ↵Paweł Sacawa
incorrectly... The format_output chooses to output as a table or in the expanded format on the basis of the length of the first line of the table formatter (`len`). However, this first line contains a lot of ANSI excape codes, so this comparison is wrong, and the expanded mode is used either way. This patch strips these escape codes before the comparison.
2021-03-12Use configured pager if table format is csv. (#1260)Irina Truong
* Use configured pager if table format is csv. * Changelog. * Simplify.
2021-03-12Updated Vagrant file as it wasn't working. (#1255)ERYoung11
* Updated Vagrant file as it wasn't working. * adding a space to kick the build process. * removed packaging which wasn't really needed. Co-authored-by: ERYoung11 <YoungEricR@JohnDeere.com>
2021-03-12fix IPython magic (#1253)Georgy Frolov
2021-03-11Merge pull request #1258 from ERYoung11/fix_test_main_windows_errorGeorgy Frolov
skipping initial comments in pgconfig file did not work on Windows.
2021-03-10fix import (#1252)Georgy Frolov
2021-03-10Updating authorsERYoung11
2021-03-10skipping initial comments in pgconfig file did not work on Windows.ERYoung11
2021-02-26Changelog.Irina Truong
2021-02-27Merge pull request #1251 from dbcli/j-bennet/1240-fix-config-writingGeorgy Frolov
Preserve comments when writing to config file.
2021-02-26Black.Irina Truong
2021-02-26Preserve comments when writing to config file.Irina Truong
2021-02-22skip initial comment in pg_session file (#1245)Georgy Frolov
* skip initial comment in pg_session file * add test
2021-02-22fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6 (#1246)Georgy Frolov
* fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6 * changelog
2021-02-22Fix test_config.py on Windows (#1247)ERYoung11
* fixing test_config.py to work on windows * Getting rid of odd characters in wrappager.py * added a space to a comment to try to kick the github workflow. Co-authored-by: Eric Young <YoungEricR@JohnDeere.com>
2021-02-17Remove gitter links, update build status badge. (#1244)Irina Truong
2021-02-15Postgres user has password in ci. (#1243)Irina Truong
2021-02-12Finer control over destructive warning. (#1242)Irina Truong
* Finer control over destructive warning. * Review feedback. * Changelog. * Run integration tests with --warn=moderate. * Fix typo. * Black.
2021-02-12Modernize code to Python 3.6+ (#1229)Miroslav Šedivý
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`
2021-02-10Fix issue where `syntax_style` config value would not have any effect (#1241)Eero Ruohola
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
2021-01-18Conditional didn't work in CI. (#1237)Irina Truong
* Conditional didn't work in CI. * Try to fix flaky exit.
2021-01-08Trigger CI on pull request, not on push. (#1233)Irina Truong
2021-01-05Add 3.9 to build matrix. (#1232)Irina Truong
2021-01-05Merge pull request #1231 from dbcli/j-bennet/github-actionsAmjith Ramanujam
Switch to Github Actions
2021-01-04Switch to Github Actions vs Travis.Irina Truong
2020-12-11Releasing version 3.1.0v3.1.0Irina Truong
2020-12-11Changelog update before release. (#1227)Irina Truong
2020-12-01dependencies: add support for sqlparse 0.4.x (#1224)Kevin Marsh
2020-10-14doc: update the documentation for connection via SSL. (#1215)laixintao
2020-10-13test: test pgcli on python3.9 (#1214)laixintao
* test: test pgcli on python3.9 * test on 3.9 * use 3.9-dev version from travis. * try to fix pexpect EOF.
2020-09-14Merge pull request #1211 from dbcli/bugfix/behavelaixintao
fix behave test, keep support for prompt-toolkit 2.x; lock prompt-toolkit==3.0.5 for test.
2020-09-14format code using black.laixintao
2020-09-14lock prompt_toolkit on 3.0.5 for prompt_toolkit.laixintao
2020-09-14disable cache for pip install.laixintao
Otherwise it will use cache from travis.
2020-09-14bugfix: revert prompt_toolkit to 2.0.6laixintao
This was introduced by: e9c97072afe9d79276da568ef6791276fddb15d7 ( Use InputMode.REPLACE_SINGLE (#1208) ) see also: https://github.com/dbcli/pgcli/pull/1197