赖信涛
bc7a5d0100
Drop 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-11 13:58:13 -07:00
赖信涛
fd77549754
Deprecate 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 4b6d0496cc
.
* deprecated py27 using black.
* remove 2.7 from travis.
* update setup.py: delete python 2.7 support.
2020-03-09 20:14:51 -07:00
lazydba247
91263c37b9
Add Support for partitioned tables. ( #1145 )
...
* 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-02-13 14:24:37 -08:00
赖信涛
8fe316e537
Drop Python 3.4 support ( #1141 )
...
* remove python3.4 support.
Python 3.4 has reached end-of-life.
https://www.python.org/downloads/release/python-340/
* drop maximun version of pytest
* update changelog
* add laixintao to contributors, delete py34 from tox
2020-01-15 22:45:16 -08:00
George Thomas
77a361966a
Fix warning raised for using `is not` to compare string literal ( #1139 )
...
Using `is not` for comparing string literals raises warning that != should be
used.
Fixes #1138
2020-01-14 20:56:07 -08:00
Amjith Ramanujam
2b55da8481
Merge pull request #1123 from TheJJ/main-file
...
add main file to allow python3 -m pgcli execution
2020-01-07 06:55:36 -08:00
Amjith Ramanujam
c74bfe37ac
Merge branch 'master' into main-file
2020-01-07 06:55:17 -08:00
Amjith Ramanujam
a5f7d9196c
Merge pull request #1135 from BrownShibaDog/master
...
Fix dead link of behave package.
2020-01-07 06:53:42 -08:00
BrownShibaDog
eb2718ba05
Add my name to changelog.
2020-01-03 08:50:34 +09:00
BrownShibaDog
6e4fdd4415
Add line to AUTHORS.
2020-01-01 21:51:16 +09:00
BrownShibaDog
cc27ec3b9a
Add lines to changelog.rst.
2020-01-01 21:48:32 +09:00
BrownShibaDog
1826db534b
Fix dead link of behave.
2019-12-31 17:47:37 +09:00
Jonas Jelten
bc66b85730
add main file to allow python3 -m pgcli execution
2019-12-19 00:18:14 +01:00
Amjith Ramanujam
901812a7bf
Merge pull request #1122 from TheJJ/prompt-colors
...
support ansi escape sequences for prompt colors
2019-12-08 19:19:43 -08:00
Amjith Ramanujam
257d0f2786
Merge pull request #1119 from mmtj/setup-cleanup
...
setup: Simplify getting module version
2019-12-08 19:18:42 -08:00
Amjith Ramanujam
31d0ea9d22
Merge pull request #1129 from timgates42/bugfix/typo_throws
...
Fix simple typo: thows -> throws
2019-12-08 19:17:14 -08:00
Tim Gates
8456dcb18f
Fix simple typo: thows -> throws
...
Closes #1128
2019-12-05 08:35:22 +11:00
Irina Truong
69b2da9f8e
Add wheel to dev reqs (needed to release).
2019-12-04 09:29:24 -08:00
Irina Truong
be04f1fc5e
Releasing version 2.2.0
2019-12-04 09:25:02 -08:00
Irina Truong
51d4d4a04c
J bennet/release 2.2.0 ( #1126 )
...
* Changelog.
* Bump pgspecial.
* Restrict prompt_toolkit to <3.0.0.
2019-12-04 09:24:17 -08:00
Jonas Jelten
36605174a4
support ansi escape sequences for prompt colors
2019-11-25 22:51:15 +01:00
Martin Matějek
202ce851ce
setup: Simplify getting module version
2019-10-29 21:33:09 +01:00
Amjith Ramanujam
0f969aba0c
Merge pull request #1118 from mmtj/logging-cleanup
...
Logging cleanup
2019-10-29 10:05:56 -07:00
Martin Matějek
6b2e8df8bd
run black again
2019-10-29 17:47:18 +01:00
Martin Matějek
23eb840ad7
Update AUTHORS
2019-10-29 02:59:56 +01:00
Martin Matějek
01520ac728
Fix logging-format-interpolation
2019-10-29 02:57:00 +01:00
Martin Matějek
a192255d7e
black formating
2019-10-29 02:56:28 +01:00
Amjith Ramanujam
f3dc23a94b
Merge pull request #1112 from dbcli/j-bennet/pqconninfo-1110
...
[WIP] Fix for PQconninfo not available.
2019-10-28 10:08:59 -07:00
Irina Truong
d758781858
Changelog.
2019-10-28 09:19:59 -07:00
Irina Truong
c145291072
Bump psycopg2 to 2.8.
2019-10-28 09:19:13 -07:00
Amjith Ramanujam
43e79d0027
Use libpq version instead of psycopg2 version.
2019-10-26 19:45:02 -07:00
Irina Truong
76133a3740
Changelog.
2019-10-26 13:22:54 -07:00
Irina Truong
270e1ce7a2
Log message.
2019-10-26 13:21:23 -07:00
Amjith Ramanujam
199a0223e0
Merge pull request #1116 from dbcli/test_
...
Add a test to verify error message.
2019-10-25 22:21:51 -07:00
Amjith Ramanujam
c908ef744f
Merge pull request #1115 from dbcli/owst/escape_enter_disable_for_vi_mode
...
Disable escape-enter keybinding in vi mode
2019-10-24 00:01:08 -07:00
Amjith Ramanujam
f658e3d1b4
Add a test to verify error message.
2019-10-23 21:00:45 -07:00
Owen Stephens
995e7a9deb
Disable escape-enter keybinding in vi mode
...
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-23 23:12:54 +01:00
Amjith Ramanujam
f25e49555a
Fix the condition for <enter> key. ( #1114 )
...
* Fix the condition for <enter> key.
* Improve the debug message and remove debug statement.
2019-10-23 22:11:44 +01:00
Irina Truong
4f0c4d5a38
Fix for PQconninfo not available.
2019-10-19 11:36:38 -07:00
Amjith Ramanujam
a713b5d08b
Merge pull request #1107 from owst/function_arg_completions_with_alias
...
Take account of table aliases when completing function args (#1048 )
2019-10-16 20:57:19 -07:00
Amjith Ramanujam
2bf01a7784
Merge pull request #1109 from owst/use_keybinding_to_conditionally_force_handle_multiline_buffer
...
Handle a multi-line query on Enter key-press (fixes #1031 )
2019-10-16 20:54:28 -07:00
Owen Stephens
e9b18f9e84
fixup! fixup! Take account of table aliases when completing function args ( #1048 )
2019-10-16 23:33:43 +01:00
Owen Stephens
629a931aed
fixup! fixup! Handle a multi-line query on Enter key-press ( fixes #1031 )
2019-10-16 22:26:25 +01:00
Owen Stephens
6763433a68
fixup! Handle a multi-line query on Enter key-press ( fixes #1031 )
2019-10-13 13:50:36 +01:00
Owen Stephens
7f44748149
Handle a multi-line query on Enter key-press ( fixes #1031 )
...
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-13 01:07:57 +01:00
Owen Stephens
a700f2b788
fixup! Take account of table aliases when completing function args ( #1048 )
2019-10-12 17:11:32 +01:00
Owen Stephens
b401b16d9a
Take account of table aliases when completing function args ( #1048 )
2019-10-12 16:19:15 +01:00
Amjith Ramanujam
d5cdd2ad4e
Merge pull request #1101 from ironiridis/master
...
rm Google Group from main.py
2019-10-01 12:37:56 -07:00
Christopher Harrington
7a77eda241
rm Google Group from main.py
2019-09-29 14:16:55 -05:00
Dick Marinus
67799b98ab
add optional but default squash merge request to PULL_REQUEST_TEMPLATE ( #1095 )
2019-09-27 19:34:34 -07:00