BatchDml

BatchDml

Certified

Execute multiple DML statements atomically.

yaml
type: io.kestra.plugin.gcp.spanner.BatchDml
yaml
id: spanner_batch_dml
namespace: company.team

tasks:
  - id: batch_update
    type: io.kestra.plugin.gcp.spanner.BatchDml
    projectId: "{{ secret('GCP_PROJECT_ID') }}"
    instanceId: my-instance
    databaseId: my-database
    statements:
      - "UPDATE users SET active = true WHERE signup_date > '2023-01-01'"
      - "DELETE FROM temp_sessions WHERE expires_at < CURRENT_TIMESTAMP()"
Properties
SubTypestring
SubTypestring
SubTypeinteger