ResourceBuilt-in resource
kdeps-resource-sql
v3.6.0The `sql` component runs SQL against a named connection - PostgreSQL, MySQL/MariaDB, SQLite, SQL Server or Oracle - and returns the rows or a change summary.
Usage
Built into kdeps: no install. Add it to a resource under the sql: key.
# resources/my-step.yaml
actionId: myStep
sql:
# options below
Documentation
SQL component
The sql component runs SQL against a named connection - PostgreSQL, MySQL/MariaDB, SQLite, SQL Server or Oracle - and returns the rows or a change summary.
# resources/user.yaml
actionId: user
name: Load User
component:
name: sql
with:
connectionName: main # sql_connections.main in ~/.kdeps/config.yaml
query: "SELECT id, name, email FROM users WHERE id = $1"
params:
- "{{ get('user_id') }}" # a lone {{ }} keeps its type: a number stays a number
Read next
- SQL component reference - every key, option and detail
- Python resource - data processing scripts
- Components - how shipped components load
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 3.6.0 | 11/27/2026 | active | GitHub v3.6.0 |
| 3.5.1 | 11/25/2026 | active | GitHub v3.5.1 |
| 3.5.0 | 11/24/2026 | active | GitHub v3.5.0 |
| 3.4.0 | 11/23/2026 | active | GitHub v3.4.0 |
| 3.3.0 | 11/21/2026 | active | GitHub v3.3.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 3.6.0
- Published
- 11/21/2026
Links
Tags
kdepsresourcesql