Class PartitionedDml (5.15.2) Stay organized with collections Save and categorize content based on your preferences.
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
Inheritance
Dml >PartitionedDmlPackage
@google-cloud/spannerConstructors
(constructor)(session, options)
constructor(session:Session,options?:spannerClient.spanner.v1.TransactionOptions.PartitionedDml);Constructs a new instance of thePartitionedDml class
| Parameters | |
|---|---|
| Name | Description |
session | Session |
options | google.spanner.v1.TransactionOptions.PartitionedDml |
Methods
runUpdate(query)
runUpdate(query:string|ExecuteSqlRequest):Promise<RunUpdateResponse>;Execute a DML statement and get the affected row count. Unlike after using this method you should immediately discard this transaction, internally it will invoke .
| Parameter | |
|---|---|
| Name | Description |
query | string |ExecuteSqlRequestA DML statement or [ |
| Returns | |
|---|---|
| Type | Description |
Promise<RunUpdateResponse> | {Promise |
transaction.runUpdate(query,(err,rowRount)=>{if(err){// Error handling omitted.}});runUpdate(query, callback)
runUpdate(query:string|ExecuteSqlRequest,callback:RunUpdateCallback):void;| Parameters | |
|---|---|
| Name | Description |
query | string |ExecuteSqlRequest |
callback | RunUpdateCallback |
| Returns | |
|---|---|
| Type | Description |
void | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.