SQL
Execute operator-declared parameterized reads through an installed SQLAlchemy database dialect and driver. Connection settings and query definitions stay with the selected local instance.
2 implemented operations
connector.yamlquery.readExecute one declared query with schema-validated bound parameters and return bounded rows. Database read-only permissions and timeouts must be configured by the operator.database.query.read
- LocalReadyA trusted host process runs it.
- Runx scope
database.query.read- Target
{"$argument":"/source"}- Credentials
- Any of
connection - Local implementation
- Trusted host process:
tool sql.read
| Field and constraints | Type / values | Required |
|---|---|---|
action | "query" | Yes |
sourcePattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$ | string | Yes |
max_rowsMinimum 1Maximum 1000 | integer | Yes |
query_idPattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$ | string | Yes |
parametersAt most 64 fields | object | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"action",
"source",
"query_id",
"parameters",
"max_rows"
],
"properties": {
"action": {
"const": "query"
},
"source": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$"
},
"max_rows": {
"type": "integer",
"maximum": 1000,
"minimum": 1
},
"query_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$"
},
"parameters": {
"type": "object",
"maxProperties": 64
}
},
"additionalProperties": false
}Result fields sourcedialectstatusexecutedquery_idcolumnsrowsreturned_rowsmax_rowstruncatedresult_descriptionobserved_atduration_ms
Operation digest sha256:92670bc59cf19cbbcf7cfb2d0888d02879d03a2c0394237257a06694108fd62cImplementation sha256:aa44b62028c0e13704a91eb0716c2ee983f1de66e0a6f066e952c8238d8dc28f
catalog.readRead this source's declared query descriptions, parameter schemas and row ceiling without opening the database or exposing connection settings or SQL.database.catalog.read
- LocalReadyA trusted host process runs it.
- Runx scope
database.catalog.read- Target
{"$argument":"/source"}- Credentials
- Any of
connection - Local implementation
- Trusted host process:
tool sql.read
| Field and constraints | Type / values | Required |
|---|---|---|
action | "catalog" | Yes |
sourcePattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$ | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"action",
"source"
],
"properties": {
"action": {
"const": "catalog"
},
"source": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,191}$"
}
},
"additionalProperties": false
}Result fields sourcedialectstatusexecutedmax_rowsqueries
Operation digest sha256:0946406b8517f7bd65fb6a12325fa62ff3286d99e5cfecfd99a51936181bf853Implementation sha256:aa44b62028c0e13704a91eb0716c2ee983f1de66e0a6f066e952c8238d8dc28f
Authentication
Commands here are for runx 0.11.1.
SQL accepts a stored credential.
- Stored credential
connection - A
passwordwith one field:connection(SQL source configuration (JSON)). Supply it through standard input in the project where the skill runs; Runx stores the profile and selects it for this connector.runx connector use sql
Authentication methods describe what the provider requires. They do not imply Runx supports every way the provider authenticates, and they do not grant access to your account.
Permissions
Each operation requires every Runx scope it declares. The account or key behind an instance must also reach the target on SQL’s side; setting one up adds no SQL permissions.
A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.