File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
google/cloud/spanner_v1/types Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,20 @@ class ResultSetMetadata(proto.Message):
238
238
If the read or SQL query began a transaction
239
239
as a side-effect, the information about the new
240
240
transaction is yielded here.
241
+ undeclared_parameters (google.cloud.spanner_v1.types.StructType):
242
+ A SQL query can be parameterized. In PLAN mode, these
243
+ parameters can be undeclared. This indicates the field names
244
+ and types for those undeclared parameters in the SQL query.
245
+ For example, a SQL query like
246
+ ``"SELECT * FROM Users where UserId = @userId and UserName = @userName "``
247
+ could return a ``undeclared_parameters`` value like:
248
+
249
+ ::
250
+
251
+ "fields": [
252
+ { "name": "UserId", "type": { "code": "INT64" } },
253
+ { "name": "UserName", "type": { "code": "STRING" } },
254
+ ]
241
255
"""
242
256
243
257
row_type = proto .Field (
@@ -250,6 +264,11 @@ class ResultSetMetadata(proto.Message):
250
264
number = 2 ,
251
265
message = gs_transaction .Transaction ,
252
266
)
267
+ undeclared_parameters = proto .Field (
268
+ proto .MESSAGE ,
269
+ number = 3 ,
270
+ message = gs_type .StructType ,
271
+ )
253
272
254
273
255
274
class ResultSetStats (proto .Message ):
You can’t perform that action at this time.
0 commit comments