From 07a5469e5d3d050a7bcab928bb751c9e150d2e49 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Sat, 18 Jan 2025 13:41:07 +0000 Subject: [PATCH] docs(changeset): Move SQL construction to runtime rather than plantime. Get rid of `textForSingle` since we compile the SQL at runtime so we don't need to handle both cases. Add `$pgSelect.deferredSQL()` API to allow plans to yield (safe, thanks to pg-sql2) SQL to be composed into the query at runtime. --- .changeset/slow-ghosts-report.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/slow-ghosts-report.md diff --git a/.changeset/slow-ghosts-report.md b/.changeset/slow-ghosts-report.md new file mode 100644 index 000000000..d5fe81378 --- /dev/null +++ b/.changeset/slow-ghosts-report.md @@ -0,0 +1,8 @@ +--- +"@dataplan/pg": patch +--- + +Move SQL construction to runtime rather than plantime. Get rid of +`textForSingle` since we compile the SQL at runtime so we don't need to handle +both cases. Add `$pgSelect.deferredSQL()` API to allow plans to yield (safe, +thanks to pg-sql2) SQL to be composed into the query at runtime.