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

0.23.0 (latest) 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.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.

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set, validates the sql statement by performing syntax and semantic validation and doesn't execute the query.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set, validates the sql statement by performing syntax and semantic validation and doesn't execute the query.
**Returns**

- (::Boolean) --- Optional. If set, validates the sql statement by performing syntax and semantic validation and doesn't execute the query.