Hey all, Is it possible to get a tuple of (sql, params) from an ORM queryset?
I need to use the async postgres driver (txpostgres) on some backend code and I'd like to use the ORM to generate SQL but actually run it through my own connection. I've had a look at queryset.query but from what I can see it's just useful for debug as nothing is escaped properly etc (I'd expect the driver to do the param interpolation anyway). Thanks in advance! D -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/WPqdzztk8MMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.