@pgpm/verify 0.6.0 → 0.7.0

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-verify
2
- DATA = sql/launchql-verify--0.5.0.sql
2
+ DATA = sql/launchql-verify--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/verify
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/verify"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgpm-modules?filename=packages%2Futils%2Fverify%2Fpackage.json"/></a>
13
+ </p>
14
+
3
15
  Verification utilities for PostgreSQL extensions
4
16
 
5
17
  ## Overview
@@ -29,40 +41,42 @@ This is a quick way to get started. The sections below provide more detailed ins
29
41
  ### Prerequisites
30
42
 
31
43
  ```bash
32
- # Install pgpm globally
44
+ # Install pgpm CLI
33
45
  npm install -g pgpm
34
46
 
35
- # Start PostgreSQL
47
+ # Start local Postgres (via Docker) and export env vars
36
48
  pgpm docker start
37
-
38
- # Set environment variables
39
49
  eval "$(pgpm env)"
40
50
  ```
41
51
 
42
- ### Deploy
52
+ > **Tip:** Already running Postgres? Skip the Docker step and just export your `PG*` environment variables.
43
53
 
44
- #### Option 1: Deploy by installing with pgpm
54
+ ### **Add to an Existing Package**
45
55
 
46
56
  ```bash
57
+ # 1. Install the package
47
58
  pgpm install @pgpm/verify
48
- pgpm deploy
59
+
60
+ # 2. Deploy locally
61
+ pgpm deploy
49
62
  ```
50
63
 
51
- #### Option 2: Deploy from Package Directory
64
+ ### **Add to a New Project**
52
65
 
53
66
  ```bash
54
- cd packages/utils/verify
55
- pgpm deploy --createdb
56
- ```
67
+ # 1. Create a workspace
68
+ pgpm init --workspace
69
+ cd my-app
57
70
 
58
- #### Option 3: Deploy from Workspace Root
71
+ # 2. Create your first module
72
+ pgpm init
73
+ cd packages/your-module
59
74
 
60
- ```bash
61
- # Install workspace dependencies
62
- pnpm install
75
+ # 3. Install a package
76
+ pgpm install @pgpm/verify
63
77
 
64
- # Deploy with dependencies
65
- pgpm deploy mydb1 --yes --createdb
78
+ # 4. Deploy everything
79
+ pgpm deploy --createdb --database mydb1
66
80
  ```
67
81
 
68
82
  ## Core Functions
@@ -422,76 +436,6 @@ pnpm test
422
436
 
423
437
  None - this is the foundational package that all other packages depend on.
424
438
 
425
- ## Development
426
-
427
- See the [Development](#development-1) section below for information on working with this package.
428
-
429
- ---
430
-
431
- ## Development
432
-
433
- ### **Before You Begin**
434
-
435
- ```bash
436
- # 1. Install pgpm
437
- npm install -g pgpm
438
-
439
- # 2. Start Postgres (Docker or local)
440
- pgpm docker start
441
-
442
- # 3. Load PG* environment variables (PGHOST, PGUSER, ...)
443
- eval "$(pgpm env)"
444
- ```
445
-
446
- ---
447
-
448
- ### **Starting a New Project**
449
-
450
- ```bash
451
- # 1. Create a workspace
452
- pgpm init --workspace
453
- cd my-app
454
-
455
- # 2. Create your first module
456
- pgpm init
457
-
458
- # 3. Add a migration
459
- pgpm add some_change
460
-
461
- # 4. Deploy (auto-creates database)
462
- pgpm deploy --createdb
463
- ```
464
-
465
- ---
466
-
467
- ### **Working With an Existing Project**
468
-
469
- ```bash
470
- # 1. Clone and enter the project
471
- git clone <repo> && cd <project>
472
-
473
- # 2. Install dependencies
474
- pnpm install
475
-
476
- # 3. Deploy locally
477
- pgpm deploy --createdb
478
- ```
479
-
480
- ---
481
-
482
- ### **Testing a Module Inside a Workspace**
483
-
484
- ```bash
485
- # 1. Install workspace deps
486
- pnpm install
487
-
488
- # 2. Enter the module directory
489
- cd packages/<some-module>
490
-
491
- # 3. Run tests in watch mode
492
- pnpm test:watch
493
- ```
494
-
495
439
  ## Related Tooling
496
440
 
497
441
  * [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-verify extension
2
2
  comment = 'launchql-verify extension'
3
- default_version = '0.5.0'
3
+ default_version = '0.6.0'
4
4
  module_pathname = '$libdir/launchql-verify'
5
5
  requires = 'plpgsql'
6
6
  relocatable = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/verify",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Verification utilities for LaunchQL deploy/verify/revert workflow",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,5 +21,5 @@
21
21
  "bugs": {
22
22
  "url": "https://github.com/launchql/pgpm-modules/issues"
23
23
  },
24
- "gitHead": "c7d0eae588d7a764b382a330c8b853b341b13fb2"
24
+ "gitHead": "1f24d8fa95fb141f16e5b8345458c3b687d80908"
25
25
  }