MCPcopy
hub / github.com/tortoise/tortoise-orm / _db_queryset

Method _db_queryset

tortoise/models.py:1314–1318  ·  view source on GitHub ↗
(
        cls, using_db: BaseDBAsyncClient | None = None, for_write: bool = False
    )

Source from the content-addressed store, hash-verified

1312
1313 @classmethod
1314 def _db_queryset(
1315 cls, using_db: BaseDBAsyncClient | None = None, for_write: bool = False
1316 ) -> QuerySet[Self]:
1317 db = using_db or cls._choose_db(for_write)
1318 return cls._meta.manager.get_queryset().using_db(db)
1319
1320 @classmethod
1321 def select_for_update(

Callers 11

select_for_updateMethod · 0.80
bulk_updateMethod · 0.80
in_bulkMethod · 0.80
bulk_createMethod · 0.80
firstMethod · 0.80
lastMethod · 0.80
allMethod · 0.80
getMethod · 0.80
rawMethod · 0.80
existsMethod · 0.80
get_or_noneMethod · 0.80

Calls 3

using_dbMethod · 0.80
_choose_dbMethod · 0.45
get_querysetMethod · 0.45

Tested by

no test coverage detected