Add connector type to inspect info
authorJavier Sancho <jsf@jsancho.org>
Tue, 8 May 2018 10:19:11 +0000 (12:19 +0200)
committerJavier Sancho <jsf@jsancho.org>
Tue, 8 May 2018 10:19:11 +0000 (12:19 +0200)
datasette_pytables/__init__.py

index 8516315..9b20618 100644 (file)
@@ -1,5 +1,7 @@
 import tables
 
+_connector_type = 'pytables'
+
 def inspect(path):
     "Open file and return tables info"
     h5tables = {}
@@ -23,4 +25,4 @@ def inspect(path):
         }
 
     h5file.close()
-    return h5tables, views
+    return h5tables, views, _connector_type