Skip to content

Commit

Permalink
docs(changeset): Add .scopedSQL(sql => ...) method to PgSelectStep,…
Browse files Browse the repository at this point in the history
… PgSelectSingleStep, PgUnionAllStep, PgUnionAllSingleStep; can be used to allow embedding of other _typed_ steps directly into an SQL expression without needing to use `$pgSelect.placeholder(...)` wrapper. Only works with steps that have a `pgCodec: PgCodec` property (typically those coming from PgSelectSingleStep accesses) since otherwise we don't currently know how to cast the value to Postgres.
  • Loading branch information
benjie committed Jan 17, 2025
1 parent 182ed05 commit c353805
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changeset/dull-moles-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@dataplan/pg": patch
---

Add `.scopedSQL(sql => ...)` method to PgSelectStep, PgSelectSingleStep,
PgUnionAllStep, PgUnionAllSingleStep; can be used to allow embedding of other
_typed_ steps directly into an SQL expression without needing to use
`$pgSelect.placeholder(...)` wrapper. Only works with steps that have a
`pgCodec: PgCodec` property (typically those coming from PgSelectSingleStep
accesses) since otherwise we don't currently know how to cast the value to
Postgres.

0 comments on commit c353805

Please sign in to comment.