@rebasepro/server-postgres 0.11.0 → 0.11.1-canary.g8caabf3
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/dist/collections/buildRegistry.d.ts +1 -1
- package/dist/{ensure-collection-tables-DGMYK0fr.js → ensure-collection-tables-DWEvKSY8.js} +2 -2
- package/dist/{ensure-collection-tables-DGMYK0fr.js.map → ensure-collection-tables-DWEvKSY8.js.map} +1 -1
- package/dist/index.es.js +13 -9
- package/dist/index.es.js.map +1 -1
- package/dist/schema/dynamic-tables.d.ts +1 -1
- package/dist/schema/introspect-runtime.d.ts +1 -1
- package/dist/services/FetchService.d.ts +1 -1
- package/dist/src-D5xBTl32.js.map +1 -1
- package/dist/{src-3VmUJ8Xn.js → src-Da-RFMnG.js} +3 -3
- package/dist/src-Da-RFMnG.js.map +1 -0
- package/package.json +6 -6
- package/src/PostgresBootstrapper.ts +4 -4
- package/src/collections/buildRegistry.ts +1 -1
- package/src/schema/dynamic-tables.ts +1 -1
- package/src/schema/generate-drizzle-schema-logic.ts +10 -2
- package/src/schema/introspect-runtime.ts +1 -1
- package/src/services/FetchService.ts +1 -1
- package/src/utils/drizzle-conditions.ts +18 -1
- package/dist/src-3VmUJ8Xn.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Build drizzle tables at runtime from an introspected schema.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* A project with declared collections gets its drizzle tables from a generated `schema.generated.ts` that
|
|
5
5
|
* the developer commits. BaaS mode has no such file — it points at a database
|
|
6
6
|
* and serves it — so the equivalent table objects are constructed here from
|
|
7
7
|
* `information_schema` metadata.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* single config file.
|
|
8
8
|
*
|
|
9
9
|
* Distinct from `introspect-db.ts`, which runs the same queries but emits
|
|
10
|
-
* TypeScript *source* for a developer to edit and commit (
|
|
10
|
+
* TypeScript *source* for a developer to edit and commit (declared collections). The two
|
|
11
11
|
* share the mapping helpers in `introspect-db-logic.ts` so a table is described
|
|
12
12
|
* the same way whether it was generated or introspected.
|
|
13
13
|
*/
|
|
@@ -35,7 +35,7 @@ export declare class FetchService {
|
|
|
35
35
|
* Converts collection relations to a Drizzle-compatible `with` object.
|
|
36
36
|
*
|
|
37
37
|
* When `include` is provided, only those relations are loaded.
|
|
38
|
-
* When `include` is absent, ALL relations are loaded (
|
|
38
|
+
* When `include` is absent, ALL relations are loaded (the admin path).
|
|
39
39
|
*
|
|
40
40
|
* Automatically detects many-to-many junction tables and nests
|
|
41
41
|
* the target relation so actual row data is returned.
|