self.logging_name = logging_name
self.echo = echo
self.engine = self
- self.logger = log.instance_logger(self, echoflag=echo)
+ log.instance_logger(self, echoflag=echo)
if proxy:
- self.Connection = _proxy_connection_cls(Connection, proxy)
- else:
- self.Connection = Connection
+# util.warn_deprecated("The 'proxy' argument to create_engine() is deprecated. Use event.listen().")
+ interfaces.ConnectionProxy._adapt_listener(self, proxy)
if execution_options:
self.update_execution_options(**execution_options)
+
+
+ dispatch = event.dispatcher(events.EngineEvents)
def update_execution_options(self, **opt):
"""update the execution_options dictionary of this :class:`Engine`.