graphile-postgis 0.1.2 → 0.1.4

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +49 -47
  3. package/package.json +7 -7
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
4
- Copyright (c) 2025 Hyperweb <developers@hyperweb.io>
4
+ Copyright (c) 2025 Constructive <developers@constructive.io>
5
5
  Copyright (c) 2020-present, Interweb, Inc.
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # graphile-postgis
2
2
 
3
3
  <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" />
5
5
  </p>
6
6
 
7
7
  <p align="center" width="100%">
8
- <a href="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml">
9
- <img height="20" src="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml/badge.svg" />
8
+ <a href="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml">
9
+ <img height="20" src="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml/badge.svg" />
10
10
  </a>
11
- <a href="https://github.com/launchql/launchql/blob/main/LICENSE">
11
+ <a href="https://github.com/constructive-io/constructive/blob/main/LICENSE">
12
12
  <img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
13
13
  </a>
14
14
  <a href="https://www.npmjs.com/package/graphile-postgis">
@@ -16,16 +16,21 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
- PostGIS helpers for PostGraphile/Graphile. This plugin registers GeoJSON scalars, PostGIS
20
- geometry/geography GraphQL types, and convenience fields for common spatial types.
19
+ **`graphile-postgis`** registers GeoJSON scalars, PostGIS geometry/geography GraphQL types, and convenience fields for common spatial columns in PostGraphile/Graphile schemas.
21
20
 
22
- ## Install
21
+ ## 🚀 Installation
23
22
 
24
23
  ```sh
25
24
  pnpm add graphile-postgis
26
25
  ```
27
26
 
28
- ## Usage
27
+ ## ✨ Features
28
+
29
+ - Registers GeoJSON scalars and PostGIS `geometry` / `geography` GraphQL types
30
+ - Convenience fields for common spatial column types
31
+ - Works with PostGraphile CLI or library usage
32
+
33
+ ## 📦 Usage
29
34
 
30
35
  ### CLI
31
36
 
@@ -45,85 +50,82 @@ const options = {
45
50
  };
46
51
  ```
47
52
 
48
- ## Testing
49
-
50
- Tests run against a real Postgres/PostGIS instance using the `graphile-test` and
51
- `pgsql-test` harnesses. The suite seeds the database from `sql/schema.sql`.
53
+ ## 🧪 Testing
52
54
 
53
55
  ```sh
54
- psql -U postgres -f sql/schema.sql postgres
55
- pnpm test --filter graphile-postgis
56
+ # requires a local Postgres with PostGIS available (defaults to postgres/password@localhost:5432)
57
+ pnpm --filter graphile-postgis test
56
58
  ```
57
59
 
58
60
  ---
59
61
 
60
62
  ## Education and Tutorials
61
63
 
62
- 1. 🚀 [Quickstart: Getting Up and Running](https://launchql.com/learn/quickstart)
64
+ 1. 🚀 [Quickstart: Getting Up and Running](https://constructive.io/learn/quickstart)
63
65
  Get started with modular databases in minutes. Install prerequisites and deploy your first module.
64
66
 
65
- 2. 📦 [Modular PostgreSQL Development with Database Packages](https://launchql.com/learn/modular-postgres)
67
+ 2. 📦 [Modular PostgreSQL Development with Database Packages](https://constructive.io/learn/modular-postgres)
66
68
  Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
67
69
 
68
- 3. ✏️ [Authoring Database Changes](https://launchql.com/learn/authoring-database-changes)
70
+ 3. ✏️ [Authoring Database Changes](https://constructive.io/learn/authoring-database-changes)
69
71
  Master the workflow for adding, organizing, and managing database changes with pgpm.
70
72
 
71
- 4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://launchql.com/learn/e2e-postgres-testing)
73
+ 4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://constructive.io/learn/e2e-postgres-testing)
72
74
  Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
73
75
 
74
- 5. ⚡ [Supabase Testing](https://launchql.com/learn/supabase)
76
+ 5. ⚡ [Supabase Testing](https://constructive.io/learn/supabase)
75
77
  Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
76
78
 
77
- 6. 💧 [Drizzle ORM Testing](https://launchql.com/learn/drizzle-testing)
79
+ 6. 💧 [Drizzle ORM Testing](https://constructive.io/learn/drizzle-testing)
78
80
  Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
79
81
 
80
- 7. 🔧 [Troubleshooting](https://launchql.com/learn/troubleshooting)
82
+ 7. 🔧 [Troubleshooting](https://constructive.io/learn/troubleshooting)
81
83
  Common issues and solutions for pgpm, PostgreSQL, and testing.
82
84
 
83
- ## Related LaunchQL Tooling
85
+ ## Related Constructive Tooling
84
86
 
85
87
  ### 🧪 Testing
86
88
 
87
- * [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.
88
- * [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.
89
- * [launchql/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.
90
- * [launchql/pg-query-context](https://github.com/launchql/launchql/tree/main/packages/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.
89
+ * [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.
90
+ * [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.
91
+ * [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.
92
+ * [pg-query-context](https://github.com/constructive-io/constructive/tree/main/packages/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.
91
93
 
92
94
  ### 🧠 Parsing & AST
93
95
 
94
- * [launchql/pgsql-parser](https://github.com/launchql/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
95
- * [launchql/libpg-query-node](https://github.com/launchql/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
96
- * [launchql/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.
97
- * [@pgsql/enums](https://github.com/launchql/pgsql-parser/tree/main/packages/enums): **🏷️ TypeScript enums** for PostgreSQL AST for safe and ergonomic parsing logic.
98
- * [@pgsql/types](https://github.com/launchql/pgsql-parser/tree/main/packages/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
99
- * [@pgsql/utils](https://github.com/launchql/pgsql-parser/tree/main/packages/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
100
- * [launchql/pg-ast](https://github.com/launchql/launchql/tree/main/packages/pg-ast): **🔍 Low-level AST tools** and transformations for Postgres query structures.
96
+ * [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
97
+ * [libpg-query-node](https://www.npmjs.com/package/libpg-query): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
98
+ * [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
99
+ * [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): **🏷️ TypeScript enums** for PostgreSQL AST for safe and ergonomic parsing logic.
100
+ * [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
101
+ * [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
102
+ * [pg-ast](https://www.npmjs.com/package/pg-ast): **🔍 Low-level AST tools** and transformations for Postgres query structures.
101
103
 
102
104
  ### 🚀 API & Dev Tools
103
105
 
104
- * [launchql/server](https://github.com/launchql/launchql/tree/main/packages/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
105
- * [launchql/explorer](https://github.com/launchql/launchql/tree/main/packages/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
106
+ * [launchql/server](https://github.com/constructive-io/constructive/tree/main/packages/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
107
+ * [launchql/explorer](https://github.com/constructive-io/constructive/tree/main/packages/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
106
108
 
107
109
  ### 🔁 Streaming & Uploads
108
110
 
109
- * [launchql/s3-streamer](https://github.com/launchql/launchql/tree/main/packages/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
110
- * [launchql/etag-hash](https://github.com/launchql/launchql/tree/main/packages/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
111
- * [launchql/etag-stream](https://github.com/launchql/launchql/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
112
- * [launchql/uuid-hash](https://github.com/launchql/launchql/tree/main/packages/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
113
- * [launchql/uuid-stream](https://github.com/launchql/launchql/tree/main/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
114
- * [launchql/upload-names](https://github.com/launchql/launchql/tree/main/packages/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
111
+ * [launchql/s3-streamer](https://github.com/constructive-io/constructive/tree/main/packages/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
112
+ * [launchql/etag-hash](https://github.com/constructive-io/constructive/tree/main/packages/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
113
+ * [launchql/etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
114
+ * [launchql/uuid-hash](https://github.com/constructive-io/constructive/tree/main/packages/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
115
+ * [launchql/uuid-stream](https://github.com/constructive-io/constructive/tree/main/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
116
+ * [launchql/upload-names](https://github.com/constructive-io/constructive/tree/main/packages/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
115
117
 
116
118
  ### 🧰 CLI & Codegen
117
119
 
118
- * [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.
119
- * [@launchql/cli](https://github.com/launchql/launchql/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing LaunchQL projects—supports database scaffolding, migrations, seeding, code generation, and automation.
120
- * [launchql/launchql-gen](https://github.com/launchql/launchql/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
121
- * [@launchql/query-builder](https://github.com/launchql/launchql/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.
122
- * [@launchql/query](https://github.com/launchql/launchql/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
120
+ * [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.
121
+ * [@launchql/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing LaunchQL projects—supports database scaffolding, migrations, seeding, code generation, and automation.
122
+ * [launchql/launchql-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
123
+ * [@launchql/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.
124
+ * [@launchql/query](https://github.com/constructive-io/constructive/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
123
125
 
124
126
  ## Credits
125
127
 
126
- 🛠 Built by LaunchQL — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/launchql)
128
+ 🛠 Built by Constructive — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/constructive-io)
127
129
 
128
130
 
129
131
  ## Disclaimer
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "graphile-postgis",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Graphile/PostGraphile PostGIS integration plugin",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
- "homepage": "https://github.com/launchql/launchql",
6
+ "homepage": "https://github.com/constructive-io/constructive",
7
7
  "license": "MIT",
8
8
  "main": "index.js",
9
9
  "module": "esm/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
27
- "url": "https://github.com/launchql/launchql"
27
+ "url": "https://github.com/constructive-io/constructive"
28
28
  },
29
29
  "keywords": [
30
30
  "graphile",
@@ -35,13 +35,13 @@
35
35
  "launchql"
36
36
  ],
37
37
  "bugs": {
38
- "url": "https://github.com/launchql/launchql/issues"
38
+ "url": "https://github.com/constructive-io/constructive/issues"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/geojson": "^7946.0.14",
42
- "graphile-test": "^2.8.10",
42
+ "graphile-test": "^2.8.12",
43
43
  "makage": "^0.1.6",
44
- "pgsql-test": "^2.14.13"
44
+ "pgsql-test": "^2.14.15"
45
45
  },
46
46
  "dependencies": {
47
47
  "graphile-build": "^4.14.1",
@@ -50,5 +50,5 @@
50
50
  "graphql": "15.10.1",
51
51
  "pg": "^8.16.0"
52
52
  },
53
- "gitHead": "4e1ff9771c2b07808a9830281abc24d12c689187"
53
+ "gitHead": "5a0d7c7502624bd42a214f983fd7ab957e1fb3e3"
54
54
  }