ExecuteSqlRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The request for
Required. The session in which the SQL query should be performed.
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.
Required. The SQL string.
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type
If this request is resuming a previously interrupted SQL statement execution,
Used to control the amount of debugging information returned in
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.
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.
Query optimizer configuration to use for the given query.
Common options for this request.
Inheritancebuiltins.object > proto.message.Message > ExecuteSqlRequest
ParamTypesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Keys and values corresponding to the fields of the message.
A dictionary or message to be used to determine the values for this message.
If True, do not raise errors for unknown fields. Only applied if
Mode in which the statement must be processed.
QueryOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Query optimizer configuration.