1
1
mirror of https://github.com/dbcli/pgcli.git synced 2024-10-04 09:17:08 +03:00
Commit Graph

2287 Commits

Author SHA1 Message Date
ERYoung11
5aa5426045 Merge branch 'fix_comments_plus_special' of https://github.com/ERYoung11/pgcli into fix_comments_plus_special 2022-08-31 21:41:42 -05:00
ERYoung11
f7b1621e34 fixed comments with special see Issue #1362 2022-08-31 21:41:11 -05:00
ERYoung11
1c4b2a414c fixed comments with special see Issue #1336 2022-08-31 21:39:24 -05:00
Amjith Ramanujam
0f21f86838
Merge pull request #1347 from dbcli/j-bennet/1338-keyring-error
Fix exception when getting password from keyring
2022-06-14 11:28:16 -07:00
Irina Truong
f04ffae12f Add test. 2022-06-10 11:26:53 -07:00
Irina Truong
165818bee3 More generic try/catch when dealing with keyring. 2022-06-10 10:27:54 -07:00
Kian-Meng Ang
d608ffe7c7
Fix typos (#1345)
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-06-08 11:38:29 -07:00
Irina Truong
18071754bc
Port to psycopg3 (#1324)
* WIP.

* Add some comments about porting from psycopg 2 to 3 (#1318)

* WIP

* Disable _set_wait_callback()

* TransactionStatus.

* First working query.

* More pg3 changes.

* test_pgexecute still fails.

* Fix bytea support.

* Fix json and enum unicode.

* Get unit tests to pass.

* Behave tests still break, WIP.

* Prompt seems to be displayed fine, why don't the tests see the whitespace?

* Python version.

* Fix test.

* Black.

* Added black to dev reqs.

* nbu link for donations.

* Use psycopg.sql to format statement.

* Special case for show help in pgbouncer.

* Fix test.

* Added integration test.

* Install pgbouncer in ci.

* Fix integration test.

* Remove tmate session.

* Revert commenting out python versions.

* Pin pgspecial to >=2.

* Changelog.

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Co-authored-by: Amjith Ramanujam <amjith.r@gmail.com>
2022-06-06 11:20:48 -07:00
Daniel Kukula
372da81ec4
add explain visualizer (#1279)
* add explain visualizer

* format files

* remove humanize dependency

* disable by default

* add explain visualizer

* run black
2022-04-03 19:20:02 -07:00
Amjith Ramanujam
366c01bbb9
Merge pull request #1327 from dbcli/j-bennet/update-readme-release
Improve release instructions
2022-03-30 16:54:46 -07:00
Irina Truong
5ee4f89a3b Explicitly point to release guide. 2022-03-30 16:43:31 -07:00
Irina Truong
a878d2a4ba Releasing version 3.4.1 2022-03-19 14:01:43 -07:00
Irina Truong
b1d0dd16d5
Changelog update to release 3.4.1. (#1325) 2022-03-19 13:59:32 -07:00
Andrii Oriekhov
4f151b07e4
add GitHub URL for PyPi (#1322) 2022-03-19 13:48:46 -07:00
Amjith Ramanujam
eb6b98367b Add netlify link. 2022-03-14 09:52:26 -07:00
Amjith Ramanujam
ac1d3132cc
Merge pull request #1323 from dbcli/j-bennet/ukraine
Ukraine.
2022-03-09 15:22:28 -08:00
Irina Truong
6884c298e6 Ukraine. 2022-03-09 15:13:00 -08:00
Amjith Ramanujam
43263a90d2
Merge pull request #1321 from dbcli/j-bennet/1320-redshift-status-rows
Add rowcount to status returned from redshift.
2022-03-01 20:28:47 -08:00
Irina Truong
f0ab01c117 Changelog. 2022-03-01 20:19:51 -08:00
Irina Truong
00bed0bdad Black. 2022-03-01 20:15:05 -08:00
Irina Truong
2eef64c8ce Add rowcount to status returned from redshift. 2022-03-01 20:02:31 -08:00
Irina Truong
7423f9d239
Bump pgspecial. (#1319) 2022-02-28 13:51:56 -08:00
Daniele Varrazzo
25eb9f541b
Add some comments about porting from psycopg 2 to 3 (#1318) 2022-02-22 09:02:16 -08:00
Irina Truong
02134daad7 Releasing version 3.4.0 2022-02-21 12:28:32 -08:00
Irina Truong
72204adb98
Prepare to release 3.4.0. (#1315)
* Prepare to release 3.4.0.

* Add the TBD section.
2022-02-21 12:27:39 -08:00
Bruno Inec
54f0cc9ddd
ssh tunnels: allow configuring auto matches (#1302) 2022-02-21 10:20:11 -08:00
Bruno Inec
ed9d123073
Add SSH tunnel support (#1301)
* Add initial sshtunnel support

* Force CI to rerun.

* Fix unit test for 3.6.

* Black.

Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-02-18 14:57:42 -08:00
Amjith Ramanujam
78843ac30f Releasing version 3.3.1 2022-01-18 12:58:45 -08:00
Amjith Ramanujam
5137a125f2 Update changelog. 2022-01-18 12:57:53 -08:00
Amjith Ramanujam
a981564f9d
Upgrade cli_helpers to workaround the Pygments regression. (#1310) 2022-01-18 12:33:26 -08:00
Amjith Ramanujam
1ea687e197
Merge pull request #1308 from dbcli/always_ask_password-w
Always ask password w
2022-01-13 16:02:50 -08:00
Amjith Ramanujam
a082b7cb72 Fix the changelog format again. 2022-01-13 13:05:58 -08:00
Amjith Ramanujam
b5a523b7da Fix the changelog format 2022-01-13 12:59:07 -08:00
Amjith Ramanujam
2b2317e0b0 Update changelog. 2022-01-13 10:13:43 -08:00
Amjith Ramanujam
338ea2186e Change the order for password prompt and keychain. 2022-01-13 09:27:47 -08:00
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