read
Query database records and inspect schema using JMD documents. Supports filters, pagination, aggregation, joins, and schema details.
Instructions
Read records or schema via a JMD document (https://github.com/ostermeyer/jmd-spec).
Data (# Label): exact-match lookup.
# Order
id: 42Query (#? Label): QBE filter; optional pagination, projection, aggregation, and JOIN.
#? Order
status: pendingSchema (#! Label): describe the table — columns, types, modifiers, and any sub-section constraints.
#! OrderReserved DDL-object labels (dispatch to per-kind shape unless a real table by that name exists):
#! Database list tables, indexes, triggers, views
#! Index / name: foo index: table, columns, unique, where
#! Trigger / name: foo trigger: when, event, condition, body
#! View / name: foo view: selectQBE operators in #? bodies: = equality (default)
greater than >= greater or equal < less than <= less or equal | alternation (OR), e.g. 'Germany|France' ~ substring (case-insensitive), e.g. '~Corp' ^ regex (implicit full-match anchoring) ! negation, composable with any operator
Frontmatter keys: page-size, page pagination count return only the row count select projection (comma-separated columns) join cross-table JOIN, e.g. 'Table on Col' sum, avg, min, max aggregations with optional 'as alias' group, having, sort GROUP BY / HAVING / ORDER BY
Frontmatter policy: observable tolerance — unknown keys are echoed back as 'ignored-keys: …'. Debug: 'debug: sql, timing, table, plan, filters, resolved, coercions' (composable; 'debug: true' enables all).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |