db-function-contract - Define PostgreSQL Function Contracts
Define PostgreSQL function contracts for model CRUD and document commands using JSONB payloads and results.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Define PostgreSQL function contracts
- Generate standard CRUD functions
- Standardize JSONB envelopes
- Configure schema-driven annotations
- Override functions with custom SQL
- Support document posting workflows
Inputs
- Model description
- TypeBox model schema
- manifest.json
- Database DDL
- JSONB payload shapes
- Custom SQL requirements
Outputs
- Generated SQL source files
- Custom SQL functions
- JSONB response envelopes
- Model command functions
Requirements
- PostgreSQL
- Deno task environment
- TypeBox schema support
- SQL publication workflow
