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

1050 Commits

Author SHA1 Message Date
Darik Gamble
dfa7596f20 Fix bug where refreshing status never disappeared
Need to check if the cli exists *after* finishing refreshing, not before
2015-09-07 08:40:32 -04:00
Iryna Cherniavska
6664337a85 Functional test for refresh command. 2015-09-06 10:18:21 -07:00
Darik Gamble
ef1886a781 Redraw the cli after the refreshing finishes 2015-09-06 07:39:34 -04:00
Darik Gamble
278b7c3ef7 Initialize pgcli.cli in the constructor instead of using hasattr 2015-09-06 07:39:33 -04:00
Darik Gamble
7ade315d36 Print refreshing in toolbar 2015-09-06 07:39:33 -04:00
Darik Gamble
27d6cb31b6 token argument wasn't being used 2015-09-06 07:39:33 -04:00
Iryna Cherniavska
62af9d3a96 Added refresher tests. 2015-09-05 18:31:53 -07:00
Amjith Ramanujam
c9262adf5e Document callbacks, rename restart_completion and cleanup. 2015-09-05 08:11:12 -07:00
Amjith Ramanujam
705d7e0c49 Fix a race condition. 2015-09-03 22:53:06 -07:00
Amjith Ramanujam
43494a0995 Add a ordered dict to the packages for python 2.6 compatibility. 2015-09-03 22:43:50 -07:00
Amjith Ramanujam
b8d2b2a258 Add a CompletionRefresher class. 2015-09-03 22:37:31 -07:00
Amjith Ramanujam
4f74c2c30a Restart logic for completion refresh for concurrent requests. 2015-09-01 00:22:40 -07:00
Amjith Ramanujam
56021630e4 Atomically replace the completer object after a refresh. 2015-08-31 22:07:32 -07:00
Amjith Ramanujam
f6d2c61c6a Use a new pgexecute object to refresh completions. 2015-08-30 21:02:14 -07:00
Iryna Cherniavska
1dca49e75a Releasing version 0.19.2 2015-08-28 22:41:24 -07:00
Iryna Cherniavska
804dd446b5 Updated changelog and AUTHORS for v0.19.2. 2015-08-28 22:38:18 -07:00
Amjith Ramanujam
9577671bea Perform auto-completion refresh in background. 2015-08-27 23:10:48 -07:00
Amjith Ramanujam
6e1bc6fcd1 Merge pull request #342 from dbcli/j-bennet/completion-in-named-query
Autocompletion in named queries.
2015-08-25 21:45:53 -07:00
Amjith Ramanujam
d222e085b7 Update the tests for named query. 2015-08-25 19:41:04 -07:00
Amjith Ramanujam
72bb5a39d4 Update regex to catch uppercase names. 2015-08-25 19:35:40 -07:00
Iryna Cherniavska
037e8c84a0 Minor test changes. 2015-08-25 19:35:40 -07:00
Iryna Cherniavska
7cb4f461d3 Changed to only strip \ns command (query name included). 2015-08-25 19:35:40 -07:00
Iryna Cherniavska
31b867f632 Autocompletion in named queries. Connect #270. 2015-08-25 19:35:40 -07:00
Amjith Ramanujam
e4c18532c3 Merge pull request #344 from dbcli/j-bennet/fix-read-from-file
Added read_from_file back into iospecial.
2015-08-25 19:26:16 -07:00
darikg
65998b263b Merge pull request #343 from dbcli/amjith/where-clause-completion-tests
Add tests for where clause with keywords.
2015-08-25 09:10:51 -04:00
Amjith Ramanujam
fb86930cd6 Add tests for where clause with keywords. 2015-08-24 19:31:25 -07:00
Iryna Cherniavska
da12a70cbb Added read_from_file back into iospecial (it was removed but is still being used. Added integration test for editing a file. 2015-08-24 17:46:40 -07:00
darikg
53d76659ee Merge pull request #341 from dbcli/amjith/where-clause-completion
Amjith/where clause completion
2015-08-24 17:00:57 -04:00
Amjith Ramanujam
585b37e70f Fix failing tests for python 3. 2015-08-23 01:50:09 -07:00
Amjith Ramanujam
65398f0051 Fix failing tests. 2015-08-23 01:43:54 -07:00
Amjith Ramanujam
ee48fb857d Add keywords to suggestions after WHERE clause. 2015-08-22 14:00:06 -07:00
Amjith Ramanujam
72b8e60d18 Merge pull request #337 from dbcli/darikg/multiline_open_quotes
Don't end multi-line query within a quote
2015-08-19 21:54:11 -07:00
Darik Gamble
68a91f8121 Be more explicit when incrementing index value 2015-08-19 16:53:45 -04:00
darikg
f8fa8497f3 Merge pull request #336 from dbcli/amjith/run-commands
Multiple queries with syntax errors
2015-08-19 11:00:25 -04:00
Amjith Ramanujam
2e9e268632 Merge pull request #339 from dbcli/j-bennet/click-unicode-literals
Disabled unicode_literals warning in click. Close #338.
2015-08-18 22:40:57 -07:00
Iryna Cherniavska
6bb7c98a68 Disabled unicode_literals warning in click. Close #338. 2015-08-18 09:11:22 -07:00
Darik Gamble
4e66819343 Don't finish multiline query with an unopen quote 2015-08-18 06:04:08 -04:00
Darik Gamble
9be09b8bf4 Add function to check for unclosed quotations 2015-08-18 06:04:08 -04:00
Amjith Ramanujam
f2e436ad2f Fix unicode issues and update tests. 2015-08-18 00:38:56 -07:00
Amjith Ramanujam
5796fa2b4e Fix tests for multiple queries with syntax error. 2015-08-18 00:27:40 -07:00
Amjith Ramanujam
c481149f87 Catch ProgrammingError exceptions. 2015-08-18 00:15:43 -07:00
darikg
08c1444e73 Merge pull request #334 from dbcli/amjith/run-commands
Make \i to run multiple commands and show results.
2015-08-17 11:22:28 -04:00
Amjith Ramanujam
ee4734164f Make \i to run multiple commands and show results. 2015-08-16 21:34:27 -07:00
Amjith Ramanujam
27c2eabc08 Merge pull request #333 from dbcli/j-bennet/clean-pg-service-conf
Added "service" option.
2015-08-16 10:34:51 -07:00
Iryna Cherniavska
cbe748de7d Replaced fetchall with fetchone. 2015-08-16 10:12:27 -07:00
Iryna Cherniavska
9a35e5ef05 Started adding "service" option. Connect #289.
Switched to dsn-based approach (no config parsing).
2015-08-13 23:40:11 -07:00
Iryna Cherniavska
62fddef501 Merge pull request #332 from dbcli/amjith/pager
Add a \pager special command.
2015-08-11 22:55:06 -07:00
Amjith Ramanujam
1650b8a360 Add a \pager special command. 2015-08-11 20:54:07 -07:00
Amjith Ramanujam
376588597e Merge pull request #328 from jonathanslenders/prompt_toolkit-0.46
Upgrade to prompt_toolkit 0.46
2015-08-11 13:08:49 -07:00
Amjith Ramanujam
518fbdade7 Fix typo in in changelog. 2015-08-09 19:36:27 -07:00