File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,6 +174,18 @@ message ResultSetMetadata {
174174 // If the read or SQL query began a transaction as a side-effect, the
175175 // information about the new transaction is yielded here.
176176 Transaction transaction = 2 ;
177+
178+ // A SQL query can be parameterized. In PLAN mode, these parameters can be
179+ // undeclared. This indicates the field names and types for those undeclared
180+ // parameters in the SQL query. For example, a SQL query like `"SELECT * FROM
181+ // Users where UserId = @userId and UserName = @userName "` could return a
182+ // `undeclared_parameters` value like:
183+ //
184+ // "fields": [
185+ // { "name": "UserId", "type": { "code": "INT64" } },
186+ // { "name": "UserName", "type": { "code": "STRING" } },
187+ // ]
188+ StructType undeclared_parameters = 3 ;
177189}
178190
179191// Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
You can’t perform that action at this time.
0 commit comments