This type of transaction is used to execute a single Partitioned DML statement. Partitioned DML partitions the key space and runs the DML statement over each partition in parallel using separate, internal transactions that commit independently.
Chances are, you'll never need to create a partitioned DML transaction directly, instead you'll want to use .
Snapshot
Database#runPartitionedUpdate
Inheritance
Dml > PartitionedDmlPackage
@google-cloud/spanner!Constructors
(constructor)(session, options)
constructor(session: Session, options?: spannerClient.spanner.v1.TransactionOptions.PartitionedDml);
Constructs a new instance of the PartitionedDml
class
Type | Name | Description |
---|---|---|
Session | session | |
spannerClient.spanner.v1.TransactionOptions.PartitionedDml | options |
Methods
runUpdate(query)
runUpdate(query: string | ExecuteSqlRequest): Promise<RunUpdateResponse>;
Type | Name | Description |
---|---|---|
string | ExecuteSqlRequest | query |
Type | Description |
---|---|
Promise<RunUpdateResponse> |
runUpdate(query, callback)
runUpdate(query: string | ExecuteSqlRequest, callback: RunUpdateCallback): void;
Type | Name | Description |
---|---|---|
string | ExecuteSqlRequest | query | |
RunUpdateCallback | callback |
Type | Description |
---|---|
void |