class documentation

class RawQuerySet: (source)

View In Hierarchy

Provide an iterator which converts the results of raw SQL queries into annotated model instances.

Method __aiter__ Undocumented
Method __bool__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __repr__ 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 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.
Method _clone Same as QuerySet._clone()
Method _fetch_all Undocumented
Method _prefetch_related_objects Undocumented
Instance Variable _db Undocumented
Instance Variable _hints Undocumented
Instance Variable _prefetch_done Undocumented
Instance Variable _prefetch_related_lookups Undocumented
Instance Variable _result_cache Undocumented
def __aiter__(self): (source)

Undocumented

def __bool__(self): (source)

Undocumented

def __getitem__(self, k): (source)

Undocumented

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

Undocumented

def __iter__(self): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def iterator(self): (source)

Undocumented

def prefetch_related(self, *lookups): (source)

Same as QuerySet.prefetch_related()

def resolve_model_init_order(self): (source)

Resolve the init field names and value positions.

def using(self, alias): (source)

Select the database this RawQuerySet should execute against.

Undocumented

Undocumented

Undocumented

raw_query = (source)

Undocumented

translations = (source)

Undocumented

A list of model field names in the order they'll appear in the query results.

Return the database used if this query is executed now.

A dict mapping column names to model field names.

def _clone(self): (source)

Same as QuerySet._clone()

def _fetch_all(self): (source)

Undocumented

def _prefetch_related_objects(self): (source)

Undocumented

Undocumented

Undocumented

_prefetch_done: bool = (source)

Undocumented

_prefetch_related_lookups: tuple = (source)

Undocumented

_result_cache = (source)

Undocumented