postgresdk 0.18.22 → 0.18.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/cli.js +284 -608
- package/dist/emit-include-loader.d.ts +6 -2
- package/dist/emit-sdk-contract.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +285 -608
- package/dist/types.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import type { Graph } from "./rel-classify";
|
|
2
1
|
import type { Model } from "./introspect";
|
|
2
|
+
type EmitIncludeLoaderOpts = {
|
|
3
|
+
softDeleteCols?: Record<string, string | null>;
|
|
4
|
+
useJsExtensions?: boolean;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
7
|
* Emit a generic include loader that:
|
|
5
8
|
* - Walks the include spec
|
|
6
9
|
* - Loads children in batches per edge kind
|
|
7
10
|
* - Stitches onto parent rows (mutates copies)
|
|
8
11
|
*/
|
|
9
|
-
export declare function emitIncludeLoader(
|
|
12
|
+
export declare function emitIncludeLoader(model: Model, maxDepth: number, opts?: EmitIncludeLoaderOpts): string;
|
|
13
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import "dotenv/config";
|
|
2
|
+
import type { Config } from "./types";
|
|
3
|
+
/** Resolves the effective soft delete column for a given table, respecting per-table overrides. */
|
|
4
|
+
export declare function resolveSoftDeleteColumn(cfg: Pick<Config, "softDeleteColumn" | "softDeleteColumnOverrides">, tableName: string): string | null;
|
|
2
5
|
export declare function generate(configPath: string): Promise<void>;
|