pgpm 5.30.4 → 5.30.6
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/commands/docker.js +3 -21
- package/commands/env.js +6 -12
- package/esm/commands/docker.js +3 -21
- package/esm/commands/env.js +6 -12
- package/esm/utils/display.js +2 -2
- package/package.json +11 -11
- package/utils/display.d.ts +1 -1
- package/utils/display.js +2 -2
package/commands/docker.js
CHANGED
|
@@ -25,7 +25,6 @@ PostgreSQL Options:
|
|
|
25
25
|
--shm-size <size> Shared memory size for container (default: 2g)
|
|
26
26
|
|
|
27
27
|
Additional Services:
|
|
28
|
-
--minio Include MinIO S3-compatible object storage (API: 9000, Console: 9001)
|
|
29
28
|
--rustfs Include RustFS S3-compatible object storage (API: 9000, Console: 9001)
|
|
30
29
|
--ollama Include Ollama LLM inference server (API: 11434)
|
|
31
30
|
--gpu Enable NVIDIA GPU passthrough for Ollama (requires NVIDIA Container Toolkit)
|
|
@@ -36,45 +35,28 @@ General Options:
|
|
|
36
35
|
|
|
37
36
|
Examples:
|
|
38
37
|
pgpm docker start Start PostgreSQL only
|
|
39
|
-
pgpm docker start --minio Start PostgreSQL + MinIO
|
|
40
38
|
pgpm docker start --rustfs Start PostgreSQL + RustFS
|
|
41
39
|
pgpm docker start --ollama Start PostgreSQL + Ollama (CPU)
|
|
42
40
|
pgpm docker start --ollama --gpu Start PostgreSQL + Ollama (NVIDIA GPU)
|
|
43
41
|
pgpm docker start --port 5433 Start on custom port
|
|
44
42
|
pgpm docker start --shm-size 4g Start with 4GB shared memory
|
|
45
43
|
pgpm docker start --recreate Remove and recreate containers
|
|
46
|
-
pgpm docker start --recreate --minio Recreate PostgreSQL + MinIO
|
|
47
44
|
pgpm docker stop Stop PostgreSQL
|
|
48
|
-
pgpm docker stop --minio Stop PostgreSQL + MinIO
|
|
49
45
|
pgpm docker stop --rustfs Stop PostgreSQL + RustFS
|
|
50
46
|
pgpm docker stop --ollama Stop PostgreSQL + Ollama
|
|
51
47
|
pgpm docker ls List services and status
|
|
52
48
|
`;
|
|
53
49
|
const ADDITIONAL_SERVICES = {
|
|
54
|
-
minio: {
|
|
55
|
-
name: 'minio',
|
|
56
|
-
image: 'minio/minio',
|
|
57
|
-
ports: [
|
|
58
|
-
{ host: 9000, container: 9000 },
|
|
59
|
-
{ host: 9001, container: 9001 }
|
|
60
|
-
],
|
|
61
|
-
env: {
|
|
62
|
-
MINIO_ROOT_USER: 'minioadmin',
|
|
63
|
-
MINIO_ROOT_PASSWORD: 'minioadmin'
|
|
64
|
-
},
|
|
65
|
-
command: ['server', '/data', '--console-address', ':9001'],
|
|
66
|
-
volumes: [{ name: 'minio-data', containerPath: '/data' }]
|
|
67
|
-
},
|
|
68
50
|
rustfs: {
|
|
69
51
|
name: 'rustfs',
|
|
70
|
-
image: 'rustfs/rustfs',
|
|
52
|
+
image: 'rustfs/rustfs:1.0.0-rc.5',
|
|
71
53
|
ports: [
|
|
72
54
|
{ host: 9000, container: 9000 },
|
|
73
55
|
{ host: 9001, container: 9001 }
|
|
74
56
|
],
|
|
75
57
|
env: {
|
|
76
|
-
RUSTFS_ACCESS_KEY: '
|
|
77
|
-
RUSTFS_SECRET_KEY: '
|
|
58
|
+
RUSTFS_ACCESS_KEY: 'constructive',
|
|
59
|
+
RUSTFS_SECRET_KEY: 'constructive-dev-secret',
|
|
78
60
|
RUSTFS_ADDRESS: ':9000',
|
|
79
61
|
RUSTFS_CONSOLE_ADDRESS: ':9001',
|
|
80
62
|
RUSTFS_CONSOLE_ENABLE: 'true'
|
package/commands/env.js
CHANGED
|
@@ -14,8 +14,7 @@ Database Profiles:
|
|
|
14
14
|
--supabase Use Supabase local development profile
|
|
15
15
|
|
|
16
16
|
Additional Services:
|
|
17
|
-
--
|
|
18
|
-
--rustfs Include RustFS/S3 environment variables (same vars as --minio)
|
|
17
|
+
--rustfs Include RustFS/S3 environment variables
|
|
19
18
|
|
|
20
19
|
Modes:
|
|
21
20
|
No command Print export statements for shell evaluation
|
|
@@ -24,20 +23,15 @@ Modes:
|
|
|
24
23
|
Options:
|
|
25
24
|
--help, -h Show this help message
|
|
26
25
|
--supabase Use Supabase profile instead of default Postgres
|
|
27
|
-
--
|
|
28
|
-
--rustfs Alias for --minio (RustFS serves the same S3 API on :9000)
|
|
26
|
+
--rustfs Include CDN_ENDPOINT, AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION
|
|
29
27
|
|
|
30
28
|
Examples:
|
|
31
29
|
pgpm env Print default Postgres env exports
|
|
32
30
|
pgpm env --supabase Print Supabase env exports
|
|
33
|
-
pgpm env --minio Print Postgres + MinIO env exports
|
|
34
31
|
pgpm env --rustfs Print Postgres + RustFS env exports
|
|
35
|
-
pgpm env --supabase --minio Print Supabase + MinIO env exports
|
|
36
32
|
eval "$(pgpm env)" Load default Postgres env into shell
|
|
37
|
-
eval "$(pgpm env --
|
|
38
|
-
|
|
39
|
-
pgpm env pgpm deploy --database db1 Run command with default Postgres env
|
|
40
|
-
pgpm env --minio pgpm deploy --database db1 Run command with Postgres + MinIO env
|
|
33
|
+
eval "$(pgpm env --rustfs)" Load Postgres + RustFS env into shell
|
|
34
|
+
pgpm env --rustfs pgpm deploy --database db1 Run command with Postgres + RustFS env
|
|
41
35
|
`;
|
|
42
36
|
const SUPABASE_PROFILE = {
|
|
43
37
|
host: 'localhost',
|
|
@@ -51,8 +45,8 @@ const DEFAULT_PROFILE = {
|
|
|
51
45
|
};
|
|
52
46
|
const OBJECT_STORE_PROFILE = {
|
|
53
47
|
endpoint: 'http://localhost:9000',
|
|
54
|
-
accessKey: '
|
|
55
|
-
secretKey: '
|
|
48
|
+
accessKey: 'constructive',
|
|
49
|
+
secretKey: 'constructive-dev-secret',
|
|
56
50
|
region: 'us-east-1',
|
|
57
51
|
};
|
|
58
52
|
function configToEnvVars(config, objectStore) {
|
package/esm/commands/docker.js
CHANGED
|
@@ -23,7 +23,6 @@ PostgreSQL Options:
|
|
|
23
23
|
--shm-size <size> Shared memory size for container (default: 2g)
|
|
24
24
|
|
|
25
25
|
Additional Services:
|
|
26
|
-
--minio Include MinIO S3-compatible object storage (API: 9000, Console: 9001)
|
|
27
26
|
--rustfs Include RustFS S3-compatible object storage (API: 9000, Console: 9001)
|
|
28
27
|
--ollama Include Ollama LLM inference server (API: 11434)
|
|
29
28
|
--gpu Enable NVIDIA GPU passthrough for Ollama (requires NVIDIA Container Toolkit)
|
|
@@ -34,45 +33,28 @@ General Options:
|
|
|
34
33
|
|
|
35
34
|
Examples:
|
|
36
35
|
pgpm docker start Start PostgreSQL only
|
|
37
|
-
pgpm docker start --minio Start PostgreSQL + MinIO
|
|
38
36
|
pgpm docker start --rustfs Start PostgreSQL + RustFS
|
|
39
37
|
pgpm docker start --ollama Start PostgreSQL + Ollama (CPU)
|
|
40
38
|
pgpm docker start --ollama --gpu Start PostgreSQL + Ollama (NVIDIA GPU)
|
|
41
39
|
pgpm docker start --port 5433 Start on custom port
|
|
42
40
|
pgpm docker start --shm-size 4g Start with 4GB shared memory
|
|
43
41
|
pgpm docker start --recreate Remove and recreate containers
|
|
44
|
-
pgpm docker start --recreate --minio Recreate PostgreSQL + MinIO
|
|
45
42
|
pgpm docker stop Stop PostgreSQL
|
|
46
|
-
pgpm docker stop --minio Stop PostgreSQL + MinIO
|
|
47
43
|
pgpm docker stop --rustfs Stop PostgreSQL + RustFS
|
|
48
44
|
pgpm docker stop --ollama Stop PostgreSQL + Ollama
|
|
49
45
|
pgpm docker ls List services and status
|
|
50
46
|
`;
|
|
51
47
|
const ADDITIONAL_SERVICES = {
|
|
52
|
-
minio: {
|
|
53
|
-
name: 'minio',
|
|
54
|
-
image: 'minio/minio',
|
|
55
|
-
ports: [
|
|
56
|
-
{ host: 9000, container: 9000 },
|
|
57
|
-
{ host: 9001, container: 9001 }
|
|
58
|
-
],
|
|
59
|
-
env: {
|
|
60
|
-
MINIO_ROOT_USER: 'minioadmin',
|
|
61
|
-
MINIO_ROOT_PASSWORD: 'minioadmin'
|
|
62
|
-
},
|
|
63
|
-
command: ['server', '/data', '--console-address', ':9001'],
|
|
64
|
-
volumes: [{ name: 'minio-data', containerPath: '/data' }]
|
|
65
|
-
},
|
|
66
48
|
rustfs: {
|
|
67
49
|
name: 'rustfs',
|
|
68
|
-
image: 'rustfs/rustfs',
|
|
50
|
+
image: 'rustfs/rustfs:1.0.0-rc.5',
|
|
69
51
|
ports: [
|
|
70
52
|
{ host: 9000, container: 9000 },
|
|
71
53
|
{ host: 9001, container: 9001 }
|
|
72
54
|
],
|
|
73
55
|
env: {
|
|
74
|
-
RUSTFS_ACCESS_KEY: '
|
|
75
|
-
RUSTFS_SECRET_KEY: '
|
|
56
|
+
RUSTFS_ACCESS_KEY: 'constructive',
|
|
57
|
+
RUSTFS_SECRET_KEY: 'constructive-dev-secret',
|
|
76
58
|
RUSTFS_ADDRESS: ':9000',
|
|
77
59
|
RUSTFS_CONSOLE_ADDRESS: ':9001',
|
|
78
60
|
RUSTFS_CONSOLE_ENABLE: 'true'
|
package/esm/commands/env.js
CHANGED
|
@@ -12,8 +12,7 @@ Database Profiles:
|
|
|
12
12
|
--supabase Use Supabase local development profile
|
|
13
13
|
|
|
14
14
|
Additional Services:
|
|
15
|
-
--
|
|
16
|
-
--rustfs Include RustFS/S3 environment variables (same vars as --minio)
|
|
15
|
+
--rustfs Include RustFS/S3 environment variables
|
|
17
16
|
|
|
18
17
|
Modes:
|
|
19
18
|
No command Print export statements for shell evaluation
|
|
@@ -22,20 +21,15 @@ Modes:
|
|
|
22
21
|
Options:
|
|
23
22
|
--help, -h Show this help message
|
|
24
23
|
--supabase Use Supabase profile instead of default Postgres
|
|
25
|
-
--
|
|
26
|
-
--rustfs Alias for --minio (RustFS serves the same S3 API on :9000)
|
|
24
|
+
--rustfs Include CDN_ENDPOINT, AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION
|
|
27
25
|
|
|
28
26
|
Examples:
|
|
29
27
|
pgpm env Print default Postgres env exports
|
|
30
28
|
pgpm env --supabase Print Supabase env exports
|
|
31
|
-
pgpm env --minio Print Postgres + MinIO env exports
|
|
32
29
|
pgpm env --rustfs Print Postgres + RustFS env exports
|
|
33
|
-
pgpm env --supabase --minio Print Supabase + MinIO env exports
|
|
34
30
|
eval "$(pgpm env)" Load default Postgres env into shell
|
|
35
|
-
eval "$(pgpm env --
|
|
36
|
-
|
|
37
|
-
pgpm env pgpm deploy --database db1 Run command with default Postgres env
|
|
38
|
-
pgpm env --minio pgpm deploy --database db1 Run command with Postgres + MinIO env
|
|
31
|
+
eval "$(pgpm env --rustfs)" Load Postgres + RustFS env into shell
|
|
32
|
+
pgpm env --rustfs pgpm deploy --database db1 Run command with Postgres + RustFS env
|
|
39
33
|
`;
|
|
40
34
|
const SUPABASE_PROFILE = {
|
|
41
35
|
host: 'localhost',
|
|
@@ -49,8 +43,8 @@ const DEFAULT_PROFILE = {
|
|
|
49
43
|
};
|
|
50
44
|
const OBJECT_STORE_PROFILE = {
|
|
51
45
|
endpoint: 'http://localhost:9000',
|
|
52
|
-
accessKey: '
|
|
53
|
-
secretKey: '
|
|
46
|
+
accessKey: 'constructive',
|
|
47
|
+
secretKey: 'constructive-dev-secret',
|
|
54
48
|
region: 'us-east-1',
|
|
55
49
|
};
|
|
56
50
|
function configToEnvVars(config, objectStore) {
|
package/esm/utils/display.js
CHANGED
|
@@ -46,9 +46,9 @@ export const usageText = `
|
|
|
46
46
|
deps Show change dependencies
|
|
47
47
|
|
|
48
48
|
Development Tools:
|
|
49
|
-
docker Manage Docker containers (start/stop/ls, --
|
|
49
|
+
docker Manage Docker containers (start/stop/ls, --rustfs)
|
|
50
50
|
doctor Check local dependencies (node, docker, psql) with install guidance
|
|
51
|
-
env Manage environment variables (--supabase, --
|
|
51
|
+
env Manage environment variables (--supabase, --rustfs)
|
|
52
52
|
test-packages Run integration tests on workspace packages
|
|
53
53
|
|
|
54
54
|
Global Options:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.6",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@inquirerer/utils": "^3.3.13",
|
|
50
|
-
"@pgpmjs/core": "^7.27.
|
|
51
|
-
"@pgpmjs/diff": "^0.5.
|
|
52
|
-
"@pgpmjs/env": "^2.43.
|
|
53
|
-
"@pgpmjs/export": "^1.20.
|
|
54
|
-
"@pgpmjs/import": "^0.5.
|
|
50
|
+
"@pgpmjs/core": "^7.27.7",
|
|
51
|
+
"@pgpmjs/diff": "^0.5.6",
|
|
52
|
+
"@pgpmjs/env": "^2.43.6",
|
|
53
|
+
"@pgpmjs/export": "^1.20.13",
|
|
54
|
+
"@pgpmjs/import": "^0.5.6",
|
|
55
55
|
"@pgpmjs/logger": "^2.25.1",
|
|
56
|
-
"@pgpmjs/slice": "^0.16.
|
|
57
|
-
"@pgpmjs/transform": "^0.25.
|
|
58
|
-
"@pgpmjs/types": "^2.53.
|
|
56
|
+
"@pgpmjs/slice": "^0.16.6",
|
|
57
|
+
"@pgpmjs/transform": "^0.25.6",
|
|
58
|
+
"@pgpmjs/types": "^2.53.4",
|
|
59
59
|
"@pgsql/quotes": "^18.2.4",
|
|
60
60
|
"appstash": "^0.8.0",
|
|
61
61
|
"cross-spawn": "^7.0.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"genomic": "^5.6.6",
|
|
64
64
|
"inquirerer": "^4.9.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
|
-
"pg-cache": "^3.27.
|
|
66
|
+
"pg-cache": "^3.27.6",
|
|
67
67
|
"pg-env": "^1.31.1",
|
|
68
68
|
"pgsql-deparser": "^18.3.6",
|
|
69
69
|
"semver": "^7.8.5",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"pg",
|
|
83
83
|
"pgsql"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "9bba983b38395277e0400294aaa380e586b049d4"
|
|
86
86
|
}
|
package/utils/display.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const usageText = "\n Usage: pgpm <command> [options]\n\n Core Database Operations:\n add Add database changes to plans and create SQL files\n deploy Deploy database changes and migrations\n verify Verify database state and migrations\n revert Revert database changes and migrations\n\n Project Management:\n init Initialize workspace or module\n extension Manage module dependencies\n plan Generate module deployment plans\n regen Generate revert/verify scripts from deploy scripts\n transform Re-dial a module through the dials pipeline (granularity/naming/partition)\n import pgpm-itize an arbitrary SQL dump into a deployable module\n diff Identity-keyed semantic diff between two schema sources (+ migration generation)\n package Package module for distribution\n materialize Transpile an apply proxy into a plain, committed module\n sync-versions Sync .control/Makefile/sql metadata to package.json versions\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n upgrade Upgrade installed pgpm modules to latest versions (alias: up)\n\n Database Administration:\n dump Dump a database to a sql file\n kill Terminate database connections and optionally drop databases\n install Install database modules\n tag Add tags to changes for versioning\n clear Clear database state\n remove Remove database changes\n analyze Analyze database structure\n rename Rename database changes\n admin-users Manage admin users\n tune Tune PostgreSQL for throwaway environments (CI/test)\n\n Testing:\n test-packages Run integration tests on all workspace packages\n\n Migration Tools:\n migrate Migration management subcommands\n init Initialize migration tracking\n status Show migration status\n list List all changes\n deps Show change dependencies\n \n Development Tools:\n docker Manage Docker containers (start/stop/ls, --
|
|
1
|
+
export declare const usageText = "\n Usage: pgpm <command> [options]\n\n Core Database Operations:\n add Add database changes to plans and create SQL files\n deploy Deploy database changes and migrations\n verify Verify database state and migrations\n revert Revert database changes and migrations\n\n Project Management:\n init Initialize workspace or module\n extension Manage module dependencies\n plan Generate module deployment plans\n regen Generate revert/verify scripts from deploy scripts\n transform Re-dial a module through the dials pipeline (granularity/naming/partition)\n import pgpm-itize an arbitrary SQL dump into a deployable module\n diff Identity-keyed semantic diff between two schema sources (+ migration generation)\n package Package module for distribution\n materialize Transpile an apply proxy into a plain, committed module\n sync-versions Sync .control/Makefile/sql metadata to package.json versions\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n upgrade Upgrade installed pgpm modules to latest versions (alias: up)\n\n Database Administration:\n dump Dump a database to a sql file\n kill Terminate database connections and optionally drop databases\n install Install database modules\n tag Add tags to changes for versioning\n clear Clear database state\n remove Remove database changes\n analyze Analyze database structure\n rename Rename database changes\n admin-users Manage admin users\n tune Tune PostgreSQL for throwaway environments (CI/test)\n\n Testing:\n test-packages Run integration tests on all workspace packages\n\n Migration Tools:\n migrate Migration management subcommands\n init Initialize migration tracking\n status Show migration status\n list List all changes\n deps Show change dependencies\n \n Development Tools:\n docker Manage Docker containers (start/stop/ls, --rustfs)\n doctor Check local dependencies (node, docker, psql) with install guidance\n env Manage environment variables (--supabase, --rustfs)\n test-packages Run integration tests on workspace packages\n \n Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\n --engine <name> Migration backend: pg (default, Postgres server) or\n pglite (in-process WASM Postgres, no server). Also set by\n the \"engine\" key of pgpm.json or PGPM_ENGINE.\n --driver <pkg> Driver plugin package backing the engine (escape hatch)\n --pglite[=dataDir] Sugar for --engine pglite, persisted to <dataDir> if given\n\n Individual Command Help:\n pgpm <command> --help Display detailed help for specific command\n pgpm <command> -h Display detailed help for specific command\n\n Examples:\n pgpm deploy --help Show deploy command options\n pgpm init workspace Initialize new workspace\n pgpm install @pgpm/base32 Install a database module\n ";
|
package/utils/display.js
CHANGED
|
@@ -49,9 +49,9 @@ exports.usageText = `
|
|
|
49
49
|
deps Show change dependencies
|
|
50
50
|
|
|
51
51
|
Development Tools:
|
|
52
|
-
docker Manage Docker containers (start/stop/ls, --
|
|
52
|
+
docker Manage Docker containers (start/stop/ls, --rustfs)
|
|
53
53
|
doctor Check local dependencies (node, docker, psql) with install guidance
|
|
54
|
-
env Manage environment variables (--supabase, --
|
|
54
|
+
env Manage environment variables (--supabase, --rustfs)
|
|
55
55
|
test-packages Run integration tests on workspace packages
|
|
56
56
|
|
|
57
57
|
Global Options:
|