projects
/
datasette-pytables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a6c3f4
)
PyTables Connection class
author
Javier Sancho
<jsf@jsancho.org>
Tue, 8 May 2018 10:58:12 +0000
(12:58 +0200)
committer
Javier Sancho
<jsf@jsancho.org>
Tue, 8 May 2018 10:58:12 +0000
(12:58 +0200)
datasette_pytables/__init__.py
patch
|
blob
|
history
diff --git
a/datasette_pytables/__init__.py
b/datasette_pytables/__init__.py
index 9b2061890d6fe0eb03e01a425f8d7eecabdda4b0..dc6823472e8abdf6190009648a83d8a6f79122f6 100644
(file)
--- 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, []