@constructive-io/graphql-codegen 5.0.4 → 5.1.1
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/core/introspect/source/api-schemas.d.ts +8 -8
- package/core/introspect/source/api-schemas.js +17 -17
- package/core/introspect/source/database.d.ts +1 -1
- package/core/introspect/source/database.js +1 -1
- package/core/introspect/source/pgpm-module.d.ts +2 -2
- package/core/introspect/source/pgpm-module.js +1 -1
- package/esm/core/introspect/source/api-schemas.d.ts +8 -8
- package/esm/core/introspect/source/api-schemas.js +16 -16
- package/esm/core/introspect/source/database.d.ts +1 -1
- package/esm/core/introspect/source/database.js +2 -2
- package/esm/core/introspect/source/pgpm-module.d.ts +2 -2
- package/esm/core/introspect/source/pgpm-module.js +2 -2
- package/esm/types/config.d.ts +1 -1
- package/package.json +9 -9
- package/types/config.d.ts +1 -1
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
* API Schemas Resolution
|
|
3
3
|
*
|
|
4
4
|
* Utilities for resolving PostgreSQL schema names from API names
|
|
5
|
-
* by querying the
|
|
5
|
+
* by querying the constructive_routing_public.api_schemas table.
|
|
6
6
|
*/
|
|
7
7
|
import { Pool } from 'pg';
|
|
8
8
|
/**
|
|
9
|
-
* Result of validating
|
|
9
|
+
* Result of validating routing schema requirements
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface RoutingSchemaValidation {
|
|
12
12
|
valid: boolean;
|
|
13
13
|
error?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Validate that the required
|
|
16
|
+
* Validate that the required routing schemas exist in the database
|
|
17
17
|
*
|
|
18
18
|
* Checks for:
|
|
19
|
-
* -
|
|
19
|
+
* - constructive_routing_public schema with apis and api_schemas tables
|
|
20
20
|
* - metaschema_public schema with schema table
|
|
21
21
|
*
|
|
22
22
|
* @param pool - Database connection pool
|
|
23
23
|
* @returns Validation result
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function validateRoutingSchemas(pool: Pool): Promise<RoutingSchemaValidation>;
|
|
26
26
|
/**
|
|
27
|
-
* Resolve schema names from API names by querying
|
|
27
|
+
* Resolve schema names from API names by querying constructive_routing_public.api_schemas
|
|
28
28
|
*
|
|
29
|
-
* Joins
|
|
29
|
+
* Joins constructive_routing_public.apis, constructive_routing_public.api_schemas, and metaschema_public.schema
|
|
30
30
|
* to get the actual PostgreSQL schema names for the given API names.
|
|
31
31
|
*
|
|
32
32
|
* @param pool - Database connection pool
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.validateRoutingSchemas = validateRoutingSchemas;
|
|
4
4
|
exports.resolveApiSchemas = resolveApiSchemas;
|
|
5
5
|
exports.createDatabasePool = createDatabasePool;
|
|
6
6
|
const pg_cache_1 = require("pg-cache");
|
|
7
7
|
const pg_env_1 = require("pg-env");
|
|
8
8
|
/**
|
|
9
|
-
* Validate that the required
|
|
9
|
+
* Validate that the required routing schemas exist in the database
|
|
10
10
|
*
|
|
11
11
|
* Checks for:
|
|
12
|
-
* -
|
|
12
|
+
* - constructive_routing_public schema with apis and api_schemas tables
|
|
13
13
|
* - metaschema_public schema with schema table
|
|
14
14
|
*
|
|
15
15
|
* @param pool - Database connection pool
|
|
16
16
|
* @returns Validation result
|
|
17
17
|
*/
|
|
18
|
-
async function
|
|
18
|
+
async function validateRoutingSchemas(pool) {
|
|
19
19
|
try {
|
|
20
|
-
// Check for
|
|
20
|
+
// Check for constructive_routing_public.apis table
|
|
21
21
|
const apisCheck = await pool.query(`
|
|
22
22
|
SELECT 1 FROM information_schema.tables
|
|
23
|
-
WHERE table_schema = '
|
|
23
|
+
WHERE table_schema = 'constructive_routing_public'
|
|
24
24
|
AND table_name = 'apis'
|
|
25
25
|
`);
|
|
26
26
|
if (apisCheck.rows.length === 0) {
|
|
27
27
|
return {
|
|
28
28
|
valid: false,
|
|
29
|
-
error: '
|
|
29
|
+
error: 'constructive_routing_public.apis table not found. The database must have the routing schema deployed.',
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
// Check for
|
|
32
|
+
// Check for constructive_routing_public.api_schemas table
|
|
33
33
|
const apiSchemasCheck = await pool.query(`
|
|
34
34
|
SELECT 1 FROM information_schema.tables
|
|
35
|
-
WHERE table_schema = '
|
|
35
|
+
WHERE table_schema = 'constructive_routing_public'
|
|
36
36
|
AND table_name = 'api_schemas'
|
|
37
37
|
`);
|
|
38
38
|
if (apiSchemasCheck.rows.length === 0) {
|
|
39
39
|
return {
|
|
40
40
|
valid: false,
|
|
41
|
-
error: '
|
|
41
|
+
error: 'constructive_routing_public.api_schemas table not found. The database must have the routing schema deployed.',
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
// Check for metaschema_public.schema table
|
|
@@ -58,14 +58,14 @@ async function validateServicesSchemas(pool) {
|
|
|
58
58
|
catch (err) {
|
|
59
59
|
return {
|
|
60
60
|
valid: false,
|
|
61
|
-
error: `Failed to validate
|
|
61
|
+
error: `Failed to validate routing schemas: ${err instanceof Error ? err.message : 'Unknown error'}`,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* Resolve schema names from API names by querying
|
|
66
|
+
* Resolve schema names from API names by querying constructive_routing_public.api_schemas
|
|
67
67
|
*
|
|
68
|
-
* Joins
|
|
68
|
+
* Joins constructive_routing_public.apis, constructive_routing_public.api_schemas, and metaschema_public.schema
|
|
69
69
|
* to get the actual PostgreSQL schema names for the given API names.
|
|
70
70
|
*
|
|
71
71
|
* @param pool - Database connection pool
|
|
@@ -75,22 +75,22 @@ async function validateServicesSchemas(pool) {
|
|
|
75
75
|
*/
|
|
76
76
|
async function resolveApiSchemas(pool, apiNames) {
|
|
77
77
|
// First validate that the required schemas exist
|
|
78
|
-
const validation = await
|
|
78
|
+
const validation = await validateRoutingSchemas(pool);
|
|
79
79
|
if (!validation.valid) {
|
|
80
80
|
throw new Error(validation.error);
|
|
81
81
|
}
|
|
82
82
|
// Query to get schema names for the given API names
|
|
83
83
|
const result = await pool.query(`
|
|
84
84
|
SELECT DISTINCT ms.schema_name
|
|
85
|
-
FROM
|
|
86
|
-
JOIN
|
|
85
|
+
FROM constructive_routing_public.api_schemas as_tbl
|
|
86
|
+
JOIN constructive_routing_public.apis api ON api.id = as_tbl.api_id
|
|
87
87
|
JOIN metaschema_public.schema ms ON ms.id = as_tbl.schema_id
|
|
88
88
|
WHERE api.name = ANY($1)
|
|
89
89
|
ORDER BY ms.schema_name
|
|
90
90
|
`, [apiNames]);
|
|
91
91
|
if (result.rows.length === 0) {
|
|
92
92
|
throw new Error(`No schemas found for API names: ${apiNames.join(', ')}. ` +
|
|
93
|
-
'Ensure the APIs exist and have schemas assigned in
|
|
93
|
+
'Ensure the APIs exist and have schemas assigned in constructive_routing_public.api_schemas.');
|
|
94
94
|
}
|
|
95
95
|
return result.rows.map((row) => row.schema_name);
|
|
96
96
|
}
|
|
@@ -13,7 +13,7 @@ export interface DatabaseSchemaSourceOptions {
|
|
|
13
13
|
schemas?: string[];
|
|
14
14
|
/**
|
|
15
15
|
* API names to resolve schemas from
|
|
16
|
-
* Queries
|
|
16
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
17
17
|
* Mutually exclusive with schemas
|
|
18
18
|
*/
|
|
19
19
|
apiNames?: string[];
|
|
@@ -31,7 +31,7 @@ class DatabaseSchemaSource {
|
|
|
31
31
|
// Validate services schemas exist at the beginning for database mode
|
|
32
32
|
const pool = (0, api_schemas_1.createDatabasePool)(database);
|
|
33
33
|
try {
|
|
34
|
-
const validation = await (0, api_schemas_1.
|
|
34
|
+
const validation = await (0, api_schemas_1.validateRoutingSchemas)(pool);
|
|
35
35
|
if (!validation.valid) {
|
|
36
36
|
throw new types_1.SchemaSourceError(validation.error, this.describe());
|
|
37
37
|
}
|
|
@@ -15,7 +15,7 @@ export interface PgpmModulePathOptions {
|
|
|
15
15
|
schemas?: string[];
|
|
16
16
|
/**
|
|
17
17
|
* API names to resolve schemas from
|
|
18
|
-
* Queries
|
|
18
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
19
19
|
* Mutually exclusive with schemas
|
|
20
20
|
*/
|
|
21
21
|
apiNames?: string[];
|
|
@@ -45,7 +45,7 @@ export interface PgpmWorkspaceOptions {
|
|
|
45
45
|
schemas?: string[];
|
|
46
46
|
/**
|
|
47
47
|
* API names to resolve schemas from
|
|
48
|
-
* Queries
|
|
48
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
49
49
|
* Mutually exclusive with schemas
|
|
50
50
|
*/
|
|
51
51
|
apiNames?: string[];
|
|
@@ -85,7 +85,7 @@ class PgpmModuleSchemaSource {
|
|
|
85
85
|
// For PGPM mode, validate services schemas AFTER migration
|
|
86
86
|
const pool = (0, pg_cache_1.getPgPool)(dbConfig);
|
|
87
87
|
try {
|
|
88
|
-
const validation = await (0, api_schemas_1.
|
|
88
|
+
const validation = await (0, api_schemas_1.validateRoutingSchemas)(pool);
|
|
89
89
|
if (!validation.valid) {
|
|
90
90
|
throw new types_1.SchemaSourceError(validation.error, this.describe());
|
|
91
91
|
}
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
* API Schemas Resolution
|
|
3
3
|
*
|
|
4
4
|
* Utilities for resolving PostgreSQL schema names from API names
|
|
5
|
-
* by querying the
|
|
5
|
+
* by querying the constructive_routing_public.api_schemas table.
|
|
6
6
|
*/
|
|
7
7
|
import { Pool } from 'pg';
|
|
8
8
|
/**
|
|
9
|
-
* Result of validating
|
|
9
|
+
* Result of validating routing schema requirements
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface RoutingSchemaValidation {
|
|
12
12
|
valid: boolean;
|
|
13
13
|
error?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Validate that the required
|
|
16
|
+
* Validate that the required routing schemas exist in the database
|
|
17
17
|
*
|
|
18
18
|
* Checks for:
|
|
19
|
-
* -
|
|
19
|
+
* - constructive_routing_public schema with apis and api_schemas tables
|
|
20
20
|
* - metaschema_public schema with schema table
|
|
21
21
|
*
|
|
22
22
|
* @param pool - Database connection pool
|
|
23
23
|
* @returns Validation result
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function validateRoutingSchemas(pool: Pool): Promise<RoutingSchemaValidation>;
|
|
26
26
|
/**
|
|
27
|
-
* Resolve schema names from API names by querying
|
|
27
|
+
* Resolve schema names from API names by querying constructive_routing_public.api_schemas
|
|
28
28
|
*
|
|
29
|
-
* Joins
|
|
29
|
+
* Joins constructive_routing_public.apis, constructive_routing_public.api_schemas, and metaschema_public.schema
|
|
30
30
|
* to get the actual PostgreSQL schema names for the given API names.
|
|
31
31
|
*
|
|
32
32
|
* @param pool - Database connection pool
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { getPgPool } from 'pg-cache';
|
|
2
2
|
import { getPgEnvOptions } from 'pg-env';
|
|
3
3
|
/**
|
|
4
|
-
* Validate that the required
|
|
4
|
+
* Validate that the required routing schemas exist in the database
|
|
5
5
|
*
|
|
6
6
|
* Checks for:
|
|
7
|
-
* -
|
|
7
|
+
* - constructive_routing_public schema with apis and api_schemas tables
|
|
8
8
|
* - metaschema_public schema with schema table
|
|
9
9
|
*
|
|
10
10
|
* @param pool - Database connection pool
|
|
11
11
|
* @returns Validation result
|
|
12
12
|
*/
|
|
13
|
-
export async function
|
|
13
|
+
export async function validateRoutingSchemas(pool) {
|
|
14
14
|
try {
|
|
15
|
-
// Check for
|
|
15
|
+
// Check for constructive_routing_public.apis table
|
|
16
16
|
const apisCheck = await pool.query(`
|
|
17
17
|
SELECT 1 FROM information_schema.tables
|
|
18
|
-
WHERE table_schema = '
|
|
18
|
+
WHERE table_schema = 'constructive_routing_public'
|
|
19
19
|
AND table_name = 'apis'
|
|
20
20
|
`);
|
|
21
21
|
if (apisCheck.rows.length === 0) {
|
|
22
22
|
return {
|
|
23
23
|
valid: false,
|
|
24
|
-
error: '
|
|
24
|
+
error: 'constructive_routing_public.apis table not found. The database must have the routing schema deployed.',
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
// Check for
|
|
27
|
+
// Check for constructive_routing_public.api_schemas table
|
|
28
28
|
const apiSchemasCheck = await pool.query(`
|
|
29
29
|
SELECT 1 FROM information_schema.tables
|
|
30
|
-
WHERE table_schema = '
|
|
30
|
+
WHERE table_schema = 'constructive_routing_public'
|
|
31
31
|
AND table_name = 'api_schemas'
|
|
32
32
|
`);
|
|
33
33
|
if (apiSchemasCheck.rows.length === 0) {
|
|
34
34
|
return {
|
|
35
35
|
valid: false,
|
|
36
|
-
error: '
|
|
36
|
+
error: 'constructive_routing_public.api_schemas table not found. The database must have the routing schema deployed.',
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
// Check for metaschema_public.schema table
|
|
@@ -53,14 +53,14 @@ export async function validateServicesSchemas(pool) {
|
|
|
53
53
|
catch (err) {
|
|
54
54
|
return {
|
|
55
55
|
valid: false,
|
|
56
|
-
error: `Failed to validate
|
|
56
|
+
error: `Failed to validate routing schemas: ${err instanceof Error ? err.message : 'Unknown error'}`,
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Resolve schema names from API names by querying
|
|
61
|
+
* Resolve schema names from API names by querying constructive_routing_public.api_schemas
|
|
62
62
|
*
|
|
63
|
-
* Joins
|
|
63
|
+
* Joins constructive_routing_public.apis, constructive_routing_public.api_schemas, and metaschema_public.schema
|
|
64
64
|
* to get the actual PostgreSQL schema names for the given API names.
|
|
65
65
|
*
|
|
66
66
|
* @param pool - Database connection pool
|
|
@@ -70,22 +70,22 @@ export async function validateServicesSchemas(pool) {
|
|
|
70
70
|
*/
|
|
71
71
|
export async function resolveApiSchemas(pool, apiNames) {
|
|
72
72
|
// First validate that the required schemas exist
|
|
73
|
-
const validation = await
|
|
73
|
+
const validation = await validateRoutingSchemas(pool);
|
|
74
74
|
if (!validation.valid) {
|
|
75
75
|
throw new Error(validation.error);
|
|
76
76
|
}
|
|
77
77
|
// Query to get schema names for the given API names
|
|
78
78
|
const result = await pool.query(`
|
|
79
79
|
SELECT DISTINCT ms.schema_name
|
|
80
|
-
FROM
|
|
81
|
-
JOIN
|
|
80
|
+
FROM constructive_routing_public.api_schemas as_tbl
|
|
81
|
+
JOIN constructive_routing_public.apis api ON api.id = as_tbl.api_id
|
|
82
82
|
JOIN metaschema_public.schema ms ON ms.id = as_tbl.schema_id
|
|
83
83
|
WHERE api.name = ANY($1)
|
|
84
84
|
ORDER BY ms.schema_name
|
|
85
85
|
`, [apiNames]);
|
|
86
86
|
if (result.rows.length === 0) {
|
|
87
87
|
throw new Error(`No schemas found for API names: ${apiNames.join(', ')}. ` +
|
|
88
|
-
'Ensure the APIs exist and have schemas assigned in
|
|
88
|
+
'Ensure the APIs exist and have schemas assigned in constructive_routing_public.api_schemas.');
|
|
89
89
|
}
|
|
90
90
|
return result.rows.map((row) => row.schema_name);
|
|
91
91
|
}
|
|
@@ -13,7 +13,7 @@ export interface DatabaseSchemaSourceOptions {
|
|
|
13
13
|
schemas?: string[];
|
|
14
14
|
/**
|
|
15
15
|
* API names to resolve schemas from
|
|
16
|
-
* Queries
|
|
16
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
17
17
|
* Mutually exclusive with schemas
|
|
18
18
|
*/
|
|
19
19
|
apiNames?: string[];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { buildSchema, introspectionFromSchema } from 'graphql';
|
|
9
9
|
import { buildSchemaSDL, _cachedTablesMeta } from 'graphile-schema';
|
|
10
|
-
import { createDatabasePool, resolveApiSchemas,
|
|
10
|
+
import { createDatabasePool, resolveApiSchemas, validateRoutingSchemas, } from './api-schemas';
|
|
11
11
|
import { SchemaSourceError } from './types';
|
|
12
12
|
/**
|
|
13
13
|
* Schema source that loads from a PostgreSQL database
|
|
@@ -28,7 +28,7 @@ export class DatabaseSchemaSource {
|
|
|
28
28
|
// Validate services schemas exist at the beginning for database mode
|
|
29
29
|
const pool = createDatabasePool(database);
|
|
30
30
|
try {
|
|
31
|
-
const validation = await
|
|
31
|
+
const validation = await validateRoutingSchemas(pool);
|
|
32
32
|
if (!validation.valid) {
|
|
33
33
|
throw new SchemaSourceError(validation.error, this.describe());
|
|
34
34
|
}
|
|
@@ -15,7 +15,7 @@ export interface PgpmModulePathOptions {
|
|
|
15
15
|
schemas?: string[];
|
|
16
16
|
/**
|
|
17
17
|
* API names to resolve schemas from
|
|
18
|
-
* Queries
|
|
18
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
19
19
|
* Mutually exclusive with schemas
|
|
20
20
|
*/
|
|
21
21
|
apiNames?: string[];
|
|
@@ -45,7 +45,7 @@ export interface PgpmWorkspaceOptions {
|
|
|
45
45
|
schemas?: string[];
|
|
46
46
|
/**
|
|
47
47
|
* API names to resolve schemas from
|
|
48
|
-
* Queries
|
|
48
|
+
* Queries constructive_routing_public.api_schemas to get schema names
|
|
49
49
|
* Mutually exclusive with schemas
|
|
50
50
|
*/
|
|
51
51
|
apiNames?: string[];
|
|
@@ -13,7 +13,7 @@ import { getPgPool, pgCache } from 'pg-cache';
|
|
|
13
13
|
import { createEphemeralDb } from 'pgsql-client';
|
|
14
14
|
import { deployPgpm } from 'pgsql-seed';
|
|
15
15
|
import { buildSchemaSDL } from 'graphile-schema';
|
|
16
|
-
import { resolveApiSchemas,
|
|
16
|
+
import { resolveApiSchemas, validateRoutingSchemas } from './api-schemas';
|
|
17
17
|
import { SchemaSourceError } from './types';
|
|
18
18
|
/**
|
|
19
19
|
* Type guard to check if options use direct module path
|
|
@@ -80,7 +80,7 @@ export class PgpmModuleSchemaSource {
|
|
|
80
80
|
// For PGPM mode, validate services schemas AFTER migration
|
|
81
81
|
const pool = getPgPool(dbConfig);
|
|
82
82
|
try {
|
|
83
|
-
const validation = await
|
|
83
|
+
const validation = await validateRoutingSchemas(pool);
|
|
84
84
|
if (!validation.valid) {
|
|
85
85
|
throw new SchemaSourceError(validation.error, this.describe());
|
|
86
86
|
}
|
package/esm/types/config.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export interface DbConfig {
|
|
|
100
100
|
schemas?: string[];
|
|
101
101
|
/**
|
|
102
102
|
* API names to resolve schemas from
|
|
103
|
-
* Queries
|
|
103
|
+
* Queries constructive_routing_public.api_schemas to automatically determine schemas
|
|
104
104
|
* Mutually exclusive with `schemas`
|
|
105
105
|
* @example ['my_api']
|
|
106
106
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -56,24 +56,24 @@
|
|
|
56
56
|
"@0no-co/graphql.web": "^1.1.2",
|
|
57
57
|
"@babel/generator": "^7.29.1",
|
|
58
58
|
"@babel/types": "^7.29.0",
|
|
59
|
-
"@constructive-io/graphql-query": "^4.0.
|
|
60
|
-
"@constructive-io/graphql-types": "^3.
|
|
59
|
+
"@constructive-io/graphql-query": "^4.0.6",
|
|
60
|
+
"@constructive-io/graphql-types": "^3.16.1",
|
|
61
61
|
"@inquirerer/utils": "^3.3.9",
|
|
62
|
-
"@pgpmjs/core": "^7.
|
|
62
|
+
"@pgpmjs/core": "^7.3.0",
|
|
63
63
|
"ajv": "^8.20.0",
|
|
64
64
|
"deepmerge": "^4.3.1",
|
|
65
65
|
"find-and-require-package-json": "^0.9.1",
|
|
66
66
|
"gql-ast": "^3.13.0",
|
|
67
|
-
"graphile-schema": "^2.0.
|
|
67
|
+
"graphile-schema": "^2.0.6",
|
|
68
68
|
"graphql": "16.13.0",
|
|
69
69
|
"inflekt": "^0.7.1",
|
|
70
70
|
"inquirerer": "^4.9.1",
|
|
71
71
|
"jiti": "^2.7.0",
|
|
72
72
|
"oxfmt": "^0.51.0",
|
|
73
|
-
"pg-cache": "^3.15.
|
|
73
|
+
"pg-cache": "^3.15.3",
|
|
74
74
|
"pg-env": "^1.18.1",
|
|
75
|
-
"pgsql-client": "^4.0.
|
|
76
|
-
"pgsql-seed": "^3.0.
|
|
75
|
+
"pgsql-client": "^4.0.5",
|
|
76
|
+
"pgsql-seed": "^3.0.5",
|
|
77
77
|
"query-spec": "^0.1.0",
|
|
78
78
|
"undici": "^8.3.0"
|
|
79
79
|
},
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"tsx": "^4.21.0",
|
|
102
102
|
"typescript": "^5.9.3"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "ebba3f838664032e6f6adf6c9c6d2b6cdddd994a"
|
|
105
105
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export interface DbConfig {
|
|
|
100
100
|
schemas?: string[];
|
|
101
101
|
/**
|
|
102
102
|
* API names to resolve schemas from
|
|
103
|
-
* Queries
|
|
103
|
+
* Queries constructive_routing_public.api_schemas to automatically determine schemas
|
|
104
104
|
* Mutually exclusive with `schemas`
|
|
105
105
|
* @example ['my_api']
|
|
106
106
|
*/
|