DatabaseQuery
Note
Currently, there are two UIs that support Workflows: Yandex Cloud
- Workflows created in the Yandex Cloud UI are automatically available in the AI Studio UI.
- Workflows created in the AI Studio UI are not available in the Yandex Cloud UI.
Starting September 3, 2026, Workflows will no longer be supported in the Yandex Cloud UI. To create and manage workflows, use the AI Studio UI.
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 supported |
Description |
|
|
None |
None |
None |
Database connection parameters |
|
|
|
|
None |
None |
None |
Database connection string (DNS). Supported schemas: |
|
|
|
Yes |
None |
Yes |
SQL query text |
|
|
|
None |
|
None |
SQL query execution method. The possible values are:
|
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 supported |
Description |
|
|
|
Yes |
None |
None |
Database type. The possible values are |
|
|
|
Yes |
None |
None |
Database host. |
|
|
|
Yes |
None |
None |
Database port. |
|
|
|
Yes |
None |
None |
Database name. |
|
|
|
|
None |
If Additionally, consider the following:
|
|
|
|
None |
None |
Yes |
Authentication by username and password. |
|
|
|
|
None |
None |
None |
Authentication by IAM token of the service account specified in the workflow settings. |
DatabaseConnectionSimpleAuth
| Field name | Type | Required | Default value | Templating supported | Description |
|---|---|---|---|---|---|
username |
string |
Yes | None | Yes | Username. |
password |
string |
Yes | None | Yes | Password. |