class documentation

class RawQuerySet:

View In Hierarchy

Provide an iterator which converts the results of raw SQL queries into annotated model instances.
Method __bool__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method ​_clone Same as QuerySet._clone()
Method ​_fetch​_all Undocumented
Method ​_prefetch​_related​_objects Undocumented
Method iterator Undocumented
Method prefetch​_related Same as QuerySet.prefetch_related()
Method resolve​_model​_init​_order Resolve the init field names and value positions.
Method using Select the database this RawQuerySet should execute against.
Instance Variable ​_db Undocumented
Instance Variable ​_hints Undocumented
Instance Variable ​_prefetch​_done Undocumented
Instance Variable ​_prefetch​_related​_lookups Undocumented
Instance Variable ​_result​_cache Undocumented
Instance Variable model Undocumented
Instance Variable params Undocumented
Instance Variable query Undocumented
Instance Variable raw​_query Undocumented
Instance Variable translations Undocumented
Property columns A list of model field names in the order they'll appear in the query results.
Property db Return the database used if this query is executed now.
Property model​_fields A dict mapping column names to model field names.
def __bool__(self):

Undocumented

def __getitem__(self, k):

Undocumented

def __init__(self, raw_query, model=None, query=None, params=(), translations=None, using=None, hints=None):

Undocumented

def __iter__(self):

Undocumented

def __len__(self):

Undocumented

def __repr__(self):

Undocumented

def _clone(self):
Same as QuerySet._clone()
def _fetch_all(self):

Undocumented

def _prefetch_related_objects(self):

Undocumented

def iterator(self):

Undocumented

def prefetch_related(self, *lookups):
Same as QuerySet.prefetch_related()
def resolve_model_init_order(self):
Resolve the init field names and value positions.
def using(self, alias):
Select the database this RawQuerySet should execute against.
_db =

Undocumented

_hints =

Undocumented

_prefetch_done: bool =

Undocumented

_prefetch_related_lookups: tuple =

Undocumented

_result_cache =

Undocumented

model =

Undocumented

params =

Undocumented

query =

Undocumented

raw_query =

Undocumented

translations =

Undocumented

@cached_property
columns =
A list of model field names in the order they'll appear in the query results.
@property
db =
Return the database used if this query is executed now.
@cached_property
model_fields =
A dict mapping column names to model field names.