We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13943d1 commit ef4ff15Copy full SHA for ef4ff15
django_mongodb/compiler.py
@@ -630,6 +630,20 @@ def explain_query(self):
630
result.append(f"{key}: {formatted_value}")
631
return result
632
633
+ def apply_converters(self, rows, converters):
634
+ connection = self.connection
635
+ converters = list(converters.items())
636
+ for row in rows:
637
+ for pos, (convs, expression) in converters:
638
+ try:
639
+ value = list(row.values())[pos]
640
+ except AttributeError:
641
+ value = row[pos]
642
+ for converter in convs:
643
+ value = converter(value, expression, connection)
644
+ row[pos] = value
645
+ yield row
646
+
647
648
class SQLInsertCompiler(SQLCompiler):
649
def execute_sql(self, returning_fields=None):
0 commit comments