NAME

Google::Cloud::Oracledatabase::V1::ExecuteSql - Compiled Protocol Buffers messages for google/cloud/oracledatabase/v1/execute_sql.proto

SYNOPSIS

use Google::Cloud::Oracledatabase::V1::ExecuteSql;

my $msg = Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest->new({
    name => $name,
    sql_statement => $sql_statement,
    params => $params,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/oracledatabase/v1/execute_sql.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest

The request for `DatabaseConnection.ExecuteSql`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

  • $msg->sql_statement() / $msg->sql_statement($value)

    Type: String

    Required. The SQL statement to execute.

  • $msg->params() / $msg->params($value)

    Type: Message (Google::Cloud::Oracledatabase::V1::ExecuteSql::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).

Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlParameter

Represents a bind variable (parameter) for SQL execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Optional. The name of the SQL bind parameter (excluding the leading colon, e.g. "id"). If omitted, parameters bind positionally based on their order in the list.

  • $msg->value() / $msg->value($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.

  • $msg->type_name() / $msg->type_name($value)

    Type: String

    Optional. Optional: Datatype hint for the parameter (e.g., "VARCHAR2", "NUMBER", "DATE", "TIMESTAMP"). If omitted, the Oracle driver will infer the type from the value string.

Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlResponse

Execute a SQL statement response.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult

SqlResult represents the result for the execution of a sql statement.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlMetadata

Any additional metadata information regarding the execution of the SQL

Inherits from Protobuf::Message.

Accessors

  • $msg->message() / $msg->message($value)

    Type: String

    Message related to SQL execution. This field can be used to convey size limit related message.

  • $msg->partial_result() / $msg->partial_result($value)

    Type: Bool

    Set to true if SQL returned a result set larger than the acceptable response size limits and the result was truncated.

  • $msg->execution_duration() / $msg->execution_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    The time duration taken to execute the sql statement.

  • $msg->status() / $msg->status($value)

    Type: Enum (Google::Cloud::Oracledatabase::V1::ExecuteSqlMetadata::Status)

    Output only. Status of SQL execution.

Enum: ExecuteSqlMetadata::Status

  • STATUS_UNSPECIFIED => 0

  • OK => 1

  • PARTIAL => 2

  • ERROR => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Oracledatabase::V1::ExecuteSql::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.