Class: Google::Cloud::AlloyDB::V1::ExecuteSqlMetadata

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/alloydb/v1/service.rb

Overview

Any additional metadata information regarding the execution of the SQL

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Attribute Details

#message::String

Returns Message related to SQL execution. Marked as core content since it can potentially contain details related to the query or result set. This field can be used to convey messages such as "when the SQL result set exceeds the acceptable response size limits.".

Returns:

  • (::String)

    Message related to SQL execution. Marked as core content since it can potentially contain details related to the query or result set. This field can be used to convey messages such as "when the SQL result set exceeds the acceptable response size limits."



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 846

class ExecuteSqlMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Status contains all valid Status a SQL execution can end up in.
  module Status
    # The status is unknown.
    STATUS_UNSPECIFIED = 0

    # No error during SQL execution i.e. All SQL statements ran to completion.
    # The "message" will be empty.
    OK = 1

    # Same as OK, except indicates that only partial results were
    # returned. The "message" field will contain details on why results were
    # truncated.
    PARTIAL = 2

    # Error during SQL execution. Atleast 1 SQL statement execution resulted in
    # a error. Side effects of other statements are rolled back.  The "message"
    # field will contain human readable error given by Postgres of the first
    # bad SQL statement. SQL execution errors don't constitute API errors as
    # defined in https://google.aip.dev/193 but will be returned as part of
    # this message.
    ERROR = 3
  end
end

#partial_result::Boolean

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

Returns:

  • (::Boolean)

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



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 846

class ExecuteSqlMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Status contains all valid Status a SQL execution can end up in.
  module Status
    # The status is unknown.
    STATUS_UNSPECIFIED = 0

    # No error during SQL execution i.e. All SQL statements ran to completion.
    # The "message" will be empty.
    OK = 1

    # Same as OK, except indicates that only partial results were
    # returned. The "message" field will contain details on why results were
    # truncated.
    PARTIAL = 2

    # Error during SQL execution. Atleast 1 SQL statement execution resulted in
    # a error. Side effects of other statements are rolled back.  The "message"
    # field will contain human readable error given by Postgres of the first
    # bad SQL statement. SQL execution errors don't constitute API errors as
    # defined in https://google.aip.dev/193 but will be returned as part of
    # this message.
    ERROR = 3
  end
end

#sql_statement_execution_duration::Google::Protobuf::Duration

Returns The time duration taken to execute the sql statement.

Returns:



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 846

class ExecuteSqlMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Status contains all valid Status a SQL execution can end up in.
  module Status
    # The status is unknown.
    STATUS_UNSPECIFIED = 0

    # No error during SQL execution i.e. All SQL statements ran to completion.
    # The "message" will be empty.
    OK = 1

    # Same as OK, except indicates that only partial results were
    # returned. The "message" field will contain details on why results were
    # truncated.
    PARTIAL = 2

    # Error during SQL execution. Atleast 1 SQL statement execution resulted in
    # a error. Side effects of other statements are rolled back.  The "message"
    # field will contain human readable error given by Postgres of the first
    # bad SQL statement. SQL execution errors don't constitute API errors as
    # defined in https://google.aip.dev/193 but will be returned as part of
    # this message.
    ERROR = 3
  end
end

#status::Google::Cloud::AlloyDB::V1::ExecuteSqlMetadata::Status

Returns Status of SQL execution.

Returns:



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 846

class ExecuteSqlMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Status contains all valid Status a SQL execution can end up in.
  module Status
    # The status is unknown.
    STATUS_UNSPECIFIED = 0

    # No error during SQL execution i.e. All SQL statements ran to completion.
    # The "message" will be empty.
    OK = 1

    # Same as OK, except indicates that only partial results were
    # returned. The "message" field will contain details on why results were
    # truncated.
    PARTIAL = 2

    # Error during SQL execution. Atleast 1 SQL statement execution resulted in
    # a error. Side effects of other statements are rolled back.  The "message"
    # field will contain human readable error given by Postgres of the first
    # bad SQL statement. SQL execution errors don't constitute API errors as
    # defined in https://google.aip.dev/193 but will be returned as part of
    # this message.
    ERROR = 3
  end
end