DatabaseQuery
SQL queries against MySQL®, PostgreSQL, ClickHouse®, and YDB databases.
The connection and dsn fields are mutually exclusive: you can use only one of them.
|
Field name |
Type |
Required |
Default value |
Templating is supported |
Description |
|
|
No |
No |
No |
Database connection parameters |
|
|
|
|
No |
No |
No |
Database connection string (DNS). Supported schemas: |
|
|
|
Yes |
No |
Yes |
SQL query text |
|
|
|
No |
|
No |
SQL query execution method. Values to choose from:
|
DatabaseConnection
The simple and iam fields are mutually exclusive: you can use only one of them. The iam field is only supported for YDB databases.
For a MySQL® database, parseTime=true and charset=utf8mb4 are set automatically.
|
Field name |
Type |
Required |
Default value |
Templating is supported |
Description |
|
|
|
Yes |
No |
No |
Database type. Possible values: |
|
|
|
Yes |
No |
No |
Database host. |
|
|
|
Yes |
No |
No |
Database port. |
|
|
|
Yes |
No |
No |
Database name. |
|
|
|
No |
|
No |
If Additionally,
|
|
|
No |
No |
Yes |
Authentication by username and password. |
|
|
|
|
No |
No |
No |
Authentication by IAM token of the service account specified in the workflow settings. |
DatabaseConnectionSimpleAuth
| Field name | Type | Required | Default value | Templating is supported | Description |
|---|---|---|---|---|---|
username |
string |
Yes | No | Yes | Username. |
password |
string |
Yes | No | Yes | User password. |