This PR adds access to the generated WITH query through the private method _serializer_sql to help with debugging queries.
I was temped to use a public to_sql method, but kept it private to keep the public interface between the patched and unpatched ArraySerializer the same.
I've also refactored some internals and fixed some recently added methods to be sorted in calling order.
This PR adds access to the generated
WITH
query through the private method_serializer_sql
to help with debugging queries.I was temped to use a public
to_sql
method, but kept it private to keep the public interface between the patched and unpatchedArraySerializer
the same.I've also refactored some internals and fixed some recently added methods to be sorted in calling order.