1
0
Fork 0

Add an extra screenshot.

This commit is contained in:
Amjith Ramanujam 2014-11-30 22:22:06 -08:00
parent df160772fc
commit 2825db5ee4
4 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,7 @@ A REPL for Postgres
This is a postgres client that does auto-completion and syntax highlighting.
.. image:: screenshots/image02.png
.. image:: screenshots/image01.png
Installation

8
TODO
View File

@ -1,11 +1,8 @@
* [X] Add borders around the table.
* [ ] Investigate why having a space in the beginning of the line breaks everything.
* [ ] Add more complex slash commands such as \d <table_name>.
* [ ] Update README.
* [] Upload rev 2 to PyPI.
* [ ] Upload rev 2 to PyPI.
* [ ] Add a new trigger for M-/ that does dumb completion.
* [ ] Find a way to add documentation to sql commands. This could get tricky.
* [X] Deal with commands that have no return rows (such as delete, begin transaction etc).
* [ ] Add a lot more SQL keywords to auto-completion (Read the postgres docs)
* [ ] Add tests for smart completion.
* [ ] Detect a '.' and parse the word before it and get it's real name.
@ -16,6 +13,9 @@
* [] Create a better framework for adding special commands.
* A dict with special commands as keys.
* The value can either be a string or a callable.
* [X] Deal with commands that have no return rows (such as delete, begin transaction etc).
* [X] Add borders around the table.
* [X] Investigate why having a space in the beginning of the line breaks everything.
* [X] Test if the special comands are autocompleted correctly.
* [x] Control smart completion via config file.
* [x] Figure out how to deal with transactions.

View File

@ -1,6 +1,7 @@
from shutil import copyfile
from os.path import expanduser, exists
from ConfigParser import SafeConfigParser
#from prompt_toolkit.contrib.pdb import set_trace
def load_config(filename):
filename = expanduser(filename)
@ -9,6 +10,8 @@ def load_config(filename):
return parser
def write_default_config(source, destination, overwrite=False):
#import pdb; pdb.set_trace()
#set_trace()
destination = expanduser(destination)
if not overwrite and exists(destination):
return

BIN
screenshots/image02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB