]> git.jsancho.org Git - datasette-pytables.git/commitdiff
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 8516315cd49bbf4bf4507590d3e47e5a4878a1b1..9b2061890d6fe0eb03e01a425f8d7eecabdda4b0 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