From: Javier Sancho Date: Tue, 8 May 2018 10:58:12 +0000 (+0200) Subject: PyTables Connection class X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=284c887d09327e23c6209d63d13b50b98b29ed33;p=datasette-pytables.git PyTables Connection class --- diff --git a/datasette_pytables/__init__.py b/datasette_pytables/__init__.py index 9b20618..dc68234 100644 --- a/datasette_pytables/__init__.py +++ b/datasette_pytables/__init__.py @@ -26,3 +26,11 @@ def inspect(path): h5file.close() return h5tables, views, _connector_type + +class Connection: + def __init__(self, path): + self.path = path + self.h5file = tables.open_file(path) + + def execute(self, sql, params): + return [], False, []