Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::QueryResult.
QueryResult contains the result of executing a single SQL statement.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#columns
def columns() -> ::Array<::Google::Cloud::Sql::V1::Column>
Returns
- (::Array<::Google::Cloud::Sql::V1::Column>) — List of columns included in the result. This also includes the data type of the column.
#columns=
def columns=(value) -> ::Array<::Google::Cloud::Sql::V1::Column>
Parameter
- value (::Array<::Google::Cloud::Sql::V1::Column>) — List of columns included in the result. This also includes the data type of the column.
Returns
- (::Array<::Google::Cloud::Sql::V1::Column>) — List of columns included in the result. This also includes the data type of the column.
#message
def message() -> ::String
Returns
- (::String) — Message related to the SQL execution result.
#message=
def message=(value) -> ::String
Parameter
- value (::String) — Message related to the SQL execution result.
Returns
- (::String) — Message related to the SQL execution result.
#partial_result
def partial_result() -> ::Boolean
Returns
- (::Boolean) — Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
#partial_result=
def partial_result=(value) -> ::Boolean
Parameter
- value (::Boolean) — Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
Returns
- (::Boolean) — Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
#rows
def rows() -> ::Array<::Google::Cloud::Sql::V1::Row>
Returns
- (::Array<::Google::Cloud::Sql::V1::Row>) — Rows returned by the SQL statement.
#rows=
def rows=(value) -> ::Array<::Google::Cloud::Sql::V1::Row>
Parameter
- value (::Array<::Google::Cloud::Sql::V1::Row>) — Rows returned by the SQL statement.
Returns
- (::Array<::Google::Cloud::Sql::V1::Row>) — Rows returned by the SQL statement.
#status
def status() -> ::Google::Rpc::Status
Returns
- (::Google::Rpc::Status) — If results were truncated due to an error, details of that error.
#status=
def status=(value) -> ::Google::Rpc::Status
Parameter
- value (::Google::Rpc::Status) — If results were truncated due to an error, details of that error.
Returns
- (::Google::Rpc::Status) — If results were truncated due to an error, details of that error.