-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
The readme mentions the following binder support:
BYTES->java.nio.ByteBuffer(this doesn't actually seem to be supported. Onlycom.google.cloud.ByteArrayis supported, it seems from code incom.google.cloud.spanner.r2dbc.v2.ClientLibraryBinder)DATE->com.google.cloud.DateJSON->com.google.cloud.spanner.r2dbc.v2.JsonWrapperTIMESTAMP->com.google.cloud.Timestamp
See:
It is inconvenient for client libraries (especially third parties) to have dependencies on cloud-spanner-r2dbc or cloud-core data types. It would be better, in my opinion, to support:
LocalDateas an equivalent ofcom.google.cloud.DateInstantorOffsetDateTimeas an equivalent ofcom.google.cloud.TimestampStringas an alternative forJsonWrapper
At the same time, I wonder if more array types could be supported, e.g. Long[] or Integer[]. long[] doesn't support null elements.