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

30 Commits

Author SHA1 Message Date
Darik Gamble
581061440b pg_execute.run accepts a PGSpecial object, instead of calling special.execute directly 2015-06-30 12:40:53 -04:00
Darik Gamble
1355665270 format_output takes an extra arg instead of referencing pgspecial directly
This also allows us to simplify some of the tests in test_pgexecute,
which tested with and without expanded output by first running '\x',
which is a pretty roundabout way of mutating a global variable
2015-06-30 11:28:06 -04:00
Darik Gamble
4e46c01d3c Gross test that \dt, \df etc. run without error 2015-05-23 08:33:42 -04:00
Darik Gamble
5692782bd2 Give pgexecute a datatypes() method to get custom type names
Not used yet
2015-05-23 08:33:39 -04:00
Iryna Cherniavska
dc3f094b1b Implemented external editor call. 2015-04-20 09:11:36 -07:00
Darik Gamble
41007c549e bugfix: don't exclude any schemata from metadata queries 2015-04-09 13:00:57 -04:00
Darik Gamble
d437f0cabf pgexecute supports returning view metadata
generalize tables() to _relations(relkind_filter), and add convenience methods tables() and views() which simply call _relations() with the appropriate relkind_filter value

similarly, generatize columns() to _columns(relkind_filter), and add convenience methods table_columns() and view_columns()
2015-04-05 16:38:02 -04:00
Daniel Rocco
9124df2364 Format Decimal values directly as strings
Closes #169
2015-03-11 00:59:36 -04:00
Daniel Rocco
8e919f1b6c Interpret incoming JSON as a string instead of via json.loads
Closes #163
2015-03-01 00:40:46 -05:00
Amjith Ramanujam
eded02a0a8 Add a test for the special multi-command case. 2015-02-26 23:28:21 -08:00
Darik Gamble
896297c440 Store function metadata (not used yet) 2015-02-17 11:38:22 -05:00
Amjith Ramanujam
7091dce672 Revert psycopg2cffi to psycopg2. 2015-02-08 14:54:57 -08:00
Amjith Ramanujam
c5c3047b90 Convert to use cffi. But unicode isn't working. 2015-02-06 22:58:59 -08:00
Amjith Ramanujam
f956fa80ea Add a test for the boolean printing. 2015-01-31 16:38:47 -08:00
Amjith Ramanujam
cf0f33ff01 Add a test for the unicode handling in unknown types. 2015-01-30 18:15:40 -08: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
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
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
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
Amjith Ramanujam
b61663a65c Move parse_dsn tests to test folder instead of doctests. 2015-01-04 16:20:52 -08:00
Amjith Ramanujam
e3f7d263f3 Add test plan and place holder stubs. 2014-12-09 23:14:49 -08:00