1
0
Fork 0
Commit Graph

414 Commits

Author SHA1 Message Date
Amjith Ramanujam 588be27797 Move refresh routines outside the loop. 2015-01-31 13:46:32 -08:00
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
Amjith Ramanujam 3d501471c8 Update AUTHORS. 2015-01-30 17:53:27 -08:00
Amjith Ramanujam 8b5e11e0cc Update the AUTHORS file. 2015-01-30 17:23:02 -08:00
Amjith Ramanujam 2ad13b5d2c Add Gitter badge. 2015-01-29 22:49:23 -08:00
Amjith Ramanujam eb006c0ea2 Changelog update. 2015-01-29 22:23:09 -08:00
Amjith Ramanujam c08d4a51e5 Make completions case-insensitive 2015-01-29 13:54:07 -08:00
Amjith Ramanujam 3ed89e01e4 Merge pull request #142 from darikg/master
Fix #106 - autocompletion in multiple statements
2015-01-29 10:24:53 -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
Amjith Ramanujam 798c398b60 Add table formats and timing to config file. 2015-01-27 23:05:00 -08:00
Amjith Ramanujam e1311fc892 Update README with pypa doc. 2015-01-27 06:07:41 -08:00
Amjith Ramanujam 80d660cc2d Update TODO. 2015-01-26 23:30:14 -08:00
Amjith Ramanujam b9e692e89f Update TODO and changelog. 2015-01-26 23:26:07 -08:00
Amjith Ramanujam c2d539df8a Convert psycopg2 erros to unicode. Fixes #124 2015-01-26 23:07:10 -08:00
Amjith Ramanujam 6944ef60f8 Merge pull request #127 from darikg/schema_autocomplete
Make autocomplete schema-aware
2015-01-26 20:26:52 -08:00
Darik Gamble 7d3f276e83 Fix \d special command and add some tests 2015-01-26 08:30:55 -05:00
Darik Gamble 3abfde4003 detect changes to the search_path and refresh accordingly 2015-01-26 08:05:39 -05:00
Darik Gamble 9ff2aa4854 Delete old refresh_completions method 2015-01-26 07:44:34 -05:00
Amjith Ramanujam 750206c779 Handle unicode for hstore and unknown types. Fixes #134. 2015-01-26 00:19:49 -08: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 477dabdbd4 Metadata should be instance variables, not class variables
Class variables make pgcompleter act poorly as a test fixture, since the class can carry state between tests
2015-01-25 16:09:20 -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 9c72e59216 Support connecting to databases with unicode chars. 2015-01-24 00:32:55 -08:00
Amjith Ramanujam d2c79d8240 Remove the custom parse_dsn function. 2015-01-23 22:31:37 -08:00
Amjith Ramanujam e90f541033 Check if cursor is none before checking rowcount. 2015-01-23 21:14:59 -08:00
Amjith Ramanujam 35909de751 Merge pull request #137 from darikg/api
Minor PGCli API improvements
2015-01-23 21:08:00 -08:00
Darik Gamble 613e92baac Add convenience method PGCli.get_completions, which delegates to PGCli.completer.get_completions 2015-01-23 22:19:07 -05:00
Darik Gamble fc98182477 Move completer construction to PGCli.__init__ and make refresh_completions a method of PGCli 2015-01-23 22:18:40 -05:00
Amjith Ramanujam 8979347118 Update README with the build-from-source option. 2015-01-22 23:45:44 -08:00
Amjith Ramanujam cfa67eb875 Update changelog. 2015-01-21 21:45:38 -08:00
Amjith Ramanujam 591534cfc8 Merge pull request #133 from drocco007/master
Cast bytea fields to text for output.
2015-01-21 21:33:48 -08:00
Daniel Rocco 52b684574e Cast bytea fields to text for output. 2015-01-21 22:50:24 -05:00
Darik Gamble eb66d8b3e0 fix bug where columns from a nonvisible table could contribute suggestions when a a query references an unqualifed, visible table of the same name 2015-01-20 17:06:54 -05:00
Amjith Ramanujam 244c356116 Merge pull request #129 from j-bennet/master
Documentation and an addition to smart completion for ON keyword.
2015-01-19 22:35:41 -08: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
Iryna Cherniavska b78b81ea15 Added a section about meta-commands to developer documentation. 2015-01-19 15:26:38 -08:00
Darik Gamble ab7edd955c fix schema-completion issue: self.schemata is a dataframe, supply self.schemata['schema'] instead 2015-01-19 13:39:32 -05:00
Darik Gamble 77df20f4ca Store escaped nameds in metadata 2015-01-19 13:11:57 -05:00
Darik Gamble 98b064b829 fix schema-handling in tests 2015-01-19 13:04:50 -05:00
Darik Gamble 36f810aa79 escape_name and unescape_name should check for empty values before (un)escaping 2015-01-19 12:40:47 -05:00
Darik Gamble 4a71c1f166 dataframe.apply method returns a copy instead of operating in-place 2015-01-19 12:38:55 -05:00
Darik Gamble 35bccedc2f Remove 'public' as a reserved keyword 2015-01-19 12:36:34 -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
Amjith Ramanujam 0921992306 Make a set of reserved words to use with escape_words. 2015-01-18 21:51:11 -08:00
Amjith Ramanujam b1cc36db2f Fix a crash when invalid sql is entered. 2015-01-18 20:49:16 -08:00