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 33ae84a commit 6fa0b4dCopy full SHA for 6fa0b4d
django_mongodb/compiler.py
@@ -639,6 +639,20 @@ def explain_query(self):
639
result.append(f"{key}: {formatted_value}")
640
return result
641
642
+ def apply_converters(self, rows, converters):
643
+ connection = self.connection
644
+ converters = list(converters.items())
645
+ for row in rows:
646
+ for pos, (convs, expression) in converters:
647
+ try:
648
+ value = list(row.values())[pos]
649
+ except AttributeError:
650
+ value = row[pos]
651
+ for converter in convs:
652
+ value = converter(value, expression, connection)
653
+ row[pos] = value
654
+ yield row
655
+
656
657
class SQLInsertCompiler(SQLCompiler):
658
def execute_sql(self, returning_fields=None):
0 commit comments