(self)
| 80 | return conn |
| 81 | |
| 82 | def _teardown_connections(self): |
| 83 | if self._connections: |
| 84 | for connection in self._connections: |
| 85 | if connection.open: |
| 86 | connection.close() |
| 87 | self._connections = None |
| 88 | |
| 89 | def safe_create_table(self, connection, tablename, ddl, cleanup=True): |
| 90 | """create a table. |