Skip to content

Commit 183f1b7

Browse files
authored
Merge branch 'main' into fix/ci-not-detecting-exit-codes
2 parents 5e11c1a + dee7b5e commit 183f1b7

211 files changed

Lines changed: 1479 additions & 3535 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: pnpm install
9696

9797
- name: Install pgpm CLI globally
98-
run: npm install -g pgpm@0.2.15
98+
run: npm install -g pgpm
9999

100100
- name: Build
101101
run: pnpm -r build

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
run: pnpm install
7070

7171
- name: Install pgpm CLI globally
72-
run: npm install -g pgpm@0.2.0
72+
run: npm install -g pgpm
7373

7474
- name: Build
7575
run: pnpm -r build

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pgpm extends the **Sqitch** model to a multi‑package **npm workspace**. Think
2828
```
2929
packages/
3030
utils/
31-
verify/ # launchql-verify helpers live here (as a package)
31+
verify/ # pgpm-verify helpers live here (as a package)
3232
my-module/
3333
pgpm.plan
3434
deploy/
@@ -68,7 +68,7 @@ packages/
6868
* The file path must **mirror** its deploy partner:
6969
`verify/<ns>/<change>.sql``deploy/<ns>/<change>.sql`.
7070
* Must **prove** the intended state: table exists, column types, indexes present, grants applied, invariants hold, etc.
71-
* Use **`launchql-verify`** helpers (lives at `packages/utils/verify`). Examples below.
71+
* Use **`pgpm-verify`** helpers (lives at `packages/utils/verify`). Examples below.
7272

7373
### Revert (must exist for every deploy)
7474

@@ -100,7 +100,7 @@ COMMIT;
100100
`verify/public/create_table_users.sql`
101101

102102
```sql
103-
-- Helpers are provided by the launchql-verify extension.
103+
-- Helpers are provided by the pgpm-verify extension.
104104
-- Assert table and index exist
105105
SELECT verify_table('public.users');
106106
SELECT verify_index('public.users','users_email_idx');
@@ -135,7 +135,7 @@ When a package depends on SQL provided by another package:
135135
* The workspace runner resolves dependencies in topological order across packages, then executes deploy → verify.
136136
* Keep shared primitives (schemas, types, roles, policies) in foundational packages (e.g., `utils/schema-core`) and depend on them.
137137

138-
## Using `launchql-verify` in practice
138+
## Using `pgpm-verify` in practice
139139

140140
**Common helpers** *(names per your package)*:
141141

@@ -150,4 +150,4 @@ When a package depends on SQL provided by another package:
150150
**Conventions**
151151

152152
* A verify script should **fail fast** when an expectation isn’t met (non‑zero result or raised assertion).
153-
* Prefer **positive** checks (exists/equals) vs free‑form `SELECT` with comments.
153+
* Prefer **positive** checks (exists/equals) vs free‑form `SELECT` with comments.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG BASE=node
22
ARG BASE_VERSION=20-bookworm
33
FROM ${BASE}:${BASE_VERSION} AS build
44

5-
LABEL org.opencontainers.image.source="https://github.com/launchql/pgpm-modules"
5+
LABEL org.opencontainers.image.source="https://github.com/constructive-io/pgpm-modules"
66
ARG BASE
77
ARG BASE_VERSION
88
ENV BASE_VERSION=${BASE_VERSION}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22

33
Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
4-
Copyright (c) 2025 Interweb, Inc.
4+
Copyright (c) 2025 Constructive
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

MODULES.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# LaunchQL Extension Modules Verification Checklist
1+
# PGPM Modules Verification Checklist
22

33
## What This Checklist Means
44

55
**When a module is checked, it means:**
66

77
1. **Complete File Structure**: Every file in `deploy/**/*.sql` has a corresponding file in both `revert/**/*.sql` and `verify/**/*.sql`
88
2. **Functional Verification**: All deploy, revert, and verify operations work properly
9-
3. **Proper Verification Utilities**: The verify scripts use the `launchql-verify` package's utilities from `packages/utils/verify`
10-
4. **Dependency Requirements**: If verification utilities are used, `launchql-verify` is properly declared as a dependency in the project's control file
9+
3. **Proper Verification Utilities**: The verify scripts use the `pgpm-verify` package's utilities from `packages/utils/verify`
10+
4. **Dependency Requirements**: If verification utilities are used, `pgpm-verify` is properly declared as a dependency in the project's control file
1111

1212
## Verification Requirements
1313

1414
- **Deploy**: Contains the actual SQL changes/additions
1515
- **Revert**: Contains SQL to undo the deploy changes
16-
- **Verify**: Contains SQL to verify the changes were applied correctly (should use `launchql-verify` utilities)
17-
- **Control File**: Must include `launchql-verify` as a dependency if verification utilities are used
16+
- **Verify**: Contains SQL to verify the changes were applied correctly (should use `pgpm-verify` utilities)
17+
- **Control File**: Must include `pgpm-verify` as a dependency if verification utilities are used
1818

1919
---
2020

@@ -64,4 +64,3 @@
6464
### Performance & Tracking
6565
- [ ] `packages/metrics/measurements` - Measurement utilities
6666
- [ ] `packages/metrics/achievements` - Achievement system
67-

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# pgpm modules
22

33
<p align="center" width="100%">
4-
<img height="250" src="https://raw.githubusercontent.com/launchql/launchql/refs/heads/main/assets/outline-logo.svg" />
4+
<img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
55
</p>
66

77
<p align="center" width="100%">
8-
<a href="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml">
9-
<img height="20" src="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
8+
<a href="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml">
9+
<img height="20" src="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
1010
</a>
11-
<a href="https://github.com/launchql/pgpm-modules/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
11+
<a href="https://github.com/constructive-io/pgpm-modules/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
1212
</p>
1313

1414
PostgreSQL modules using the `pgpm` workflow for safe, testable, reversible SQL changes.
@@ -54,7 +54,7 @@ eval "$(pgpm env)"
5454

5555
```bash
5656
# 1. Create a workspace
57-
pgpm init --workspace
57+
pgpm init workspace
5858

5959
# 2. Create your first module
6060
cd my-workspace
@@ -160,7 +160,7 @@ This section is for **contributing to** or **developing** the modules in this re
160160

161161
```bash
162162
# Clone the repository
163-
git clone https://github.com/launchql/pgpm-modules.git
163+
git clone https://github.com/constructive-io/pgpm-modules.git
164164
cd pgpm-modules
165165

166166
# Install dependencies
@@ -189,13 +189,13 @@ pnpm lerna publish
189189

190190
## Related Tooling
191191

192-
* [pgpm](https://github.com/launchql/launchql/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
193-
* [pgsql-test](https://github.com/launchql/launchql/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
194-
* [supabase-test](https://github.com/launchql/launchql/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
195-
* [graphile-test](https://github.com/launchql/launchql/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
196-
* [pgsql-parser](https://github.com/launchql/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
197-
* [libpg-query-node](https://github.com/launchql/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
198-
* [pg-proto-parser](https://github.com/launchql/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
192+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
193+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
194+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
195+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
196+
* [pgsql-parser](https://github.com/constructive-io/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
197+
* [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
198+
* [pg-proto-parser](https://github.com/constructive-io/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
199199

200200
## Disclaimer
201201

development.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ eval "$(pgpm env)"
1919

2020
```bash
2121
# 1. Create a workspace
22-
pgpm init --workspace
22+
pgpm init workspace
2323

2424
# 2. Create your first module
2525
cd my-workspace
@@ -65,13 +65,13 @@ pnpm test:watch
6565

6666
## Related Tooling
6767

68-
* [pgpm](https://github.com/launchql/launchql/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
69-
* [pgsql-test](https://github.com/launchql/launchql/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
70-
* [supabase-test](https://github.com/launchql/launchql/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
71-
* [graphile-test](https://github.com/launchql/launchql/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
72-
* [pgsql-parser](https://github.com/launchql/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
73-
* [libpg-query-node](https://github.com/launchql/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
74-
* [pg-proto-parser](https://github.com/launchql/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
68+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
69+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
70+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
71+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
72+
* [pgsql-parser](https://github.com/constructive-io/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
73+
* [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
74+
* [pg-proto-parser](https://github.com/constructive-io/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
7575

7676
## Disclaimer
7777

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "0.13.0",
3+
"version": "0.15.1",
44
"npmClient": "pnpm"
55
}

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "pgpm-extensions",
2+
"name": "pgpm-modules",
33
"version": "0.0.1",
4-
"author": "pgpm <hello@interweb.co>",
4+
"author": "Constructive <developers@constructive.io>",
55
"private": true,
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/pgpm/extensions"
8+
"url": "https://github.com/constructive-io/pgpm-modules"
99
},
1010
"license": "MIT",
1111
"engines": {
@@ -20,7 +20,8 @@
2020
"scripts": {
2121
"bundle": "pnpm -r bundle",
2222
"lint": "pnpm -r lint",
23-
"test": "pnpm -r test"
23+
"test": "pnpm -r test",
24+
"deps": "pnpm up -r -i -L"
2425
},
2526
"devDependencies": {
2627
"@types/jest": "^29.5.11",
@@ -33,12 +34,12 @@
3334
"eslint-config-prettier": "^9.1.0",
3435
"eslint-plugin-simple-import-sort": "^12.1.0",
3536
"eslint-plugin-unused-imports": "^4.3.0",
36-
"graphile-test": "^2.7.0",
37+
"graphile-test": "2.11.3",
3738
"graphql-tag": "^2.12.6",
3839
"jest": "^29.6.2",
3940
"jest-in-case": "^1.0.2",
4041
"lerna": "^8.2.3",
41-
"pgsql-test": "^2.14.0",
42+
"pgsql-test": "^2.16.2",
4243
"prettier": "^3.0.2",
4344
"rimraf": "4.4.1",
4445
"ts-jest": "^29.4.5",

0 commit comments

Comments
 (0)