From c36b0f346b45c9717ccdc96fadb0b7c9d2d625e1 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Wed, 26 Sep 2018 17:11:08 +0200 Subject: [PATCH] Complete table names with IPython --- dataset/database.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dataset/database.py b/dataset/database.py index 9f4276f..8662b81 100644 --- a/dataset/database.py +++ b/dataset/database.py @@ -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.