- fixed bug where Connection wouldnt lose its Transaction
after commit/rollback
- added extract() function to sql dialect
+- added an implicit close() on the cursor in ResultProxy
+when the result closes
+- added scalar() method to ComposedSQLEngine
0.2.8
- cleanup on connection methods + documentation. custom DBAPI
def execute(self, statement, *multiparams, **params):
connection = self.contextual_connect(close_with_result=True)
return connection.execute(statement, *multiparams, **params)
+
+ def scalar(self, statement, *multiparams, **params):
+ connection = self.contextual_connect(close_with_result=True)
+ return connection.scalar(statement, *multiparams, **params)
def execute_compiled(self, compiled, *multiparams, **params):
connection = self.contextual_connect(close_with_result=True)
def close(self):
if not self.closed:
self.closed = True
+ self.cursor.close()
if self.connection.should_close_with_result and self.dialect.supports_autoclose_results:
self.connection.close()