Beispiel #1
0
 def get_connection_params(self):
     conn_params = super(DatabaseWrapper, self).get_connection_params()
     conn_params['cursor_factory'] = ExportingCursorWrapper(
         psycopg2.extensions.cursor,
         self.alias,
         self.vendor,
     )
     return conn_params
 def get_connection_params(self):
     conn_params = super().get_connection_params()
     conn_params["cursor_factory"] = ExportingCursorWrapper(
         psycopg2.extensions.cursor,
         "postgis",
         self.vendor,
     )
     return conn_params
Beispiel #3
0
 def create_cursor(self, name=None):
     cursor = self.connection.cursor()
     CursorWrapper = ExportingCursorWrapper(self.CURSOR_CLASS, self.alias,
                                            self.vendor)
     return CursorWrapper(cursor)