Merge pull request #264 from saimn/ipython-completion
Complete table names with IPython
This commit is contained in:
commit
7fc4664790
@ -221,6 +221,10 @@ class Database(object):
|
||||
"""Get a given table."""
|
||||
return self.get_table(table_name)
|
||||
|
||||
def _ipython_key_completions_(self):
|
||||
"""Completion for table names with IPython."""
|
||||
return self.tables
|
||||
|
||||
def query(self, query, *args, **kwargs):
|
||||
"""Run a statement on the database directly.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user