Amjith Ramanujam
d324b27e41
Replace splat import in tests.
2015-01-30 18:59:09 -08:00
Amjith Ramanujam
cf0f33ff01
Add a test for the unicode handling in unknown types.
2015-01-30 18:15:40 -08:00
darikg
13f84bf83e
Fix #106 - autocompletion in multiple statements
2015-01-28 18:21:13 -05:00
Amjith Ramanujam
27a363ee06
Fix broken tests.
2015-01-27 23:12:15 -08:00
Darik Gamble
7d3f276e83
Fix \d special command and add some tests
2015-01-26 08:30:55 -05:00
Darik Gamble
cbca9c62df
Split up smart completion tests into two files
...
One file for simple public schema only tests, and another more focused on schema-aware autocompletion
2015-01-25 16:41:03 -05:00
Darik Gamble
89cffd18ba
Fix failing tests in python 3 by converting dictionaries to tuples so sorted can sort them
2015-01-25 13:15:01 -05:00
Darik Gamble
830d1beaa8
Remove pandas dependency by storing database metadata as lists of tuples
2015-01-25 11:39:03 -05:00
Darik Gamble
7e7051fef7
Merge branch 'master' into schema_autocomplete
2015-01-25 11:37:46 -05:00
Amjith Ramanujam
d2c79d8240
Remove the custom parse_dsn function.
2015-01-23 22:31:37 -08:00
Daniel Rocco
52b684574e
Cast bytea fields to text for output.
2015-01-21 22:50:24 -05:00
Iryna Cherniavska
13f3af72c3
ON keyword now suggests tables and aliases on the right side of equal sign also.
2015-01-19 17:03:44 -08:00
Darik Gamble
98b064b829
fix schema-handling in tests
2015-01-19 13:04:50 -05:00
Amjith Ramanujam
41927cd8d3
Merge branch 'master' into pr127
2015-01-18 22:08:52 -08:00
Amjith Ramanujam
1e59d7a946
Add tests for auto-escaped tables/columns.
2015-01-18 21:52:25 -08:00
Darik Gamble
8bba43e1d7
Add missing import
2015-01-18 19:04:24 -05:00
Darik Gamble
cc6276925f
Get schema names with a direct query instead of stripping them from the tables metadata so we can autocomplete schemata without tables in them
2015-01-18 18:27:25 -05:00
Darik Gamble
78288101c2
Make autocomplete schema-aware
2015-01-18 15:53:47 -05:00
Iryna Cherniavska
c4c61b8ce5
ON keyword suggests either table aliases, or table names.
2015-01-17 22:16:53 -08:00
darikg
ffeb89e406
fix bug where show_help command failed in python 3 due to iteritems() deprecation
2015-01-14 15:19:23 -05:00
Karl-Aksel Puulmann
89547a171e
Support having multiple queries on the same line.
...
Note that if any of the queries raises an error, nothing besides the error is
output. This is different behavior from psql which outputs separately for each
query:
_test_db=# select 1; invalid syntax; select 2;
?column?
----------
1
(1 row)
ERROR: syntax error at or near "invalid"
LINE 1: invalid syntax;
^
?column?
----------
2
(1 row)
2015-01-10 11:55:35 +02:00
Karl-Aksel Puulmann
498257cf37
Fix expanded output package under python 3, add tests for unicode support.
2015-01-09 12:53:42 +02:00
Karl-Aksel Puulmann
b54823c96a
Fix problem with travis not using correct python versions when testing.
2015-01-09 12:33:27 +02:00
Karl-Aksel Puulmann
9632546c4b
Do only one query for all columns, instead of len(tables) queries. Should fix #25
2015-01-09 00:16:55 -08:00
Karl-Aksel Puulmann
b7f9c00c21
Fix issues pointed out in pull request comments.
2015-01-09 00:14:18 -08:00
Karl-Aksel Puulmann
8307a7e642
Simplistic test
2015-01-09 00:14:18 -08:00
Karl-Aksel Puulmann
a87f3a1fcc
Checking if database exists and some initial fixtures which clean up
2015-01-09 00:13:19 -08:00
Stuart Quin
decb370f88
Add test for expected output
2015-01-08 23:38:54 -08:00
Karl-Aksel Puulmann
d566ff3286
Remove the extra tox.ini
2015-01-07 21:55:27 +02:00
Amjith Ramanujam
4e862015f8
Mark the multicolumn sub-select test to xfail.
2015-01-04 23:23:48 -08:00
Amjith Ramanujam
b61663a65c
Move parse_dsn tests to test folder instead of doctests.
2015-01-04 16:20:52 -08:00
Amjith Ramanujam
922a74d58a
Add tox and fix python3 failures.
2015-01-02 00:04:01 -08:00
Amjith Ramanujam
a4460f17cc
Remove the debug statment left in tests.
2015-01-01 00:16:43 -08:00
Amjith Ramanujam
6e622d6dde
Add initial completion support for JOIN statements.
2015-01-01 00:07:31 -08:00
Amjith Ramanujam
1cfdb4c55a
Extract tables from JOIN statements.
2014-12-31 23:17:50 -08:00
Amjith Ramanujam
16af5d0ec1
Add keyword completion for sub-select.
2014-12-30 21:46:16 -08:00
Amjith Ramanujam
0fa38b0e4f
Fix another corner case for table name extraction in nested sql.
2014-12-30 00:22:48 -08:00
Amjith Ramanujam
65c7cdaafa
Fix the table extraction for nested select statement.
2014-12-29 21:43:41 -08:00
Iryna Cherniavska
799d4bc35b
Added tests for multiple column suggestion, dot and alias.
2014-12-28 14:57:51 -08:00
Iryna Cherniavska
335e57215c
added tests for dot and alias
2014-12-27 14:43:49 -08:00
Iryna Cherniavska
5b4644ba34
added naive completion tests
2014-12-27 13:49:35 -08:00
Amjith Ramanujam
665f5e9d0a
Remove the debug statmenet.
2014-12-26 00:41:45 -08:00
Amjith Ramanujam
9763ddb95c
Fix the table parsing for update and add a test.
2014-12-26 00:32:56 -08:00
Amjith Ramanujam
be322144c3
Fix multiple columns for aliased tables.
2014-12-25 02:08:31 -08:00
Amjith Ramanujam
7492594c37
Improve the Insert completion.
2014-12-25 01:55:00 -08:00
Amjith Ramanujam
09c5f28abe
First attempt at dot completion and alias detection.
2014-12-24 23:56:12 -08:00
Amjith Ramanujam
b432811a21
Refactor sqlcompletion to make it work for multiple cols and tables.
2014-12-24 01:32:01 -08:00
Amjith Ramanujam
351686fa33
Make parseutils to work with hanging comma and insert statements.
2014-12-24 00:16:08 -08:00
Iryna Cherniavska
6933b72cb9
added some smart completion tests
2014-12-23 23:59:14 -08:00
Amjith Ramanujam
6a9b224834
Add tests for parse_utils.extract_tables.
2014-12-23 23:29:26 -08:00