MCPcopy
hub / github.com/django/django / _execute

Method _execute

django/db/backends/utils.py:94–105  ·  view source on GitHub ↗
(self, sql, params, *ignored_wrapper_args)

Source from the content-addressed store, hash-verified

92 return executor(sql, params, many, context)
93
94 def _execute(self, sql, params, *ignored_wrapper_args):
95 # Raise a warning during app initialization (stored_app_configs is only
96 # ever set during testing).
97 if not apps.ready and not apps.stored_app_configs:
98 warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
99 self.db.validate_no_broken_transaction()
100 with self.db.wrap_database_errors:
101 if params is None:
102 # params default might be backend specific.
103 return self.cursor.execute(sql)
104 else:
105 return self.cursor.execute(sql, params)
106
107 def _executemany(self, sql, param_list, *ignored_wrapper_args):
108 # Raise a warning during app initialization (stored_app_configs is only

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45

Tested by

no test coverage detected