Skip to content

Commit 343f52c

Browse files
Google APIscopybara-github
authored andcommitted
feat: Adds auto-generated CL for googleapis for jsonb
PiperOrigin-RevId: 470167051
1 parent b8da879 commit 343f52c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

google/spanner/v1/type.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,12 @@ enum TypeAnnotationCode {
163163
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] when a client interacts with PostgreSQL-enabled
164164
// Spanner databases.
165165
PG_NUMERIC = 2;
166+
167+
// PostgreSQL compatible JSONB type. This annotation needs to be applied to
168+
// [Type][google.spanner.v1.Type] instances having [JSON][google.spanner.v1.TypeCode.JSON]
169+
// type code to specify that values of this type should be treated as
170+
// PostgreSQL JSONB values. Currently this annotation is always needed for
171+
// [JSON][google.spanner.v1.TypeCode.JSON] when a client interacts with PostgreSQL-enabled
172+
// Spanner databases.
173+
PG_JSONB = 3;
166174
}

0 commit comments

Comments
 (0)