@pgpmjs/export 0.21.6 → 0.22.0

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.
@@ -229,6 +229,9 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
229
229
  await queryAndParse('namespace_module', `SELECT * FROM metaschema_modules_public.namespace_module WHERE database_id = $1 ORDER BY id`);
230
230
  await queryAndParse('merkle_store_module', `SELECT * FROM metaschema_modules_public.merkle_store_module WHERE database_id = $1 ORDER BY id`);
231
231
  await queryAndParse('graph_module', `SELECT * FROM metaschema_modules_public.graph_module WHERE database_id = $1 ORDER BY id`);
232
+ await queryAndParse('graph_execution_module', `SELECT * FROM metaschema_modules_public.graph_execution_module WHERE database_id = $1 ORDER BY id`);
233
+ await queryAndParse('function_deployment_module', `SELECT * FROM metaschema_modules_public.function_deployment_module WHERE database_id = $1 ORDER BY id`);
234
+ await queryAndParse('function_invocation_module', `SELECT * FROM metaschema_modules_public.function_invocation_module WHERE database_id = $1 ORDER BY id`);
232
235
  await queryAndParse('compute_log_module', `SELECT * FROM metaschema_modules_public.compute_log_module WHERE database_id = $1 ORDER BY id`);
233
236
  await queryAndParse('db_usage_module', `SELECT * FROM metaschema_modules_public.db_usage_module WHERE database_id = $1 ORDER BY id`);
234
237
  await queryAndParse('storage_log_module', `SELECT * FROM metaschema_modules_public.storage_log_module WHERE database_id = $1 ORDER BY id`);
@@ -170,6 +170,9 @@ export const META_TABLE_ORDER = [
170
170
  'namespace_module',
171
171
  'merkle_store_module',
172
172
  'graph_module',
173
+ 'graph_execution_module',
174
+ 'function_deployment_module',
175
+ 'function_invocation_module',
173
176
  'compute_log_module',
174
177
  'db_usage_module',
175
178
  'storage_log_module',
@@ -551,6 +554,18 @@ export const META_TABLE_CONFIG = {
551
554
  schema: 'metaschema_modules_public',
552
555
  table: 'graph_module'
553
556
  },
557
+ graph_execution_module: {
558
+ schema: 'metaschema_modules_public',
559
+ table: 'graph_execution_module'
560
+ },
561
+ function_deployment_module: {
562
+ schema: 'metaschema_modules_public',
563
+ table: 'function_deployment_module'
564
+ },
565
+ function_invocation_module: {
566
+ schema: 'metaschema_modules_public',
567
+ table: 'function_invocation_module'
568
+ },
554
569
  compute_log_module: {
555
570
  schema: 'metaschema_modules_public',
556
571
  table: 'compute_log_module'
package/export-meta.js CHANGED
@@ -232,6 +232,9 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
232
232
  await queryAndParse('namespace_module', `SELECT * FROM metaschema_modules_public.namespace_module WHERE database_id = $1 ORDER BY id`);
233
233
  await queryAndParse('merkle_store_module', `SELECT * FROM metaschema_modules_public.merkle_store_module WHERE database_id = $1 ORDER BY id`);
234
234
  await queryAndParse('graph_module', `SELECT * FROM metaschema_modules_public.graph_module WHERE database_id = $1 ORDER BY id`);
235
+ await queryAndParse('graph_execution_module', `SELECT * FROM metaschema_modules_public.graph_execution_module WHERE database_id = $1 ORDER BY id`);
236
+ await queryAndParse('function_deployment_module', `SELECT * FROM metaschema_modules_public.function_deployment_module WHERE database_id = $1 ORDER BY id`);
237
+ await queryAndParse('function_invocation_module', `SELECT * FROM metaschema_modules_public.function_invocation_module WHERE database_id = $1 ORDER BY id`);
235
238
  await queryAndParse('compute_log_module', `SELECT * FROM metaschema_modules_public.compute_log_module WHERE database_id = $1 ORDER BY id`);
236
239
  await queryAndParse('db_usage_module', `SELECT * FROM metaschema_modules_public.db_usage_module WHERE database_id = $1 ORDER BY id`);
237
240
  await queryAndParse('storage_log_module', `SELECT * FROM metaschema_modules_public.storage_log_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", "config_secrets_org_module", "config_secrets_module", "i18n_module", "agent_module", "function_module", "namespace_module", "merkle_store_module", "graph_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"];
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", "config_secrets_org_module", "config_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
@@ -177,6 +177,9 @@ exports.META_TABLE_ORDER = [
177
177
  'namespace_module',
178
178
  'merkle_store_module',
179
179
  'graph_module',
180
+ 'graph_execution_module',
181
+ 'function_deployment_module',
182
+ 'function_invocation_module',
180
183
  'compute_log_module',
181
184
  'db_usage_module',
182
185
  'storage_log_module',
@@ -558,6 +561,18 @@ exports.META_TABLE_CONFIG = {
558
561
  schema: 'metaschema_modules_public',
559
562
  table: 'graph_module'
560
563
  },
564
+ graph_execution_module: {
565
+ schema: 'metaschema_modules_public',
566
+ table: 'graph_execution_module'
567
+ },
568
+ function_deployment_module: {
569
+ schema: 'metaschema_modules_public',
570
+ table: 'function_deployment_module'
571
+ },
572
+ function_invocation_module: {
573
+ schema: 'metaschema_modules_public',
574
+ table: 'function_invocation_module'
575
+ },
561
576
  compute_log_module: {
562
577
  schema: 'metaschema_modules_public',
563
578
  table: 'compute_log_module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/export",
3
- "version": "0.21.6",
3
+ "version": "0.22.0",
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",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@pgpmjs/core": "^6.24.0",
48
- "@pgpmjs/migrate-client": "^0.15.7",
48
+ "@pgpmjs/migrate-client": "^0.15.9",
49
49
  "@pgpmjs/types": "^2.29.0",
50
50
  "csv-to-pg": "^3.18.0",
51
51
  "glob": "^13.0.6",
@@ -55,5 +55,5 @@
55
55
  "pg-cache": "^3.12.0",
56
56
  "pg-env": "^1.16.0"
57
57
  },
58
- "gitHead": "16c2ae1c30850db1d71c021346c9d34361361d8e"
58
+ "gitHead": "57edf07742a20d72cda7a3c8a3bb1745afbf3a27"
59
59
  }