ResultSetMetadata
class ResultSetMetadata extends Message
Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
Protobuf type Google\Spanner\V1\ResultSetMetadata
Methods
No description
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
Details
at line 38
__construct()
at line 55
StructType
getRowType()
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
Generated from protobuf field .google.spanner.v1.StructType row_type = 1;
at line 72
setRowType(StructType $var)
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
Generated from protobuf field .google.spanner.v1.StructType row_type = 1;
at line 85
Transaction
getTransaction()
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;
at line 97
setTransaction(Transaction $var)
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;