Created by: pedantic-git
I was taking a look at @dts's excellent #706, and hoping something similar would be accepted upstream soon as I needed support for accessing the resource too.
This is a much more lightweight implementation that achieves the same effect - the resource is available as field.resource
. However, this one degrades gracefully in case people have overridden the constructor in their own field implementations, and as a consequence the tests (hopefully) don't need changing.
I wasn't able to run the tests because they seem to depend on a running Postgres instance. Let me know if anything fails and I can take a look!