PyTables Connection class
authorJavier Sancho <jsf@jsancho.org>
Tue, 8 May 2018 10:58:12 +0000 (12:58 +0200)
committerJavier Sancho <jsf@jsancho.org>
Tue, 8 May 2018 10:58:12 +0000 (12:58 +0200)
datasette_pytables/__init__.py

index 9b2061890d6fe0eb03e01a425f8d7eecabdda4b0..dc6823472e8abdf6190009648a83d8a6f79122f6 100644 (file)
@@ -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, []