]> git.jsancho.org Git - datasette-connectors.git/blob - datasette_connectors/connection.py
Clean code
[datasette-connectors.git] / datasette_connectors / connection.py
1 from .cursor import Cursor
2
3
4 class Connection:
5     def __init__(self, path, connector):
6         self.path = path
7         self.connector = connector
8
9     def execute(self, *args, **kwargs):
10         cursor = Cursor(self)
11         cursor.execute(*args, **kwargs)
12         return cursor
13
14     def cursor(self):
15         return Cursor(self)
16
17     def set_progress_handler(self, handler, n):
18         pass