Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,17 @@ snapshots and for pre-execution inspection with `EXPLAIN`.
expanded, err := bisql.ExpandFile(sqlFS, "users/search.sql")
```

> [!TIP]
> Pin **two snapshots per query** as a regression guard:
>
> - **Expansion** — the `Expand`/`ExpandFile` output (`@include` resolved, still two-way).
> Dialect- and parameter-independent; isolates *what was composed*.
> - **Build** — the `SQL` + `Args` (or the values-embedded `SQLWithArgs`) for representative
> parameters, per dialect; captures *what an input produces*.
>
> The sample project under [`testdata/example`](testdata/example) does this: one
> `<name>.expanded.sql` per query, one `<name>.<case>.embedded.sql` per case.

## Authoring rules

Because the engine removes nothing implicitly, a template author observes the following rules.
Expand Down
Loading