Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class ExecuteSqlRequest.
The request for DatabaseConnection.ExecuteSql.
Generated from protobuf message google.cloud.oracledatabase.v1.ExecuteSqlRequest
Namespace
Google \ Cloud \ OracleDatabase \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}. |
↳ sql_statement |
string
Required. The SQL statement to execute. |
↳ params |
array<SqlParameter>
Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2). |
getName
Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSqlStatement
Required. The SQL statement to execute.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSqlStatement
Required. The SQL statement to execute.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParams
Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<SqlParameter> |
|
setParams
Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).
| Parameter | |
|---|---|
| Name | Description |
var |
array<SqlParameter>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
name |
string
Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}. Please see OracleDatabaseClient::databaseConnectionName() for help formatting this field. |
sqlStatement |
string
Required. The SQL statement to execute. |
| Returns | |
|---|---|
| Type | Description |
ExecuteSqlRequest |
|