@pgpmjs/export 0.26.3 → 0.26.4
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/esm/export-graphql-meta.js +6 -2
- package/esm/export-meta.js +3 -2
- package/esm/export-utils.js +11 -6
- package/export-graphql-meta.js +6 -2
- package/export-meta.js +3 -2
- package/export-utils.d.ts +1 -1
- package/export-utils.js +11 -6
- package/package.json +2 -2
|
@@ -269,14 +269,18 @@ export const exportGraphQLMeta = async ({ client, database_id }) => {
|
|
|
269
269
|
queryAndParse('plans_module'),
|
|
270
270
|
queryAndParse('realtime_module'),
|
|
271
271
|
queryAndParse('session_secrets_module'),
|
|
272
|
-
queryAndParse('
|
|
273
|
-
queryAndParse('
|
|
272
|
+
queryAndParse('infra_secrets_module'),
|
|
273
|
+
queryAndParse('infra_config_module'),
|
|
274
|
+
queryAndParse('internal_secrets_module'),
|
|
274
275
|
queryAndParse('i18n_module'),
|
|
275
276
|
queryAndParse('agent_module'),
|
|
276
277
|
queryAndParse('function_module'),
|
|
277
278
|
queryAndParse('namespace_module'),
|
|
278
279
|
queryAndParse('merkle_store_module'),
|
|
279
280
|
queryAndParse('graph_module'),
|
|
281
|
+
queryAndParse('graph_execution_module'),
|
|
282
|
+
queryAndParse('function_deployment_module'),
|
|
283
|
+
queryAndParse('function_invocation_module'),
|
|
280
284
|
queryAndParse('compute_log_module'),
|
|
281
285
|
queryAndParse('db_usage_module'),
|
|
282
286
|
queryAndParse('storage_log_module'),
|
package/esm/export-meta.js
CHANGED
|
@@ -221,8 +221,9 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
221
221
|
await queryAndParse('plans_module', `SELECT * FROM metaschema_modules_public.plans_module WHERE database_id = $1 ORDER BY id`);
|
|
222
222
|
await queryAndParse('realtime_module', `SELECT * FROM metaschema_modules_public.realtime_module WHERE database_id = $1 ORDER BY id`);
|
|
223
223
|
await queryAndParse('session_secrets_module', `SELECT * FROM metaschema_modules_public.session_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
224
|
-
await queryAndParse('
|
|
225
|
-
await queryAndParse('
|
|
224
|
+
await queryAndParse('infra_secrets_module', `SELECT * FROM metaschema_modules_public.infra_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
225
|
+
await queryAndParse('infra_config_module', `SELECT * FROM metaschema_modules_public.infra_config_module WHERE database_id = $1 ORDER BY id`);
|
|
226
|
+
await queryAndParse('internal_secrets_module', `SELECT * FROM metaschema_modules_public.internal_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
226
227
|
await queryAndParse('i18n_module', `SELECT * FROM metaschema_modules_public.i18n_module WHERE database_id = $1 ORDER BY id`);
|
|
227
228
|
await queryAndParse('agent_module', `SELECT * FROM metaschema_modules_public.agent_module WHERE database_id = $1 ORDER BY id`);
|
|
228
229
|
await queryAndParse('function_module', `SELECT * FROM metaschema_modules_public.function_module WHERE database_id = $1 ORDER BY id`);
|
package/esm/export-utils.js
CHANGED
|
@@ -162,8 +162,9 @@ export const META_TABLE_ORDER = [
|
|
|
162
162
|
'plans_module',
|
|
163
163
|
'realtime_module',
|
|
164
164
|
'session_secrets_module',
|
|
165
|
-
'
|
|
166
|
-
'
|
|
165
|
+
'infra_secrets_module',
|
|
166
|
+
'infra_config_module',
|
|
167
|
+
'internal_secrets_module',
|
|
167
168
|
'i18n_module',
|
|
168
169
|
'agent_module',
|
|
169
170
|
'function_module',
|
|
@@ -521,13 +522,17 @@ export const META_TABLE_CONFIG = {
|
|
|
521
522
|
schema: 'metaschema_modules_public',
|
|
522
523
|
table: 'session_secrets_module'
|
|
523
524
|
},
|
|
524
|
-
|
|
525
|
+
infra_secrets_module: {
|
|
525
526
|
schema: 'metaschema_modules_public',
|
|
526
|
-
table: '
|
|
527
|
+
table: 'infra_secrets_module'
|
|
527
528
|
},
|
|
528
|
-
|
|
529
|
+
infra_config_module: {
|
|
529
530
|
schema: 'metaschema_modules_public',
|
|
530
|
-
table: '
|
|
531
|
+
table: 'infra_config_module'
|
|
532
|
+
},
|
|
533
|
+
internal_secrets_module: {
|
|
534
|
+
schema: 'metaschema_modules_public',
|
|
535
|
+
table: 'internal_secrets_module'
|
|
531
536
|
},
|
|
532
537
|
i18n_module: {
|
|
533
538
|
schema: 'metaschema_modules_public',
|
package/export-graphql-meta.js
CHANGED
|
@@ -272,14 +272,18 @@ const exportGraphQLMeta = async ({ client, database_id }) => {
|
|
|
272
272
|
queryAndParse('plans_module'),
|
|
273
273
|
queryAndParse('realtime_module'),
|
|
274
274
|
queryAndParse('session_secrets_module'),
|
|
275
|
-
queryAndParse('
|
|
276
|
-
queryAndParse('
|
|
275
|
+
queryAndParse('infra_secrets_module'),
|
|
276
|
+
queryAndParse('infra_config_module'),
|
|
277
|
+
queryAndParse('internal_secrets_module'),
|
|
277
278
|
queryAndParse('i18n_module'),
|
|
278
279
|
queryAndParse('agent_module'),
|
|
279
280
|
queryAndParse('function_module'),
|
|
280
281
|
queryAndParse('namespace_module'),
|
|
281
282
|
queryAndParse('merkle_store_module'),
|
|
282
283
|
queryAndParse('graph_module'),
|
|
284
|
+
queryAndParse('graph_execution_module'),
|
|
285
|
+
queryAndParse('function_deployment_module'),
|
|
286
|
+
queryAndParse('function_invocation_module'),
|
|
283
287
|
queryAndParse('compute_log_module'),
|
|
284
288
|
queryAndParse('db_usage_module'),
|
|
285
289
|
queryAndParse('storage_log_module'),
|
package/export-meta.js
CHANGED
|
@@ -224,8 +224,9 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
224
224
|
await queryAndParse('plans_module', `SELECT * FROM metaschema_modules_public.plans_module WHERE database_id = $1 ORDER BY id`);
|
|
225
225
|
await queryAndParse('realtime_module', `SELECT * FROM metaschema_modules_public.realtime_module WHERE database_id = $1 ORDER BY id`);
|
|
226
226
|
await queryAndParse('session_secrets_module', `SELECT * FROM metaschema_modules_public.session_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
227
|
-
await queryAndParse('
|
|
228
|
-
await queryAndParse('
|
|
227
|
+
await queryAndParse('infra_secrets_module', `SELECT * FROM metaschema_modules_public.infra_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
228
|
+
await queryAndParse('infra_config_module', `SELECT * FROM metaschema_modules_public.infra_config_module WHERE database_id = $1 ORDER BY id`);
|
|
229
|
+
await queryAndParse('internal_secrets_module', `SELECT * FROM metaschema_modules_public.internal_secrets_module WHERE database_id = $1 ORDER BY id`);
|
|
229
230
|
await queryAndParse('i18n_module', `SELECT * FROM metaschema_modules_public.i18n_module WHERE database_id = $1 ORDER BY id`);
|
|
230
231
|
await queryAndParse('agent_module', `SELECT * FROM metaschema_modules_public.agent_module WHERE database_id = $1 ORDER BY id`);
|
|
231
232
|
await queryAndParse('function_module', `SELECT * FROM metaschema_modules_public.function_module WHERE database_id = $1 ORDER BY id`);
|
package/export-utils.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const META_COMMON_FOOTER = "\nSET session_replication_role TO DEF
|
|
|
29
29
|
* Ordered list of meta tables for export.
|
|
30
30
|
* Tables are processed in this order to satisfy foreign key dependencies.
|
|
31
31
|
*/
|
|
32
|
-
export declare const META_TABLE_ORDER: readonly ["database", "schema", "function", "table", "field", "spatial_relation", "policy", "index", "trigger", "trigger_function", "rls_function", "foreign_key_constraint", "primary_key_constraint", "unique_constraint", "check_constraint", "full_text_search", "schema_grant", "table_grant", "default_privilege", "domains", "sites", "apis", "apps", "site_modules", "site_themes", "site_metadata", "api_modules", "api_extensions", "api_schemas", "database_settings", "api_settings", "rls_settings", "cors_settings", "pubkey_settings", "webauthn_settings", "rls_module", "user_auth_module", "memberships_module", "permissions_module", "limits_module", "levels_module", "events_module", "users_module", "hierarchy_module", "membership_types_module", "invites_module", "emails_module", "sessions_module", "user_state_module", "profiles_module", "config_secrets_user_module", "user_credentials_module", "user_settings_module", "connected_accounts_module", "phone_numbers_module", "crypto_addresses_module", "crypto_auth_module", "field_module", "table_module", "secure_table_provision", "uuid_module", "default_ids_module", "denormalized_table_field", "relation_provision", "entity_type_provision", "rate_limits_module", "storage_module", "billing_module", "billing_provider_module", "devices_module", "identity_providers_module", "notifications_module", "plans_module", "realtime_module", "session_secrets_module", "
|
|
32
|
+
export declare const META_TABLE_ORDER: readonly ["database", "schema", "function", "table", "field", "spatial_relation", "policy", "index", "trigger", "trigger_function", "rls_function", "foreign_key_constraint", "primary_key_constraint", "unique_constraint", "check_constraint", "full_text_search", "schema_grant", "table_grant", "default_privilege", "domains", "sites", "apis", "apps", "site_modules", "site_themes", "site_metadata", "api_modules", "api_extensions", "api_schemas", "database_settings", "api_settings", "rls_settings", "cors_settings", "pubkey_settings", "webauthn_settings", "rls_module", "user_auth_module", "memberships_module", "permissions_module", "limits_module", "levels_module", "events_module", "users_module", "hierarchy_module", "membership_types_module", "invites_module", "emails_module", "sessions_module", "user_state_module", "profiles_module", "config_secrets_user_module", "user_credentials_module", "user_settings_module", "connected_accounts_module", "phone_numbers_module", "crypto_addresses_module", "crypto_auth_module", "field_module", "table_module", "secure_table_provision", "uuid_module", "default_ids_module", "denormalized_table_field", "relation_provision", "entity_type_provision", "rate_limits_module", "storage_module", "billing_module", "billing_provider_module", "devices_module", "identity_providers_module", "notifications_module", "plans_module", "realtime_module", "session_secrets_module", "infra_secrets_module", "infra_config_module", "internal_secrets_module", "i18n_module", "agent_module", "function_module", "namespace_module", "merkle_store_module", "graph_module", "graph_execution_module", "function_deployment_module", "function_invocation_module", "compute_log_module", "db_usage_module", "storage_log_module", "transfer_log_module", "webauthn_auth_module", "webauthn_credentials_module", "inference_log_module", "rate_limit_meters_module"];
|
|
33
33
|
export type FieldType = 'uuid' | 'uuid[]' | 'text' | 'text[]' | 'boolean' | 'image' | 'upload' | 'url' | 'jsonb' | 'jsonb[]' | 'int' | 'interval' | 'timestamptz';
|
|
34
34
|
export interface TableConfig {
|
|
35
35
|
schema: string;
|
package/export-utils.js
CHANGED
|
@@ -169,8 +169,9 @@ exports.META_TABLE_ORDER = [
|
|
|
169
169
|
'plans_module',
|
|
170
170
|
'realtime_module',
|
|
171
171
|
'session_secrets_module',
|
|
172
|
-
'
|
|
173
|
-
'
|
|
172
|
+
'infra_secrets_module',
|
|
173
|
+
'infra_config_module',
|
|
174
|
+
'internal_secrets_module',
|
|
174
175
|
'i18n_module',
|
|
175
176
|
'agent_module',
|
|
176
177
|
'function_module',
|
|
@@ -528,13 +529,17 @@ exports.META_TABLE_CONFIG = {
|
|
|
528
529
|
schema: 'metaschema_modules_public',
|
|
529
530
|
table: 'session_secrets_module'
|
|
530
531
|
},
|
|
531
|
-
|
|
532
|
+
infra_secrets_module: {
|
|
532
533
|
schema: 'metaschema_modules_public',
|
|
533
|
-
table: '
|
|
534
|
+
table: 'infra_secrets_module'
|
|
534
535
|
},
|
|
535
|
-
|
|
536
|
+
infra_config_module: {
|
|
536
537
|
schema: 'metaschema_modules_public',
|
|
537
|
-
table: '
|
|
538
|
+
table: 'infra_config_module'
|
|
539
|
+
},
|
|
540
|
+
internal_secrets_module: {
|
|
541
|
+
schema: 'metaschema_modules_public',
|
|
542
|
+
table: 'internal_secrets_module'
|
|
538
543
|
},
|
|
539
544
|
i18n_module: {
|
|
540
545
|
schema: 'metaschema_modules_public',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/export",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM export tools for SQL and GraphQL database migration extraction",
|
|
6
6
|
"main": "index.js",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"pg-cache": "^3.13.1",
|
|
56
56
|
"pg-env": "^1.17.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "a3d87386ce674252d56859eb05368e863efc9524"
|
|
59
59
|
}
|