MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / _check_cascade_operation

Method _check_cascade_operation

web/pgadmin/browser/utils.py:726–737  ·  view source on GitHub ↗

Check cascade operation. :param only_sql: :return:

(self, only_sql=None)

Source from the content-addressed store, hash-verified

724 return dependency
725
726 def _check_cascade_operation(self, only_sql=None):
727 """
728 Check cascade operation.
729 :param only_sql:
730 :return:
731 """
732 if self.cmd == 'delete' or only_sql:
733 # This is a cascade operation
734 cascade = True
735 else:
736 cascade = False
737 return cascade
738
739 def not_found_error_msg(self, custom_label=None):
740 return gettext("Could not find the specified {}.".format(

Callers 15

deleteMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
_get_req_delete_dataMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
get_delete_sqlMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected