1
0
Fork 0
Commit Graph

2227 Commits

Author SHA1 Message Date
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
Kevin Marsh 34d6e080ff
dependencies: add support for sqlparse 0.4.x (#1224) 2020-12-01 16:03:38 -08:00
laixintao bbf5b20415
doc: update the documentation for connection via SSL. (#1215) 2020-10-14 10:06:10 +08:00
laixintao f985e1bdd8
test: test pgcli on python3.9 (#1214)
* test: test pgcli on python3.9

* test on 3.9

* use 3.9-dev version from travis.

* try to fix pexpect EOF.
2020-10-13 11:47:34 -07:00
laixintao 7626d9a5f2
Merge pull request #1211 from dbcli/bugfix/behave
fix behave test, keep support for prompt-toolkit 2.x; lock prompt-toolkit==3.0.5 for test.
2020-09-14 11:55:44 +08:00
laixintao 13bd678ccd
format code using black. 2020-09-14 10:27:46 +08:00
laixintao 5a61b243e0
lock prompt_toolkit on 3.0.5 for prompt_toolkit. 2020-09-14 10:21:50 +08:00
laixintao 3afbafee52
disable cache for pip install.
Otherwise it will use cache from travis.
2020-09-14 10:15:32 +08:00
laixintao e60d28f194
bugfix: revert prompt_toolkit to 2.0.6
This was introduced by: e9c97072af (  Use
InputMode.REPLACE_SINGLE (#1208) )

see also: https://github.com/dbcli/pgcli/pull/1197
2020-09-14 10:01:23 +08:00
laixintao 49930e2d8c
Revert "Temporarily comment out behave tests."
This reverts commit 59ae65cbbf.
2020-09-14 09:33:20 +08:00
Irina Truong 59ae65cbbf Temporarily comment out behave tests. 2020-09-08 10:34:14 -07:00
Jan Brun Rasmussen 352ed41980
Add schema suggestion for functions (#1206)
* 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-08 10:02:25 -07:00
bitkeen d9adca7d5e
Add Token.Prompt/Continuation (#1207) 2020-09-06 21:52:12 -07:00
bitkeen e9c97072af
Use InputMode.REPLACE_SINGLE (#1208)
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-09-05 14:30:46 -07:00
Tom Caruso 223015a1fa
More explicit error message when DSN alias is not found (#1198)
* add a specific error message when DSN with provided alias is not found

* update changelog & authors file
2020-07-31 10:25:06 -07:00
Sky.G.Uieen df1b40ca22
Update suggestion literals (#1195)
* Updated all data types literals

* Updated sql functions literals

* Updated changelog and auther

* Updated test code

* Added datatype test case
2020-07-31 10:21:58 -07:00
Tom Caruso 8f7e314508
Move from humanize to pendulum library for displaying query durations (#1199) 2020-07-28 23:08:19 -07:00
Dick Marinus 80bf05a3b3
Keep support for prompt_toolkit 2 (#1197)
* Keep support for prompt_toolkit 2

* include prompt toolkit 3
2020-07-08 12:28:24 -07:00
Sky.G.Uieen 41dd24e8da
Add custom color (#1196)
* Updated author, changelog for supporting color of string, number, keyword

* Added string, number, keyword custom color
2020-07-07 20:19:22 -07:00
laixintao 77414aa9e7
Merge pull request #1194 from dbcli/j-bennet/fix-sql-comment
J bennet/fix sql comment
2020-06-28 10:12:17 +08:00
Irina Truong 106c6c7bf8 Fix for #1193 list index out of range on sql comment. 2020-06-26 14:01:24 -07:00
laixintao 0c24e8bda2
Support style for missing value. (#1186)
* Support style for missing value.

* update changelog.

* upgrade minimal version of cli_helpers, in order to use style for null.
2020-05-28 15:29:50 -07:00
Amjith Ramanujam 4a98b37877
Merge pull request #1187 from anthonydb/master
Minor typo fixes in pgclirc
2020-05-26 11:28:48 -07:00
anthonydb 635eaaa25b Add name 2020-05-26 14:00:05 -04:00
anthonydb d492000675 Add info to changelog.rst and AUTHORS 2020-05-26 09:12:42 -04:00
anthonydb a9ef523eb3 Minor typo fixes in pgclirc 2020-05-26 09:08:14 -04:00