Skip to content

Commit db8742a

Browse files
committed
docs(roadmap): add SQL file export to v0.2, move template caching to maybe
1 parent 149ce29 commit db8742a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ROADMAP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
## v0.2
44

55
- [ ] **Inline template support** — Allow passing SQL strings directly without requiring a `.sql` file, reducing boilerplate for short one-off queries
6-
- [ ] **Template caching**Cache loaded templates in a `Map` to avoid redundant `readFileSync` calls when `defineQuery` is used outside module scope
6+
- [ ] **Export rendered SQL to file**Add an option to write the rendered SQL to a file for debugging and audit purposes
77
- [ ] **TypeDescriptor `description` field** — Add an optional `description` property to `TypeDescriptor` so schema validation errors can display the expected format (e.g. `Expected: ISO date YYYY-MM-DD`)
88

99
## Maybe
1010

11+
- [ ] **Template caching** — Cache loaded templates in a `Map` to avoid redundant `readFileSync` calls when `defineQuery` is used outside module scope
1112
- [ ] **Conditional blocks / IN-list expansion** — Support optional WHERE clauses (`{{#if}}`) and array expansion (`WHERE id IN ({{ids}})`). Would change the library's templating nature significantly — evaluate only if `.sql` file duplication becomes a real pain point
1213
- [ ] **Async `loadTemplate`** — Non-blocking file reads for server environments (Express, Fastify). Not needed for current Lambda/script use cases
1314
- [ ] **Query execution integration** — Return parameterized output or integrate with Athena SDK. Intentionally out of scope to preserve single responsibility — better suited as a separate package

0 commit comments

Comments
 (0)