pgsql-test 2.17.1 → 2.17.3
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/README.md +17 -17
- package/admin.js +3 -0
- package/esm/admin.js +3 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -687,10 +687,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
687
687
|
|
|
688
688
|
### 🧪 Testing
|
|
689
689
|
|
|
690
|
-
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/
|
|
691
|
-
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/
|
|
692
|
-
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/
|
|
693
|
-
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/
|
|
690
|
+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
|
|
691
|
+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
|
|
692
|
+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
|
|
693
|
+
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
|
|
694
694
|
|
|
695
695
|
### 🧠 Parsing & AST
|
|
696
696
|
|
|
@@ -704,25 +704,25 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
704
704
|
|
|
705
705
|
### 🚀 API & Dev Tools
|
|
706
706
|
|
|
707
|
-
* [
|
|
708
|
-
* [
|
|
707
|
+
* [@constructive-io/graphql-server](https://github.com/constructive-io/constructive/tree/main/graphql/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
|
|
708
|
+
* [@constructive-io/graphql-explorer](https://github.com/constructive-io/constructive/tree/main/graphql/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
|
|
709
709
|
|
|
710
710
|
### 🔁 Streaming & Uploads
|
|
711
711
|
|
|
712
|
-
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
713
|
-
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
714
|
-
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
715
|
-
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
716
|
-
* [
|
|
717
|
-
* [
|
|
712
|
+
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/streaming/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
|
|
713
|
+
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
|
|
714
|
+
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
|
|
715
|
+
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
|
|
716
|
+
* [@constructive-io/s3-streamer](https://github.com/constructive-io/constructive/tree/main/streaming/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
|
|
717
|
+
* [@constructive-io/upload-names](https://github.com/constructive-io/constructive/tree/main/streaming/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
|
|
718
718
|
|
|
719
719
|
### 🧰 CLI & Codegen
|
|
720
720
|
|
|
721
|
-
* [pgpm](https://github.com/constructive-io/constructive/tree/main/
|
|
722
|
-
* [@
|
|
723
|
-
* [
|
|
724
|
-
* [@
|
|
725
|
-
* [@
|
|
721
|
+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
|
|
722
|
+
* [@constructive-io/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing Constructive projects—supports database scaffolding, migrations, seeding, code generation, and automation.
|
|
723
|
+
* [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
|
|
724
|
+
* [@constructive-io/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
|
|
725
|
+
* [@constructive-io/graphql-query](https://github.com/constructive-io/constructive/tree/main/graphql/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
|
|
726
726
|
|
|
727
727
|
## Credits
|
|
728
728
|
|
package/admin.js
CHANGED
|
@@ -151,6 +151,9 @@ $$;
|
|
|
151
151
|
WHEN duplicate_object THEN
|
|
152
152
|
-- Role already exists; optionally sync attributes here with ALTER ROLE
|
|
153
153
|
NULL;
|
|
154
|
+
WHEN unique_violation THEN
|
|
155
|
+
-- Concurrent CREATE ROLE hit unique index; safe to ignore
|
|
156
|
+
NULL;
|
|
154
157
|
END;
|
|
155
158
|
|
|
156
159
|
-- CI/CD concurrency note: GRANT role membership can race on pg_auth_members unique index
|
package/esm/admin.js
CHANGED
|
@@ -148,6 +148,9 @@ $$;
|
|
|
148
148
|
WHEN duplicate_object THEN
|
|
149
149
|
-- Role already exists; optionally sync attributes here with ALTER ROLE
|
|
150
150
|
NULL;
|
|
151
|
+
WHEN unique_violation THEN
|
|
152
|
+
-- Concurrent CREATE ROLE hit unique index; safe to ignore
|
|
153
|
+
NULL;
|
|
151
154
|
END;
|
|
152
155
|
|
|
153
156
|
-- CI/CD concurrency note: GRANT role membership can race on pg_auth_members unique index
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgsql-test",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.3",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"jest",
|
|
34
34
|
"mocha",
|
|
35
35
|
"sqitch",
|
|
36
|
-
"
|
|
36
|
+
"constructive",
|
|
37
37
|
"graphile",
|
|
38
38
|
"typeorm",
|
|
39
39
|
"knex",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
"build": "makage build",
|
|
52
52
|
"build:dev": "makage build --dev",
|
|
53
53
|
"lint": "eslint . --fix",
|
|
54
|
-
"test": "jest",
|
|
54
|
+
"test": "jest --passWithNoTests",
|
|
55
55
|
"test:watch": "jest --watch"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/pg": "^8.16.0",
|
|
59
59
|
"@types/pg-copy-streams": "^1.2.5",
|
|
60
|
-
"makage": "^0.1.
|
|
60
|
+
"makage": "^0.1.9"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@pgpmjs/core": "^3.0.
|
|
64
|
-
"@pgpmjs/env": "^2.8.
|
|
65
|
-
"@pgpmjs/logger": "^1.3.
|
|
66
|
-
"@pgpmjs/server-utils": "^2.8.
|
|
67
|
-
"@pgpmjs/types": "^2.12.
|
|
63
|
+
"@pgpmjs/core": "^3.0.7",
|
|
64
|
+
"@pgpmjs/env": "^2.8.5",
|
|
65
|
+
"@pgpmjs/logger": "^1.3.5",
|
|
66
|
+
"@pgpmjs/server-utils": "^2.8.7",
|
|
67
|
+
"@pgpmjs/types": "^2.12.5",
|
|
68
68
|
"csv-parse": "^6.1.0",
|
|
69
69
|
"pg": "^8.16.3",
|
|
70
|
-
"pg-cache": "^1.6.
|
|
70
|
+
"pg-cache": "^1.6.7",
|
|
71
71
|
"pg-copy-streams": "^7.0.0",
|
|
72
|
-
"pg-env": "^1.2.
|
|
72
|
+
"pg-env": "^1.2.4"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e45ec95404e48d0c0542da882a3baea0cd6de1c7"
|
|
75
75
|
}
|