DavyJonesLocker / postgres_ext-serializers

MIT License
324 stars 30 forks source link

Refacor array serializer to allow access to sql #56

Closed felixbuenemann closed 8 years ago

felixbuenemann commented 8 years ago

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.