MCPcopy
hub / github.com/django/django / using

Method using

django/db/models/query.py:1971–1975  ·  view source on GitHub ↗

Select which database this QuerySet should execute against.

(self, alias)

Source from the content-addressed store, hash-verified

1969 return clone
1970
1971 def using(self, alias):
1972 """Select which database this QuerySet should execute against."""
1973 clone = self._chain()
1974 clone._db = alias
1975 return clone
1976
1977 def fetch_mode(self, fetch_mode):
1978 """Set the fetch mode for the QuerySet."""

Callers 15

bulk_updateMethod · 0.95
get_objectsMethod · 0.45
migration_qsMethod · 0.45
fetch_manyMethod · 0.45
refresh_from_dbMethod · 0.45
_save_tableMethod · 0.45
related_objectsMethod · 0.45
validateMethod · 0.45
_apply_rel_filtersMethod · 0.45

Calls 1

_chainMethod · 0.95

Tested by

no test coverage detected