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

996 Commits

Author SHA1 Message Date
Darik Gamble
0f70ccad31 Add a bunch of tests for multiple joins 2015-11-25 16:17:08 -05:00
Amjith Ramanujam
5dde125d93 Merge pull request #421 from dbcli/darikg/support-leading-double-quote
Handle manually entered double-quote gracefully
2015-11-24 11:17:31 -08:00
Darik Gamble
d618c006bd Remove unnecessary token count check 2015-11-24 06:47:44 -05:00
Darik Gamble
2c4f4e689d Add more tests for qualified table names with or without quotes 2015-11-23 16:48:27 -05:00
Darik Gamble
8e9cdce6fd Parse word_before_cursor in separate function
Rely on sqlparse more instead of stripping leading quote manually
2015-11-23 16:48:05 -05:00
Darik Gamble
75a184571a Rename old test to avoid redefinition
'test_simple_select_with_cols_multiple_tables' was defined twice with different bodies
2015-11-23 14:39:31 -05:00
Iryna Cherniavska
a05e9a571d Merge pull request #419 from dbcli/amjith/fix-auto-expand-bug
Fix the bug in auto-expand mode when there are no rows to display.
2015-11-22 22:13:13 -08:00
Stuart Quin
928aa47fc1 Merge pull request #420 from dbcli/amjith/add-explain-keyword
Add EXPLAIN keyword to the completion list.
2015-11-22 17:19:23 +00:00
Amjith Ramanujam
8435ad367b Add EXPLAIN keyword to the completion list. 2015-11-22 08:49:31 -08:00
Amjith Ramanujam
b68c2ab38c Add tests for the format_output. 2015-11-22 05:46:06 -08:00
Amjith Ramanujam
5762dda314 Fix the bug in auto-expand mode when there are no rows to display. 2015-11-22 04:29:43 -08:00
Darik Gamble
9295cb9686 Fix suggestions after a manually entered double quote escape 2015-11-21 16:39:30 -05:00
Darik Gamble
2df5ed599e add quick extra test to last_word 2015-11-21 16:33:14 -05:00
Amjith Ramanujam
171da8fd4a Merge pull request #413 from dbcli/darikg/immutable-suggestions
Use only immutable datatypes for suggestions
2015-11-17 21:36:32 -08:00
Darik Gamble
43b5cc9afd Tweak some hanging indents 2015-11-17 17:35:47 -05:00
Darik Gamble
0a5d9cfb53 Add parens to make tuple-returning explicit 2015-11-17 17:35:34 -05:00
Darik Gamble
30bd3f1b17 Missed a couple list -> tuple conversions 2015-11-17 17:34:25 -05:00
Darik Gamble
692afc8240 Replace suggestion dicts with namedtuples 2015-11-16 07:41:27 -05:00
Darik Gamble
5b5e861258 extract_tables returns tuples, not lists 2015-11-16 07:28:22 -05:00
Amjith Ramanujam
f4bb154ced Merge pull request #411 from dbcli/j-bennet/add-upload-to-release-script
Aded sdist upload to release script.
2015-11-12 18:51:55 -08:00
Iryna Cherniavska
09fccfe935 Aded sdist upload to release script. 2015-11-12 15:59:48 -08:00
Amjith Ramanujam
7ee8a90358 Merge pull request #379 from dbcli/darikg/learn-keyword-prefs
[experimental] learn keyword preferences
2015-11-09 19:55:31 -08:00
Darik Gamble
471b058008 Update pgcli to new pgcompleter 2015-11-08 15:57:26 -05:00
Darik Gamble
0cf0b7ff59 Update pgcompleter tests 2015-11-08 15:55:50 -05:00
Darik Gamble
13b6c93563 Break up pgcompleter.suggest_type into subfunctions dispatched by suggestion type 2015-11-08 15:55:50 -05:00
Darik Gamble
78649e50d7 pgcompleter.find_matches returns Match (Completion, Priorty) tuples 2015-11-08 15:55:49 -05:00
Darik Gamble
886b048af0 PGCompleter initializes a prevalence counter (not used yet) 2015-11-08 15:55:49 -05:00
Darik Gamble
9c97d35606 New package prioritization and class PrevalenceCounter 2015-11-08 15:54:15 -05:00
darikg
f7aef6ecac Merge pull request #408 from dbcli/j-bennet/release-0.20.1
Preparing release 0.20.1 with Windows log fix.
2015-11-07 16:39:42 -05:00
Iryna Cherniavska
b4bea5f2f5 Preparing release 0.20.1 with Windows log fix. 2015-11-07 11:23:39 -08:00
darikg
f0b8c71f66 Merge pull request #407 from dbcli/amjith/fix_log_file_windows
Switch the location of log/history file based on OS.
2015-11-06 06:37:12 -05:00
Iryna Cherniavska
b84013ffa2 Updated named queries and config migration to use new paths. 2015-11-05 08:15:32 -08:00
Amjith Ramanujam
6fd2806e6f Switch the location of log/history file based on OS. 2015-11-04 18:21:59 -08:00
Amjith Ramanujam
2c1c493977 Update the changelong to add \h. 2015-10-31 22:11:24 -07:00
Amjith Ramanujam
0ff02e9a03 Releasing version 0.20.0 2015-10-31 21:40:54 -07:00
Amjith Ramanujam
c6668bc235 Merge pull request #405 from dbcli/amjith/release-0.20.0
Amjith/release 0.20.0
2015-10-31 21:33:59 -07:00
Amjith Ramanujam
6bdb3504ed Update the changelong and AUTHORS for 0.20.0 release. 2015-10-31 06:49:50 -07:00
Amjith Ramanujam
1e354b3566 Update AUTHORS file. 2015-10-30 21:17:59 -07:00
Amjith Ramanujam
384d22974f Merge pull request #404 from vinotheassassin/patch-1
Update README.rst
2015-10-29 01:17:55 -07:00
vinotheassassin
f9a2d55968 Update README.rst
Changed auto-completion to auto-completes in the features because it flows better.
2015-10-28 20:13:54 -07:00
Amjith Ramanujam
00df5b44c9 Merge pull request #395 from dbcli/darikg/refactor-on-error-options
Tweak on error options
2015-10-28 12:42:52 -07:00
Darik Gamble
7adaa498b2 Update magic to the latest MetaQuery design 2015-10-28 10:58:29 -04:00
Darik Gamble
1ea9bf735b Refactor a lot of run_cli into smaller submethods:
`_build_cli`, '_evaluate_command` and `_handle_server_closed_connection`

_evalute_command returns (output, MetaQuery) tuple where MetaQuery is a namedtuple
(query, successful, total_time, meta_changed, db_changed, path_changed, mutated)
2015-10-28 10:58:29 -04:00
Darik Gamble
edcc5c8a2d pgexecute.run returns two extra tuple elements: query, and success 2015-10-28 10:58:28 -04:00
Darik Gamble
6df33e959d exception_formatter returns only status, not the entire results tuple 2015-10-28 10:58:27 -04:00
Darik Gamble
cccf8e0fac remove unused imports 2015-10-28 10:58:27 -04:00
Darik Gamble
fed626c560 Update pgcli.main to use new pgexecute.run style 2015-10-28 10:58:26 -04:00
Darik Gamble
488ac21dae trivial indent fix 2015-10-28 10:58:25 -04:00
Darik Gamble
c9b55ba12e Fix pgexecute tests 2015-10-28 10:58:25 -04:00
Darik Gamble
258c08dfa1 Refactor on_error enum into on_error_resume bool and exception_formatter callable 2015-10-28 10:58:24 -04:00