
Google Cloud Execute
CertifiedExecute a DML or DDL statement
Google Cloud Execute
Certified
Execute a DML or DDL statement
Executes an INSERT, UPDATE, DELETE statement, or schema change DDL statement.
yaml
type: io.kestra.plugin.gcp.spanner.ExecuteExamples
Execute DML to update records
yaml
id: spanner_execute_dml
namespace: company.team
tasks:
- id: update
type: io.kestra.plugin.gcp.spanner.Execute
projectId: "{{ secret('GCP_PROJECT_ID') }}"
instanceId: my-instance
databaseId: my-database
sql: "UPDATE orders SET status = 'processed' WHERE processed_at IS NULL"
Properties
databaseId *Requiredstring
The Spanner database ID
instanceId *Requiredstring
The Spanner instance ID
projectId *Requiredstring
The GCP project ID
sql *Requiredstring
The SQL statement to execute
emulatorHost string
Spanner emulator host (host: port), for local testing only
When set, the task connects to a local Spanner emulator instead of the real Spanner service.
impersonatedServiceAccount string
The GCP service account to impersonate
isDdl booleanstring
Default
falseWhether the statement is a DDL statement
parameters object
Query parameters (only applicable to DML)
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
scopes array
SubTypestring
The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
affectedRows integer
The number of rows affected by the statement (DML only)