1
0
Fork 0
Commit Graph

2252 Commits

Author SHA1 Message Date
Amjith Ramanujam 6d719b628d Releasing version 3.3.0 2022-01-11 08:37:41 -08:00
Amjith Ramanujam 3bb7dd8256 Update changelog for 3.3.0 2022-01-11 08:37:27 -08:00
Amjith Ramanujam 3b113bd831 Update changelog for 3.3.0 2022-01-11 08:35:57 -08:00
Amjith Ramanujam d29b1027c7
Merge pull request #1304 from dbcli/amjith-patch-1
Workaround pygments related issue.
2022-01-11 08:20:25 -08:00
Amjith Ramanujam 6d2021b263
Workaround pygments related issue.
Related pygments issue: https://github.com/pygments/pygments/issues/2027
2022-01-10 12:57:36 -08:00
Edoardo Ceccarelli 5811515a96
no need to strip_comments (#1296) 2021-11-18 11:58:38 -08:00
Saif Hakim 123e00a086
Re-run last query with bare `\watch` (#1283)
* Re-run last query with bare `\watch`

* add test

* clean up post test refactor

* lint

* rerun tests
2021-09-30 12:00:31 -07:00
Irina Truong c65495716d
Add setting in config to control truncating field values. (#1285)
* Add setting in config to truncate field value.

* Black.

* Changelog.

* Fix tests.
2021-09-03 16:58:03 -07:00
Amjith Ramanujam 0f54b126b3 Releasing version 3.2.0 2021-08-23 09:02:03 -07:00
Amjith Ramanujam d10158dc72 Update changelog for 3.2.0 release. 2021-08-23 09:01:33 -07:00
Irina Truong e0a4c18c4a
Another attempt to fix pgbouncer error (1093.) (#1097)
* 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-21 15:32:34 -07:00
Amjith Ramanujam d8532df22e
Merge pull request #1266 from dbcli/search_path_functions
Include functions from search_path in completion.
2021-05-07 12:52:45 -07:00
Amjith Ramanujam 898f8255e0 Blacken. 2021-05-07 12:43:32 -07:00
Amjith Ramanujam c196c28e78 Add tests for search_path function completion. 2021-05-07 12:36:40 -07:00
Amjith Ramanujam 7304cf3708 Change precommit hook to use stable black. 2021-05-06 21:21:38 -07:00
Amjith Ramanujam 6309dd4f93 Blacken. 2021-05-06 21:20:12 -07:00
Amjith Ramanujam 1d2570f462 Include functions from search_path in completion. 2021-05-06 21:12:48 -07:00
Amjith Ramanujam 0ada5a6c6a
Merge pull request #1265 from psacawa/func-pr
WIP: Support Missing Function Literals
2021-05-06 08:12:47 -07:00
Amjith Ramanujam 3a95530677
Merge branch 'master' into func-pr 2021-05-06 08:12:31 -07:00
Paweł Sacawa 26bdc4e759 Add missing function literals 2021-05-06 05:15:05 -04:00
Amjith Ramanujam 2fe94c38b4 Black formatting. 2021-05-05 21:01:12 -07:00
Amjith Ramanujam 803a9d3294
Merge pull request #1263 from psacawa/pr
Fix: ANSI escape codes in first line make the cli choose expanded output incorrectly...
2021-05-05 20:59:53 -07:00
Paweł Sacawa 773f69ba43 Modify changelog 2021-05-02 18:27:55 -04:00
Paweł Sacawa 8de796c59c Fix: ANSI escape codes in first line make the cli choose expanded output 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-05-02 18:18:35 -04:00
Irina Truong 954b8c3902
Use configured pager if table format is csv. (#1260)
* Use configured pager if table format is csv.

* Changelog.

* Simplify.
2021-03-12 14:14:09 -08:00
ERYoung11 31ea31d529
Updated Vagrant file as it wasn't working. (#1255)
* 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-12 10:20:28 -08:00
Georgy Frolov a017fa96bf
fix IPython magic (#1253) 2021-03-12 10:16:14 -08:00
Georgy Frolov e009995e9f
Merge pull request #1258 from ERYoung11/fix_test_main_windows_error
skipping initial comments in pgconfig file did not work on Windows.
2021-03-11 08:24:13 +03:00
Georgy Frolov 8aa3f92666
fix import (#1252) 2021-03-10 16:59:48 -08:00
ERYoung11 b1bdfa6a43 Updating authors 2021-03-10 13:26:29 -06:00
ERYoung11 bca1d94f39 skipping initial comments in pgconfig file did not work on Windows. 2021-03-10 13:15:58 -06:00
Irina Truong 469d22f2b6 Changelog. 2021-02-26 13:18:31 -08:00
Georgy Frolov 9a46ec87d5
Merge pull request #1251 from dbcli/j-bennet/1240-fix-config-writing
Preserve comments when writing to config file.
2021-02-27 00:07:27 +03:00
Irina Truong 291878bb31 Black. 2021-02-26 12:44:04 -08:00
Irina Truong d67272214c Preserve comments when writing to config file. 2021-02-26 12:41:04 -08:00
Georgy Frolov c9fd72449e
skip initial comment in pg_session file (#1245)
* skip initial comment in pg_session file

* add test
2021-02-22 14:55:55 -08:00
Georgy Frolov 30212c6fc6
fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6 (#1246)
* fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6

* changelog
2021-02-22 14:54:23 -08:00
ERYoung11 9ca545d880
Fix test_config.py on Windows (#1247)
* 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-22 14:40:30 -08:00
Irina Truong 0679757d43
Remove gitter links, update build status badge. (#1244) 2021-02-17 16:54:29 -08:00
Irina Truong 3600566d46
Postgres user has password in ci. (#1243) 2021-02-15 13:07:55 -08:00
Irina Truong a3287c4ab2
Finer control over destructive warning. (#1242)
* Finer control over destructive warning.

* Review feedback.

* Changelog.

* Run integration tests with --warn=moderate.

* Fix typo.

* Black.
2021-02-12 21:09:38 -08:00
Miroslav Šedivý 762fb4b8da
Modernize code to Python 3.6+ (#1229)
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-12 21:34:56 +02:00
Eero Ruohola 87ffae295e
Fix issue where `syntax_style` config value would not have any effect (#1241)
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-02-10 15:06:19 -08:00
Irina Truong 000102ef9b
Conditional didn't work in CI. (#1237)
* Conditional didn't work in CI.

* Try to fix flaky exit.
2021-01-18 13:50:03 -08:00
Irina Truong 2a5e3df0d7
Trigger CI on pull request, not on push. (#1233) 2021-01-08 12:26:59 -08:00
Irina Truong 1bcaab1b8d
Add 3.9 to build matrix. (#1232) 2021-01-05 10:53:44 -08:00
Amjith Ramanujam ae34628ee5
Merge pull request #1231 from dbcli/j-bennet/github-actions
Switch to Github Actions
2021-01-05 09:18:40 -08:00
Irina Truong f7f7c1b4fa Switch to Github Actions vs Travis. 2021-01-04 22:32:56 -08:00
Irina Truong baea7690b0 Releasing version 3.1.0 2020-12-11 15:34:43 -08:00
Irina Truong 6627051819
Changelog update before release. (#1227) 2020-12-11 15:33:09 -08:00