Skip to content

Commit dcfeefd

Browse files
committed
updates
1 parent be6c40b commit dcfeefd

10 files changed

Lines changed: 118 additions & 42 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,21 @@ jobs:
6464
supabase status
6565
exit 1
6666
67-
- name: Enable corepack and pnpm
68-
run: |
69-
corepack enable
70-
corepack prepare pnpm@9 --activate
71-
pnpm -v
72-
node -v
67+
- name: Setup pnpm
68+
uses: pnpm/action-setup@v2
69+
with:
70+
version: 9
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: '20'
76+
cache: 'pnpm'
7377

7478
- name: Install
7579
run: pnpm install
7680

77-
- name: Install LaunchQL CLI globally
81+
- name: Install pgpm CLI globally
7882
run: npm install -g pgpm
7983

8084
- name: Build

LICENSE

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

3-
Copyright (c) 2025 Interweb, Inc. <developers@interweb.co>
3+
Copyright (c) 2025 Constructive <developers@constructive.io>
44

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

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Supabase Test Suite
22

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

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

14-
A friendly playground for building and validating Supabase Row-Level Security (RLS) using LaunchQL. It includes real-world examples, migrations, and a comprehensive test suite you can run locally.
14+
A friendly playground for building and validating Supabase Row-Level Security (RLS). It includes real-world examples, migrations, and a comprehensive test suite you can run locally.
1515

1616
Built with [`supabase-test`](https://www.npmjs.com/package/supabase-test) — a Supabase-optimized version of [`pgsql-test`](https://www.npmjs.com/package/pgsql-test) for instant, isolated Postgres test databases with automatic rollbacks and Supabase defaults.
1717

@@ -41,7 +41,7 @@ pnpm test:watch
4141

4242
## Repository Structure
4343

44-
This is a LaunchQL workspace combining `pnpm` and `pgpm` for modular Postgres packages:
44+
This is a pgpm workspace combining `pnpm` and `pgpm` for modular Postgres packages:
4545

4646
- **`packages/supabase`** - Supabase-focused SQL, tests, and helpers
4747
- **`packages/hello-world`** - Demo extension showcasing RLS with users/products
@@ -85,13 +85,35 @@ Common issues:
8585
- Check that ports match those shown by `npx supabase start`
8686
- Use Node.js 20+ to avoid compatibility issues
8787

88-
## Related LaunchQL Tooling
88+
## Education and Tutorials
8989

90-
* [launchql/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.
91-
* [launchql/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.
90+
1. 🚀 [Quickstart: Getting Up and Running](https://constructive.io/learn/quickstart)
91+
Get started with modular databases in minutes. Install prerequisites and deploy your first module.
92+
93+
2. 📦 [Modular PostgreSQL Development with Database Packages](https://constructive.io/learn/modular-postgres)
94+
Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
95+
96+
3. ✏️ [Authoring Database Changes](https://constructive.io/learn/authoring-database-changes)
97+
Master the workflow for adding, organizing, and managing database changes with pgpm.
98+
99+
4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://constructive.io/learn/e2e-postgres-testing)
100+
Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
101+
102+
5.[Supabase Testing](https://constructive.io/learn/supabase)
103+
Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
104+
105+
6. 💧 [Drizzle ORM Testing](https://constructive.io/learn/drizzle-testing)
106+
Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
107+
108+
7. 🔧 [Troubleshooting](https://constructive.io/learn/troubleshooting)
109+
Common issues and solutions for pgpm, PostgreSQL, and testing.
110+
111+
## Credits
112+
113+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
92114

93115
## Disclaimer
94116

95-
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
117+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED AS IS, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
96118

97119
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "launchql-extensions",
2+
"name": "supabase-test-suite",
33
"version": "0.0.1",
4-
"author": "launchql <hello@launchql.com>",
4+
"author": "Constructive <developers@constructive.io>",
55
"private": true,
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/launchql/extensions"
8+
"url": "https://github.com/constructive-io/supabase-test-suite"
99
},
1010
"license": "MIT",
1111
"engines": {
@@ -14,10 +14,6 @@
1414
"publishConfig": {
1515
"access": "restricted"
1616
},
17-
"packageManager": "pnpm@10.12.2",
18-
"workspaces": [
19-
"packages/*"
20-
],
2117
"scripts": {
2218
"bundle": "pnpm -r bundle",
2319
"lint": "pnpm -r lint",

packages/hello-world/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

packages/hello-world/README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Supabase RLS Demo
22

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

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

1414
Supabase RLS (Row Level Security) demo, showcasing best practices for implementing secure, multi-tenant applications.
@@ -36,8 +36,35 @@ pnpm test
3636
pnpm test:watch
3737
```
3838

39+
## Education and Tutorials
40+
41+
1. 🚀 [Quickstart: Getting Up and Running](https://constructive.io/learn/quickstart)
42+
Get started with modular databases in minutes. Install prerequisites and deploy your first module.
43+
44+
2. 📦 [Modular PostgreSQL Development with Database Packages](https://constructive.io/learn/modular-postgres)
45+
Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
46+
47+
3. ✏️ [Authoring Database Changes](https://constructive.io/learn/authoring-database-changes)
48+
Master the workflow for adding, organizing, and managing database changes with pgpm.
49+
50+
4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://constructive.io/learn/e2e-postgres-testing)
51+
Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
52+
53+
5.[Supabase Testing](https://constructive.io/learn/supabase)
54+
Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
55+
56+
6. 💧 [Drizzle ORM Testing](https://constructive.io/learn/drizzle-testing)
57+
Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
58+
59+
7. 🔧 [Troubleshooting](https://constructive.io/learn/troubleshooting)
60+
Common issues and solutions for pgpm, PostgreSQL, and testing.
61+
62+
## Credits
63+
64+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
65+
3966
## Disclaimer
4067

41-
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
68+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED AS IS, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
4269

4370
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

packages/hello-world/deploy/rls-demo.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Deploy: rls-demo to pg
2-
-- made with <3 @ launchql.com
2+
-- made with <3 @ constructive.io
33

44
-- Create rls_test schema
55
CREATE SCHEMA IF NOT EXISTS rls_test;

packages/hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pgpm/hello-world",
33
"version": "0.5.0",
4-
"author": "Interweb <developers@interweb.co>",
4+
"author": "Constructive <developers@constructive.io>",
55
"description": "Hello World extension with Row Level Security (RLS) demo",
66
"private": true,
77
"scripts": {

packages/supabase/README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# @pgpm/supabase
22

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

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

1414
Supabase-focused SQL, tests, and helpers for building robust applications with Row-Level Security.
@@ -30,8 +30,35 @@ pnpm test
3030
pnpm test:watch
3131
```
3232

33+
## Education and Tutorials
34+
35+
1. 🚀 [Quickstart: Getting Up and Running](https://constructive.io/learn/quickstart)
36+
Get started with modular databases in minutes. Install prerequisites and deploy your first module.
37+
38+
2. 📦 [Modular PostgreSQL Development with Database Packages](https://constructive.io/learn/modular-postgres)
39+
Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
40+
41+
3. ✏️ [Authoring Database Changes](https://constructive.io/learn/authoring-database-changes)
42+
Master the workflow for adding, organizing, and managing database changes with pgpm.
43+
44+
4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://constructive.io/learn/e2e-postgres-testing)
45+
Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
46+
47+
5.[Supabase Testing](https://constructive.io/learn/supabase)
48+
Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
49+
50+
6. 💧 [Drizzle ORM Testing](https://constructive.io/learn/drizzle-testing)
51+
Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
52+
53+
7. 🔧 [Troubleshooting](https://constructive.io/learn/troubleshooting)
54+
Common issues and solutions for pgpm, PostgreSQL, and testing.
55+
56+
## Credits
57+
58+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
59+
3360
## Disclaimer
3461

35-
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
62+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED AS IS, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
3663

3764
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

packages/supabase/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pgpm/supabase",
33
"version": "0.5.0",
4-
"author": "Interweb <developers@interweb.co>",
4+
"author": "Constructive <developers@constructive.io>",
55
"license": "MIT",
66
"publishConfig": {
77
"access": "public"
@@ -13,10 +13,10 @@
1313
},
1414
"repository": {
1515
"type": "git",
16-
"url": "https://github.com/launchql/supabase-test-suite"
16+
"url": "https://github.com/constructive-io/supabase-test-suite"
1717
},
18-
"homepage": "https://github.com/launchql/supabase-test-suite",
18+
"homepage": "https://github.com/constructive-io/supabase-test-suite",
1919
"bugs": {
20-
"url": "https://github.com/launchql/supabase-test-suite/issues"
20+
"url": "https://github.com/constructive-io/supabase-test-suite/issues"
2121
}
2222
}

0 commit comments

Comments
 (0)