Complete table names with IPython

This commit is contained in:
Simon Conseil 2018-09-26 17:11:08 +02:00
parent 0a2f7c0799
commit c36b0f346b

View File

@ -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.