googleapis / googleapis/google-cloud-go

spanner: add support of encode/decode the custom type array

Open
#6,852 6 comments 0 reactions 1 assignee Assigned to @harshachinta View on GitHub
api: spanner priority: p3
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

**Is your feature request related to a problem? Please describe.**
We are using the custom type like `NullString` but the array custom type `[]CustomType` since it's NOT in the allow types: https://github.com/googleapis/google-cloud-go/blob/7934007d92dd119539f128974571dd24259afad9/spanner/value.go#L3865

Does it make sense to support encoding the custom type array like `spanner.NullString`.

**Describe the solution you'd like**

Can encode `[]CustomType` if CustomType implemented the `spanner.Encoder`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.