Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse.
Execute SQL statements response.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#messages
def messages() -> ::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>
Returns
-
(::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>) — A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query,
SHOW WARNINGSmust be executed after each statement.
#messages=
def messages=(value) -> ::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>
Parameter
-
value (::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>) — A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query,
SHOW WARNINGSmust be executed after each statement.
Returns
-
(::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>) — A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query,
SHOW WARNINGSmust be executed after each statement.
#metadata
def metadata() -> ::Google::Cloud::Sql::V1::Metadata
Returns
- (::Google::Cloud::Sql::V1::Metadata) — The additional metadata information regarding the execution of the SQL statements.
#metadata=
def metadata=(value) -> ::Google::Cloud::Sql::V1::Metadata
Parameter
- value (::Google::Cloud::Sql::V1::Metadata) — The additional metadata information regarding the execution of the SQL statements.
Returns
- (::Google::Cloud::Sql::V1::Metadata) — The additional metadata information regarding the execution of the SQL statements.
#results
def results() -> ::Array<::Google::Cloud::Sql::V1::QueryResult>
Returns
- (::Array<::Google::Cloud::Sql::V1::QueryResult>) — The list of results after executing all the SQL statements.
#results=
def results=(value) -> ::Array<::Google::Cloud::Sql::V1::QueryResult>
Parameter
- value (::Array<::Google::Cloud::Sql::V1::QueryResult>) — The list of results after executing all the SQL statements.
Returns
- (::Array<::Google::Cloud::Sql::V1::QueryResult>) — The list of results after executing all the SQL statements.
#status
def status() -> ::Google::Rpc::Status
Returns
- (::Google::Rpc::Status) — Contains the error from the database if the SQL execution failed.
#status=
def status=(value) -> ::Google::Rpc::Status
Parameter
- value (::Google::Rpc::Status) — Contains the error from the database if the SQL execution failed.
Returns
- (::Google::Rpc::Status) — Contains the error from the database if the SQL execution failed.