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
Amjith Ramanujam
a939a9a491
Update changelog with 0.12.0 items.
2015-01-10 00:51:45 -08:00
Darik Gamble
f532126de1
add new ipython magic %pgcli for data exploration
2015-01-10 00:27:05 -08:00
darikg
7950b8a6ee
maintain a history of queries and whether they were successful or not
2015-01-10 00:27:05 -08:00
darikg
56f0da2ea1
refactor most of main into a standalone PGCli class
2015-01-10 00:27:04 -08:00
Amjith Ramanujam
447c54ea74
Merge pull request #89 from macobo/karl-update-keybindings
...
Support CTRL+arrow shortcuts, bump prompt_toolkit to 0.26
2015-01-09 23:37:40 -08:00
Amjith Ramanujam
bd624205d0
Fix version number in changelog.
2015-01-09 21:17:29 -08:00
Amjith Ramanujam
cf608f046f
Releasing version 0.11.0
2015-01-09 21:17:29 -08:00
Amjith Ramanujam
4b04330622
Merge pull request #97 from while0pass/patch-1
...
Typo in README.rst
2015-01-09 17:34:46 -08:00
Amjith Ramanujam
22721923a6
Add a changelog.
2015-01-09 17:32:32 -08:00
while0pass
e35a107194
Typo in README.rst
2015-01-10 04:06:33 +03:00
Amjith Ramanujam
97b36a993d
Merge pull request #92 from macobo/karl-cancel-queries
...
Support for cancelling queries
2015-01-09 13:10:17 -08:00
Amjith Ramanujam
21486c5b0a
Merge pull request #95 from qwesda/master
...
Renamed escape_* functions and fixed case-insensitive compare
2015-01-09 10:39:47 -08:00
Karl-Aksel Puulmann
6c86c9065b
CTRL+C while querying update: explicitly cancel old connection
2015-01-09 19:47:43 +02:00
Karl-Aksel Puulmann
33436b0cf6
Support for cancelling queries
2015-01-09 19:47:43 +02:00
Amjith Ramanujam
63fb6b1bd1
Merge pull request #94 from macobo/karl-test-travis
...
Fix travis and build errors under python 3.
2015-01-09 09:08:02 -08:00
Daniel Schwarz
77ea07c2e2
Merge branch 'master' of github.com:amjith/pgcli
2015-01-09 13:20:26 +01:00
Daniel Schwarz
c57ce1986a
rename escape_* function
2015-01-09 13:06:37 +01:00
Daniel Schwarz
4372637b96
fix non case insensitive escape check for keywords/function
2015-01-09 13:05:52 +01: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
Amjith Ramanujam
9a6292170b
Fix the double printing of output.
2015-01-09 01:03:09 -08:00
Amjith Ramanujam
01847b5706
Fix the failing import in Python 3.
2015-01-09 00:24:17 -08: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
0cec2cfa1c
Fix expanded output help message
2015-01-08 23:40:40 -08:00
Stuart Quin
decb370f88
Add test for expected output
2015-01-08 23:38:54 -08:00
Stuart Quin
5684048255
Move expanded code out, hook up \x special key
2015-01-08 23:38:54 -08:00
Stuart Quin
49ce0d0802
WIP expanded output
2015-01-08 23:38:54 -08:00
Stuart Quin
2573185cc7
Add \x option, not hooked up yet
2015-01-08 23:38:54 -08:00
Amjith Ramanujam
1464a3396f
Merge pull request #83 from qwesda/master
...
support for table/column names which should be escaped
2015-01-08 22:50:32 -08:00
Amjith Ramanujam
a8faa8c0e9
Releasing version 0.10.3
2015-01-08 21:08:28 -08:00
Amjith Ramanujam
f444e3dbe1
Merge pull request #62 from CyberDem0n/master
...
Add support of \dn [PATTERN] command
2015-01-08 20:51:20 -08:00
Amjith Ramanujam
f01fea4c4b
Merge pull request #42 from darikg/master
...
Use standard postgres environmental tags
2015-01-08 18:48:30 -08:00
Karl-Aksel Puulmann
0b7e04a161
Update prompt_toolkit version, now supporting CTRL+arrow shortcuts.
...
There were some incompatibilities with the previous API, outlined in their commit
0d0a5566a8
.
2015-01-08 22:18:31 +02:00
Amjith Ramanujam
2039349597
Merge pull request #85 from Erethon/master
...
Fix a crash in autocompletion
2015-01-08 11:50:52 -08:00
Amjith Ramanujam
5a64deabd4
Merge pull request #79 from msabramo/patch-1
...
Update README.rst
2015-01-08 11:47:25 -08:00
Amjith Ramanujam
643cd4cf58
Merge pull request #84 from rrampage/master
...
Corrected some typos
2015-01-08 11:45:35 -08:00
Amjith Ramanujam
e57dee60a5
Merge pull request #87 from msabramo/patch-5
...
README.rst: small tweaks
2015-01-08 11:29:56 -08:00
Marc Abramowitz
9932d43f9c
README.rst: small tweaks
2015-01-08 09:26:39 -08:00
Dionysis Grigoropoulos
b0a851fa6d
Fix a crash in autocompletion
2015-01-08 18:27:57 +02:00
Daniel Schwarz
750218cebc
fixes need_completion_refresh case-sensitive comparison
2015-01-08 16:56:07 +01:00
Daniel Schwarz
bf14e997ad
fix completion alter keyword TABLE
2015-01-08 16:47:08 +01:00
rrampage
f4ae573d06
Corrected some typos
2015-01-08 20:45:12 +05:30
Daniel Schwarz
02e1d989c5
Merge branch 'master' of github.com:amjith/pgcli
2015-01-08 16:04:31 +01:00
Alexander Kukushkin
f18b3c32a3
Refactoring of sql_name_pattern
...
As of now sql_name_pattern is working more or less the same as original function processSQLNamePattern which is used by psql.
Changes in describe_table_details:
* fixed query, pg_catalog.pg_table_is_visible(c.oid) is used only when there is no pattern
* final sql is generated by cur.mogrify. This is the only way to escape parameters correctly
Changes in list_schemas:
* now it is also using sql_name_pattern to get search pattern
* implemented \dn+ functionality
2015-01-08 15:45:48 +01:00
Daniel Schwarz
72f5f45e96
escape upper case names too
2015-01-08 15:02:56 +01:00
Daniel Schwarz
cccc8cd667
fixes: 'dict_keys' object does not support item assignment
2015-01-08 14:54:43 +01:00