You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
How do people usually use the @Param tags with Struct and array types? For Spring Data query methods I think people use these tags on the right hand side of where-statements. like ... where colA = @valA and colB + colC < @val2 .
Users can't put arrays or Structs on the right sides of those where-statements, correct? If that's the case, then I'm not sure how this new struct-arg feature would fit in to spring data spanner..
Looks like STRUCTs can be used in WHERE clauses with some caveats, so I think this is worth implementing support in our @Query annotated query methods.
The user can provide:
a Struct typed arg, which would be directly bound to the tag like any other tag and param currently supported.
a POJO, which we will use the same logic as our write-conversion for making mutations to construct a Struct to then bind to the tag.
This will be available soon in spanner client lib. See for more detail: googleapis/google-cloud-java#3287
Perhaps wait for GA spanner client lib to add this functionality?
The text was updated successfully, but these errors were encountered: