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

199 Commits

Author SHA1 Message Date
Anthony Lai
f1ff7158e0 Fix auto-completion breaking for table names with caps 2016-03-22 23:04:33 -07:00
Anthony Lai
eb3ef2e143 unescape completion names for lexical priority 2016-03-22 22:08:21 -07:00
Anthony Lai
1fe6ff06a2 Fix lexical order tiebreaking 2016-03-18 21:27:07 -07:00
Fernando Mora
6af6454e59 More appropiate dates/times types test name 2016-02-26 16:27:12 +01:00
Fernando Mora
5f4bded599 Issue #448. Add timestamptz to DATE custom extension 2016-02-26 16:21:27 +01:00
Daniel Rocco
66f9647210 Use lexical order to break ties when fuzzy matching 2016-02-14 23:33:23 -05:00
Amjith Ramanujam
fea50b59db Merge pull request #457 from dbcli/stuartquin/cast-bc-dates
Issue #448 extension for BC dates
2016-02-03 19:23:22 -08:00
David Szotten
d4ffbe6104 oh py2.6 how i don't miss you 2016-02-03 22:31:10 +00:00
David Szotten
85181ab252 factor out ensure_dir_exists and use for log 2016-02-03 22:28:04 +00:00
David Szotten
43a13ba065 a few more tests 2016-02-03 20:58:32 +00:00
David Szotten
bea392d7ed ensure target dir exists when copying config 2016-02-03 20:45:36 +00:00
Stuart Quin
37c10e45c8 Issue #448 extension for BC dates 2016-02-03 10:57:36 +00:00
David Szotten
f6c159e805 test for recent patch for execute_from_file
to prevent obvious regressions at least
2016-02-02 18:56:20 +00:00
Amjith Ramanujam
c4557a8215 Add a test case for enum unicode case. 2016-01-12 04:55:42 -08:00
David Szotten
2b867820d9 don't error when completing parameter-less functions 2016-01-05 16:32:31 +00:00
Darik Gamble
90651ca7fe Really sort keywords after everything else 2015-11-26 14:17:47 -05:00
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
2c4f4e689d Add more tests for qualified table names with or without quotes 2015-11-23 16:48:27 -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
Amjith Ramanujam
b68c2ab38c Add tests for the format_output. 2015-11-22 05:46:06 -08:00
Darik Gamble
9295cb9686 Fix suggestions after a manually entered double quote escape 2015-11-21 16:39:30 -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
Darik Gamble
0cf0b7ff59 Update pgcompleter tests 2015-11-08 15:55:50 -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
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
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
Iryna Cherniavska
2be25f5358 Setproctitle should be optional in tests. 2015-10-26 15:00:42 -07:00
Jacek Wielemborek
74c67a6dc6 Add a test written by darikg. Not actually executed, please confirm it. 2015-10-25 20:01:54 +01:00
Amjith Ramanujam
cc7b9d2d56 Make setproctitle optional in Windows 2015-10-23 02:49:20 -07:00
Stuart Quin
eea0cbd495 Clearer function name, handle passwords with spaces 2015-10-19 18:40:50 +01:00
Stuart Quin
748fcb7677 Issue #355 Use setproctitle to hide command line passwords 2015-10-18 21:56:52 +01:00
Darik Gamble
947cdb9506 support different error-handling options 2015-10-10 15:05:30 -04:00
Iryna Cherniavska
08347934c4 Fix for behave tests failing with pexpect 4.0. 2015-10-05 14:11:31 -07:00
darikg
4055b726cc Merge pull request #368 from dbcli/darikg/suggest-columns-from-functions
Suggest columns from functions
2015-10-04 09:31:11 -04:00
Amjith Ramanujam
12207f39fe Merge pull request #373 from dbcli/darikg/fix-need_completion_refresh
Fix need_completion_refresh
2015-10-03 14:48:16 -07:00
Darik Gamble
bb12d553a4 Fix need_completion_refresh
Was only actually checking the first command in multiple commands
2015-10-03 14:41:50 -04:00
Darik Gamble
9a7cae6cf5 Expand more join tests to check compound statements 2015-10-03 14:10:51 -04:00
Darik Gamble
ee0995ceed Fix suggestions in compound join clauses
Previously, this worked correctly, suggesting columns etc. from `a`
`SELECT * FROM abc a JOIN def d ON a.`

But this suggested only keywords:
`SELECT * FROM abc a JOIN def d ON a.id = d.id AND a.`
2015-10-03 14:04:00 -04:00
Darik Gamble
38f5e875ef Add missing test assertion 2015-10-03 10:01:06 -04:00
Darik Gamble
fc25e576eb Delete outdated comment 2015-10-03 09:59:13 -04:00
Darik Gamble
62b2962b63 Suggest fields from functions used as tables 2015-09-29 09:07:20 -04:00
Darik Gamble
07030e20d2 Move FunctionMetadata definition into its own package 2015-09-29 09:07:20 -04:00
Darik Gamble
a0266de192 Extract functions in the FROM clause as tables 2015-09-29 08:54:49 -04:00
Iryna Cherniavska
2020e7204d Using pgspecial as a separate module. Warning: this branch will not build. 2015-09-26 17:51:51 -07:00