(self, connection)
| 371 | return False |
| 372 | |
| 373 | def _configure_role(self, connection): |
| 374 | if new_role := self.settings_dict["OPTIONS"].get("assume_role"): |
| 375 | with connection.cursor() as cursor: |
| 376 | sql = self.ops.compose_sql("SET ROLE %s", [new_role]) |
| 377 | cursor.execute(sql) |
| 378 | return True |
| 379 | return False |
| 380 | |
| 381 | def _configure_connection(self, connection): |
| 382 | # This function is called from init_connection_state and from the |
no test coverage detected