Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::ResultSetMetadata.
Metadata about a ResultSet or PartialResultSet.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#row_type
def row_type() -> ::Google::Cloud::Spanner::V1::StructType
-
(::Google::Cloud::Spanner::V1::StructType) —
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 arow_type
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]
#row_type=
def row_type=(value) -> ::Google::Cloud::Spanner::V1::StructType
-
value (::Google::Cloud::Spanner::V1::StructType) —
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 arow_type
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]
-
(::Google::Cloud::Spanner::V1::StructType) —
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 arow_type
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]
#transaction
def transaction() -> ::Google::Cloud::Spanner::V1::Transaction
- (::Google::Cloud::Spanner::V1::Transaction) — If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
#transaction=
def transaction=(value) -> ::Google::Cloud::Spanner::V1::Transaction
- value (::Google::Cloud::Spanner::V1::Transaction) — If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
- (::Google::Cloud::Spanner::V1::Transaction) — If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
#undeclared_parameters
def undeclared_parameters() -> ::Google::Cloud::Spanner::V1::StructType
-
(::Google::Cloud::Spanner::V1::StructType) —
A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like
"SELECT * FROM Users where UserId = @userId and UserName = @userName "
could return aundeclared_parameters
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]
#undeclared_parameters=
def undeclared_parameters=(value) -> ::Google::Cloud::Spanner::V1::StructType
-
value (::Google::Cloud::Spanner::V1::StructType) —
A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like
"SELECT * FROM Users where UserId = @userId and UserName = @userName "
could return aundeclared_parameters
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]
-
(::Google::Cloud::Spanner::V1::StructType) —
A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like
"SELECT * FROM Users where UserId = @userId and UserName = @userName "
could return aundeclared_parameters
value like:"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]