Feature request
I would like to be able to specify binary transfer for custom data types dynamically on a PGConnection instance.
Similar to what I can do to add handling for custom types using PGConnection.addDataType.
Use case
The main use case for this will be connections that I did not create on my own (where I could set properties).
So for example if the PGConnection I use is not created by my application itself, but e.g. by the application server that runs it.
And I would like to allow using binary transfer for PostGIS geometries using the library postgis-java-ng, which already allows adding the handled types dynamically to a PGConnection.
Scope
This function should be optional and not always enforce binary transfer.
In contrast to #1884 I do not want to enable this behavior automatically.
I will look deeper into the code for enabling the binary transfer and might try to provide an according pull request.
Feature request
I would like to be able to specify binary transfer for custom data types dynamically on a
PGConnectioninstance.Similar to what I can do to add handling for custom types using
PGConnection.addDataType.Use case
The main use case for this will be connections that I did not create on my own (where I could set properties).
So for example if the
PGConnectionI use is not created by my application itself, but e.g. by the application server that runs it.And I would like to allow using binary transfer for PostGIS geometries using the library postgis-java-ng, which already allows adding the handled types dynamically to a
PGConnection.Scope
This function should be optional and not always enforce binary transfer.
In contrast to #1884 I do not want to enable this behavior automatically.
I will look deeper into the code for enabling the binary transfer and might try to provide an according pull request.