The default serializer will serialize the entire ruby object of your geospatial column. This custom serializer will serialize it to WKT (WKB isn't an option here without casting). This is much more efficient than serializing the entire ruby object, and much safer.
|from __future__ import (absolute_import, division, print_function)|
|from functools import wraps|
|from ansible.plugins.connection import ConnectionBase|
|from ansible.plugins.connection.ssh import Connection as SSHConnection|
|def _inner(self, *args, **kwargs):|
|super(Connection, self).exec_command('[[ -x /usr/local/sbin/remountro ]] && /usr/local/sbin/remountro')|
|return func(self, *args, **kwargs)|
I hereby claim:
- I am lewiseason on github.
- I am lewiseason (https://keybase.io/lewiseason) on keybase.
- I have a public key whose fingerprint is 6890 A599 9D54 B325 5C17 BE2A 80D9 024D 7A1A 6AB6
To claim this, I am signing this object: