@pgpmjs/pglite-adapter 0.1.0 → 0.1.2
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 +24 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @pgpmjs/pglite-adapter
|
|
2
2
|
|
|
3
|
+
<p align="center" width="100%">
|
|
4
|
+
<img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center" width="100%">
|
|
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
|
+
</a>
|
|
11
|
+
<a href="https://github.com/constructive-io/constructive/blob/main/LICENSE">
|
|
12
|
+
<img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@pgpmjs/pglite-adapter">
|
|
15
|
+
<img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=postgres%2Fpglite-adapter%2Fpackage.json"/>
|
|
16
|
+
</a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
3
19
|
A PGlite driver for pgpm. It registers an **in-process** [PGlite](https://github.com/electric-sql/pglite)
|
|
4
20
|
instance (WASM Postgres) as the `pg-cache` pool factory, so the **unmodified**
|
|
5
21
|
pgpm engine deploys, verifies, and reverts migrations against PGlite with **no
|
|
@@ -8,6 +24,14 @@ Postgres server and no socket**.
|
|
|
8
24
|
All `@electric-sql/pglite*` dependencies live here — `@pgpmjs/core`, `pg-cache`,
|
|
9
25
|
and `pgsql-test` never import them.
|
|
10
26
|
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npm install @pgpmjs/pglite-adapter @electric-sql/pglite
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`@electric-sql/pglite` is a peer dependency, so you pin the version.
|
|
34
|
+
|
|
11
35
|
## How it works
|
|
12
36
|
|
|
13
37
|
pgpm's engine only needs a node-`pg`-shaped pool (`query` / `connect` / `end`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/pglite-adapter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGlite driver for pgpm — registers an in-process PGlite instance as the pg-cache pool factory so the unmodified pgpm engine deploys into PGlite (WASM Postgres) with no server",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@electric-sql/pglite": "0.5.4",
|
|
44
|
-
"@pgpmjs/core": "^6.
|
|
44
|
+
"@pgpmjs/core": "^6.28.0",
|
|
45
45
|
"@types/pg": "^8.20.0",
|
|
46
46
|
"makage": "^0.3.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"pg-cache": "^3.14.
|
|
49
|
+
"pg-cache": "^3.14.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@electric-sql/pglite": ">=0.5.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e2a1337c7ec8366b28c10e550645e44cad6085ff"
|
|
55
55
|
}
|