mirror of https://github.com/dbcli/pgcli
Add an extra screenshot.
This commit is contained in:
parent
df160772fc
commit
2825db5ee4
|
@ -3,6 +3,7 @@ A REPL for Postgres
|
||||||
|
|
||||||
This is a postgres client that does auto-completion and syntax highlighting.
|
This is a postgres client that does auto-completion and syntax highlighting.
|
||||||
|
|
||||||
|
.. image:: screenshots/image02.png
|
||||||
.. image:: screenshots/image01.png
|
.. image:: screenshots/image01.png
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
|
8
TODO
8
TODO
|
@ -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>.
|
* [ ] Add more complex slash commands such as \d <table_name>.
|
||||||
* [ ] Update README.
|
* [ ] Update README.
|
||||||
* [] Upload rev 2 to PyPI.
|
* [ ] Upload rev 2 to PyPI.
|
||||||
* [ ] Add a new trigger for M-/ that does dumb completion.
|
* [ ] Add a new trigger for M-/ that does dumb completion.
|
||||||
* [ ] Find a way to add documentation to sql commands. This could get tricky.
|
* [ ] 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 a lot more SQL keywords to auto-completion (Read the postgres docs)
|
||||||
* [ ] Add tests for smart completion.
|
* [ ] Add tests for smart completion.
|
||||||
* [ ] Detect a '.' and parse the word before it and get it's real name.
|
* [ ] 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.
|
* [] Create a better framework for adding special commands.
|
||||||
* A dict with special commands as keys.
|
* A dict with special commands as keys.
|
||||||
* The value can either be a string or a callable.
|
* 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] Test if the special comands are autocompleted correctly.
|
||||||
* [x] Control smart completion via config file.
|
* [x] Control smart completion via config file.
|
||||||
* [x] Figure out how to deal with transactions.
|
* [x] Figure out how to deal with transactions.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from os.path import expanduser, exists
|
from os.path import expanduser, exists
|
||||||
from ConfigParser import SafeConfigParser
|
from ConfigParser import SafeConfigParser
|
||||||
|
#from prompt_toolkit.contrib.pdb import set_trace
|
||||||
|
|
||||||
def load_config(filename):
|
def load_config(filename):
|
||||||
filename = expanduser(filename)
|
filename = expanduser(filename)
|
||||||
|
@ -9,6 +10,8 @@ def load_config(filename):
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def write_default_config(source, destination, overwrite=False):
|
def write_default_config(source, destination, overwrite=False):
|
||||||
|
#import pdb; pdb.set_trace()
|
||||||
|
#set_trace()
|
||||||
destination = expanduser(destination)
|
destination = expanduser(destination)
|
||||||
if not overwrite and exists(destination):
|
if not overwrite and exists(destination):
|
||||||
return
|
return
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue