AlloyDB v1 API - Class ExecuteSqlRequest (1.9.0)

public sealed class ExecuteSqlRequest : IMessage<ExecuteSqlRequest>, IEquatable<ExecuteSqlRequest>, IDeepCloneable<ExecuteSqlRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the AlloyDB v1 API class ExecuteSqlRequest.

Request for ExecuteSql rpc.

Inheritance

object > ExecuteSqlRequest

Namespace

Google.Cloud.AlloyDb.V1

Assembly

Google.Cloud.AlloyDb.V1.dll

Constructors

ExecuteSqlRequest()

public ExecuteSqlRequest()

ExecuteSqlRequest(ExecuteSqlRequest)

public ExecuteSqlRequest(ExecuteSqlRequest other)
Parameter
Name Description
other ExecuteSqlRequest

Properties

Database

public string Database { get; set; }

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.

Property Value
Type Description
string

HasPassword

public bool HasPassword { get; }

Gets whether the "password" field is set

Property Value
Type Description
bool

Instance

public string Instance { get; set; }

Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.

Property Value
Type Description
string

InstanceAsInstanceName

public InstanceName InstanceAsInstanceName { get; set; }

InstanceName-typed view over the Instance resource name property.

Property Value
Type Description
InstanceName

Password

public string Password { get; set; }

Optional. The database native user’s password.

Property Value
Type Description
string

SqlStatement

public string SqlStatement { get; set; }

Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.

Property Value
Type Description
string

User

public string User { get; set; }

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.

Property Value
Type Description
string

UserCredentialCase

public ExecuteSqlRequest.UserCredentialOneofCase UserCredentialCase { get; }
Property Value
Type Description
ExecuteSqlRequestUserCredentialOneofCase