Execute SQL

spanner.execute_sql
ActionGoogle Cloudconnection required

Calls Spanner REST sessions.create → sessions:executeSql → sessions.delete.

Run a read-only SQL query on Spanner and return rows as plain dicts.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud Spanner
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id, instance, database
Resolved by
config.connection_id, else node.connection_id

Configuration

5 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
instance
Spanner instance id (overrides connection).
stringNo———
database
Database id (overrides connection).
stringNo———
sql
SQL query. Use @name for parameters.
stringYes———
params
Query parameters as JSON object.
objectNo———

Output

One shape.

result

FieldTypeExample
rows
array—
count
number—
{
  "count": 0,
  "rows": []
}

See Execute SQL run in a workflow.

In a technical demo we add the Google Cloud Spanner connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.