@pgpm/geotypes 0.6.0 → 0.7.1

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/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  EXTENSION = launchql-geo-types
2
- DATA = sql/launchql-geo-types--0.5.0.sql
2
+ DATA = sql/launchql-geo-types--0.6.0.sql
3
3
 
4
4
  PG_CONFIG = pg_config
5
5
  PGXS := $(shell $(PG_CONFIG) --pgxs)
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pgpm/geotypes
2
2
 
3
+ <p align="center" width="100%">
4
+ <img height="250" src="https://raw.githubusercontent.com/launchql/launchql/refs/heads/main/assets/outline-logo.svg" />
5
+ </p>
6
+
7
+ <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" />
10
+ </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>
12
+ <a href="https://www.npmjs.com/package/@pgpm/geotypes"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgpm-modules?filename=packages%2Fdata-types%2Fgeotypes%2Fpackage.json"/></a>
13
+ </p>
14
+
3
15
  Geographic data types and spatial functions for PostgreSQL.
4
16
 
5
17
  ## Overview
@@ -27,40 +39,42 @@ This is a quick way to get started. The sections below provide more detailed ins
27
39
  ### Prerequisites
28
40
 
29
41
  ```bash
30
- # Install pgpm globally
42
+ # Install pgpm CLI
31
43
  npm install -g pgpm
32
44
 
33
- # Start PostgreSQL
45
+ # Start local Postgres (via Docker) and export env vars
34
46
  pgpm docker start
35
-
36
- # Set environment variables
37
47
  eval "$(pgpm env)"
38
48
  ```
39
49
 
40
- ### Deploy
50
+ > **Tip:** Already running Postgres? Skip the Docker step and just export your `PG*` environment variables.
41
51
 
42
- #### Option 1: Deploy by installing with pgpm
52
+ ### **Add to an Existing Package**
43
53
 
44
54
  ```bash
55
+ # 1. Install the package
45
56
  pgpm install @pgpm/geotypes
46
- pgpm deploy
57
+
58
+ # 2. Deploy locally
59
+ pgpm deploy
47
60
  ```
48
61
 
49
- #### Option 2: Deploy from Package Directory
62
+ ### **Add to a New Project**
50
63
 
51
64
  ```bash
52
- cd packages/data-types/geotypes
53
- pgpm deploy --createdb
54
- ```
65
+ # 1. Create a workspace
66
+ pgpm init --workspace
67
+ cd my-app
55
68
 
56
- #### Option 3: Deploy from Workspace Root
69
+ # 2. Create your first module
70
+ pgpm init
71
+ cd packages/your-module
57
72
 
58
- ```bash
59
- # Install workspace dependencies
60
- pnpm install
73
+ # 3. Install a package
74
+ pgpm install @pgpm/geotypes
61
75
 
62
- # Deploy with dependencies
63
- pgpm deploy mydb1 --yes --createdb
76
+ # 4. Deploy everything
77
+ pgpm deploy --createdb --database mydb1
64
78
  ```
65
79
 
66
80
  ## Usage
@@ -143,76 +157,6 @@ The test suite validates:
143
157
  - SRID validation and rejection of incorrect coordinate systems
144
158
  - Polygon geometry validation
145
159
 
146
- ## Development
147
-
148
- See the [Development](#development) section below for information on working with this package.
149
-
150
- ---
151
-
152
- ## Development
153
-
154
- ### **Before You Begin**
155
-
156
- ```bash
157
- # 1. Install pgpm
158
- npm install -g pgpm
159
-
160
- # 2. Start Postgres (Docker or local)
161
- pgpm docker start
162
-
163
- # 3. Load PG* environment variables (PGHOST, PGUSER, ...)
164
- eval "$(pgpm env)"
165
- ```
166
-
167
- ---
168
-
169
- ### **Starting a New Project**
170
-
171
- ```bash
172
- # 1. Create a workspace
173
- pgpm init --workspace
174
- cd my-app
175
-
176
- # 2. Create your first module
177
- pgpm init
178
-
179
- # 3. Add a migration
180
- pgpm add some_change
181
-
182
- # 4. Deploy (auto-creates database)
183
- pgpm deploy --createdb
184
- ```
185
-
186
- ---
187
-
188
- ### **Working With an Existing Project**
189
-
190
- ```bash
191
- # 1. Clone and enter the project
192
- git clone <repo> && cd <project>
193
-
194
- # 2. Install dependencies
195
- pnpm install
196
-
197
- # 3. Deploy locally
198
- pgpm deploy --createdb
199
- ```
200
-
201
- ---
202
-
203
- ### **Testing a Module Inside a Workspace**
204
-
205
- ```bash
206
- # 1. Install workspace deps
207
- pnpm install
208
-
209
- # 2. Enter the module directory
210
- cd packages/<some-module>
211
-
212
- # 3. Run tests in watch mode
213
- pnpm test:watch
214
- ```
215
-
216
160
  ## Related Tooling
217
161
 
218
162
  * [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.
@@ -1,6 +1,6 @@
1
1
  # launchql-geo-types extension
2
2
  comment = 'launchql-geo-types extension'
3
- default_version = '0.5.0'
3
+ default_version = '0.6.0'
4
4
  module_pathname = '$libdir/launchql-geo-types'
5
5
  requires = 'plpgsql,citext,postgis,launchql-types,launchql-verify'
6
6
  relocatable = false
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "@pgpm/geotypes",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Geographic data types and spatial functions for PostgreSQL",
5
+ "keywords": [
6
+ "postgresql",
7
+ "pgpm",
8
+ "geography",
9
+ "spatial"
10
+ ],
5
11
  "publishConfig": {
6
12
  "access": "public"
7
13
  },
@@ -11,8 +17,8 @@
11
17
  "test:watch": "jest --watch"
12
18
  },
13
19
  "dependencies": {
14
- "@pgpm/types": "0.6.0",
15
- "@pgpm/verify": "0.6.0"
20
+ "@pgpm/types": "0.7.1",
21
+ "@pgpm/verify": "0.7.1"
16
22
  },
17
23
  "devDependencies": {
18
24
  "pgpm": "^0.2.0"
@@ -25,5 +31,5 @@
25
31
  "bugs": {
26
32
  "url": "https://github.com/launchql/pgpm-modules/issues"
27
33
  },
28
- "gitHead": "c7d0eae588d7a764b382a330c8b853b341b13fb2"
34
+ "gitHead": "f3156553b409bd27b66ac03562151d439d779f53"
29
35
  }