class RawQuery
from django.db.models.sql.query import RawQuery
A single raw SQL query.
Ancestors (MRO)
def chain(self, using)
django.db.models.sql.query.RawQuery
def chain(self, using):
return self.clone(using)
def clone(self, using)
django.db.models.sql.query.RawQuery
def clone(self, using):
return RawQuery(self.sql, using, params=self.params)
def get_columns(self)
django.db.models.sql.query.RawQuery
def get_columns(self):
if self.cursor is None:
self._execute_query()
converter = connections[self.using].introspection.identifier_converter
return [converter(column_meta[0]) for column_meta in self.cursor.description]
def params_type(self)
django.db.models.sql.query.RawQuery