AlloyDB V1BETA API - Class Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest (v0.11.0)

Reference documentation and code samples for the AlloyDB V1BETA API class Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest.

Request for ExecuteSql rpc.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#database

def database() -> ::String
Returns
  • (::String) — Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from SELECT current_database(); and NOT as a resource reference.

#database=

def database=(value) -> ::String
Parameter
  • value (::String) — Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from SELECT current_database(); and NOT as a resource reference.
Returns
  • (::String) — Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from SELECT current_database(); and NOT as a resource reference.

#instance

def instance() -> ::String
Returns
  • (::String) — Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.

#instance=

def instance=(value) -> ::String
Parameter
  • value (::String) — Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
Returns
  • (::String) — Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.

#password

def password() -> ::String
Returns
  • (::String) — Optional. The database native user’s password.

#password=

def password=(value) -> ::String
Parameter
  • value (::String) — Optional. The database native user’s password.
Returns
  • (::String) — Optional. The database native user’s password.

#sql_statement

def sql_statement() -> ::String
Returns
  • (::String) — Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.

#sql_statement=

def sql_statement=(value) -> ::String
Parameter
  • value (::String) — Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
Returns
  • (::String) — Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.

#user

def user() -> ::String
Returns
  • (::String) — Required. Database user to be used for executing the SQL. Note - Value provided should be the same as expected from SELECT current_user; and NOT as a resource reference.

#user=

def user=(value) -> ::String
Parameter
  • value (::String) — Required. Database user to be used for executing the SQL. Note - Value provided should be the same as expected from SELECT current_user; and NOT as a resource reference.
Returns
  • (::String) — Required. Database user to be used for executing the SQL. Note - Value provided should be the same as expected from SELECT current_user; and NOT as a resource reference.