Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .changeset/afraid-baboons-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@dataplan/pg": patch
---

Export `PgRootStep` interface, and improve said interface to support
`placeholder` of a `PgTypedStep` (with no codec necessary).
5 changes: 5 additions & 0 deletions .changeset/chatty-actors-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"graphile-build-pg": patch
---

Re-export `sql` and `SQL` from `graphile-build-pg`.
2 changes: 2 additions & 0 deletions grafast/dataplan-pg/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ import type { PgInsertSingleQueryBuilder } from "./steps/pgInsertSingle.ts";
import { pgInsertSingle, PgInsertSingleStep } from "./steps/pgInsertSingle.ts";
import type {
PgGroupDetails,
PgRootStep,
PgSelectArgumentDigest,
PgSelectArgumentRuntimeValue,
PgSelectArgumentSpec,
Expand Down Expand Up @@ -288,6 +289,7 @@ export type {
PgResourceParameter,
PgResourceUnique,
PgResourceUniqueExtensions,
PgRootStep,
PgSelectArgumentDigest,
PgSelectArgumentRuntimeValue,
PgSelectArgumentSpec,
Expand Down
1 change: 1 addition & 0 deletions grafast/dataplan-pg/src/steps/pgSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export type PgSelectMode = "normal" | "aggregate" | "mutation";
* but not guaranteed.
*/
export type PgRootStep = Step & {
placeholder(step: PgTypedStep): SQL;
placeholder(step: Step, codec: PgCodec): SQL;
deferredSQL($step: Step<SQL>): SQL;
};
Expand Down
2 changes: 2 additions & 0 deletions graphile-build/graphile-build-pg/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,5 @@ export {
getWithPgClientFromPgService,
withPgClientFromPgService,
} from "@dataplan/pg";
export type { SQL } from "pg-sql2";
export { sql } from "pg-sql2";