Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ExecuteSqlRequest.
Request for ExecuteSql rpc.
Generated from protobuf message google.cloud.alloydb.v1.ExecuteSqlRequest
Namespace
Google \ Cloud \ AlloyDb \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ password
string
Optional. The database native user’s password.
↳ instance
string
Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
↳ database
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.
↳ user
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.
↳ sql_statement
string
Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
getPassword
Optional. The database native user’s password.
string
hasPassword
setPassword
Optional. The database native user’s password.
var
string
$this
getInstance
Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
string
setInstance
Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
var
string
$this
getDatabase
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.
string
setDatabase
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.
var
string
$this
getUser
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.
string
setUser
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.
var
string
$this
getSqlStatement
Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
string
setSqlStatement
Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
var
string
$this
getUserCredential
string
static::build
instance
string
Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field. Please see AlloyDBAdminClient::instanceName() for help formatting this field.
database
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.
user
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.
sqlStatement
string
Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
password
string
Optional. The database native user’s password.