final case class ExecuteSqlRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = ..., resumeToken: ByteString = ..., queryMode: QueryMode = ..., partitionToken: ByteString = ..., seqno: Long = 0L, queryOptions: Option[QueryOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[ExecuteSqlRequest] with Product with Serializable

The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].

session

Required. The session in which the SQL query should be performed.

transaction

The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.

sql

Required. The SQL string.

params

Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the @ character followed by the parameter name (for example, @firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: "WHERE id > @msg_id AND id < @msg_id + 100" It is an error to execute a SQL statement with unbound parameters.

paramTypes

It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type BYTES and values of type STRING both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, param_types can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.

resumeToken

If this request is resuming a previously interrupted SQL statement execution, resume_token should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL statement execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token.

queryMode

Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats]. If [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only be set to [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].

partitionToken

If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.

seqno

A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.

queryOptions

Query optimizer configuration to use for the given query.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[ExecuteSqlRequest], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecuteSqlRequest
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecuteSqlRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = ..., resumeToken: ByteString = ..., queryMode: QueryMode = ..., partitionToken: ByteString = ..., seqno: Long = 0L, queryOptions: Option[QueryOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)

    session

    Required. The session in which the SQL query should be performed.

    transaction

    The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.

    sql

    Required. The SQL string.

    params

    Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the @ character followed by the parameter name (for example, @firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: "WHERE id > @msg_id AND id < @msg_id + 100" It is an error to execute a SQL statement with unbound parameters.

    paramTypes

    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type BYTES and values of type STRING both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, param_types can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.

    resumeToken

    If this request is resuming a previously interrupted SQL statement execution, resume_token should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL statement execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token.

    queryMode

    Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats]. If [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only be set to [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].

    partitionToken

    If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.

    seqno

    A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.

    queryOptions

    Query optimizer configuration to use for the given query.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllParamTypes(__vs: Iterable[(String, Type)]): ExecuteSqlRequest
  5. def addParamTypes(__vs: (String, Type)*): ExecuteSqlRequest
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearParamTypes: ExecuteSqlRequest
  8. def clearParams: ExecuteSqlRequest
  9. def clearQueryOptions: ExecuteSqlRequest
  10. def clearTransaction: ExecuteSqlRequest
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def companion: ExecuteSqlRequest.type
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  13. def discardUnknownFields: ExecuteSqlRequest
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  18. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  19. def getParams: Struct
  20. def getQueryOptions: QueryOptions
  21. def getTransaction: TransactionSelector
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val paramTypes: Map[String, Type]
  27. val params: Option[Struct]
  28. val partitionToken: ByteString
  29. val queryMode: QueryMode
  30. val queryOptions: Option[QueryOptions]
  31. val resumeToken: ByteString
  32. val seqno: Long
  33. def serializedSize: Int
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  34. val session: String
  35. val sql: String
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  38. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  39. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  40. def toProtoString: String
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  41. val transaction: Option[TransactionSelector]
  42. val unknownFields: UnknownFieldSet
  43. def update(ms: (Lens[ExecuteSqlRequest, ExecuteSqlRequest]) ⇒ scalapb.lenses.Mutation[ExecuteSqlRequest]*): ExecuteSqlRequest
    Definition Classes
    Updatable
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  47. def withParamTypes(__v: Map[String, Type]): ExecuteSqlRequest
  48. def withParams(__v: Struct): ExecuteSqlRequest
  49. def withPartitionToken(__v: ByteString): ExecuteSqlRequest
  50. def withQueryMode(__v: QueryMode): ExecuteSqlRequest
  51. def withQueryOptions(__v: QueryOptions): ExecuteSqlRequest
  52. def withResumeToken(__v: ByteString): ExecuteSqlRequest
  53. def withSeqno(__v: Long): ExecuteSqlRequest
  54. def withSession(__v: String): ExecuteSqlRequest
  55. def withSql(__v: String): ExecuteSqlRequest
  56. def withTransaction(__v: TransactionSelector): ExecuteSqlRequest
  57. def withUnknownFields(__v: UnknownFieldSet): ExecuteSqlRequest
  58. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  59. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    ExecuteSqlRequest → GeneratedMessage
  60. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[ExecuteSqlRequest]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped