@powersync/service-module-postgres 0.16.12 → 0.16.14
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/CHANGELOG.md +30 -0
- package/dist/replication/SnapshotQuery.d.ts +1 -1
- package/dist/replication/SnapshotQuery.js +1 -1
- package/dist/replication/WalStreamReplicationJob.js.map +1 -1
- package/package.json +12 -12
- package/src/replication/SnapshotQuery.ts +1 -1
- package/src/replication/WalStreamReplicationJob.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @powersync/service-module-postgres
|
|
2
2
|
|
|
3
|
+
## 0.16.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b77bb2c: - First iteration of MSSQL replication using Change Data Capture (CDC).
|
|
8
|
+
- Supports resumable snapshot replication
|
|
9
|
+
- Uses CDC polling for replication
|
|
10
|
+
- Updated dependencies [dc696b1]
|
|
11
|
+
- Updated dependencies [b77bb2c]
|
|
12
|
+
- @powersync/service-core@1.18.0
|
|
13
|
+
- @powersync/service-types@0.13.3
|
|
14
|
+
- @powersync/lib-service-postgres@0.4.16
|
|
15
|
+
- @powersync/lib-services-framework@0.7.12
|
|
16
|
+
|
|
17
|
+
## 0.16.13
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [57f7660]
|
|
22
|
+
- Updated dependencies [c050acd]
|
|
23
|
+
- Updated dependencies [0156d10]
|
|
24
|
+
- Updated dependencies [6eee0b3]
|
|
25
|
+
- Updated dependencies [82c490e]
|
|
26
|
+
- @powersync/service-core@1.17.0
|
|
27
|
+
- @powersync/service-types@0.13.2
|
|
28
|
+
- @powersync/service-sync-rules@0.29.8
|
|
29
|
+
- @powersync/service-jpgwire@0.21.7
|
|
30
|
+
- @powersync/lib-service-postgres@0.4.15
|
|
31
|
+
- @powersync/lib-services-framework@0.7.11
|
|
32
|
+
|
|
3
33
|
## 0.16.12
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ export interface MissingRow {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Snapshot query using a plain SELECT * FROM table; chunked using
|
|
20
|
-
*
|
|
20
|
+
* DECLARE CURSOR / FETCH.
|
|
21
21
|
*
|
|
22
22
|
* This supports all tables, but does not efficiently resume the snapshot
|
|
23
23
|
* if the process is restarted.
|
|
@@ -4,7 +4,7 @@ import { escapeIdentifier } from '@powersync/lib-service-postgres';
|
|
|
4
4
|
import { ServiceAssertionError } from '@powersync/lib-services-framework';
|
|
5
5
|
/**
|
|
6
6
|
* Snapshot query using a plain SELECT * FROM table; chunked using
|
|
7
|
-
*
|
|
7
|
+
* DECLARE CURSOR / FETCH.
|
|
8
8
|
*
|
|
9
9
|
* This supports all tables, but does not efficiently resume the snapshot
|
|
10
10
|
* if the process is restarted.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalStreamReplicationJob.js","sourceRoot":"","sources":["../../src/replication/WalStreamReplicationJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WalStreamReplicationJob.js","sourceRoot":"","sources":["../../src/replication/WalStreamReplicationJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAMlE,MAAM,OAAO,uBAAwB,SAAQ,WAAW,CAAC,sBAAsB;IACrE,iBAAiB,CAA2B;IAC5C,iBAAiB,GAAqB,IAAI,CAAC;IAC3C,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AO;YACT,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;gBAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;gBACzC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;gBAC7B,WAAW,EAAE,iBAAiB;aAC/B,CAAC,CAAC;YACH,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;YACzB,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;QAC3B,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9B,MAAM,iBAAiB,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC;IACH,CAAC;IAED,KAAK,CAAC,uBAAuB;QAC3B,OAAO,IAAI,CAAC,UAAU,EAAE,uBAAuB,EAAE,CAAC;IACpD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.16.
|
|
8
|
+
"version": "0.16.14",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"license": "FSL-1.1-ALv2",
|
|
11
11
|
"type": "module",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"jose": "^4.15.1",
|
|
26
|
-
"pgwire": "github:
|
|
26
|
+
"pgwire": "github:exe-dealer/pgwire#f1cb95f9a0f42a612bb5a6b67bb2eb793fc5fc87",
|
|
27
27
|
"semver": "^7.5.4",
|
|
28
28
|
"ts-codec": "^1.3.0",
|
|
29
29
|
"uri-js": "^4.4.1",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
|
-
"@powersync/lib-service-postgres": "0.4.
|
|
32
|
-
"@powersync/lib-services-framework": "0.7.
|
|
33
|
-
"@powersync/service-core": "1.
|
|
34
|
-
"@powersync/service-jpgwire": "0.21.
|
|
31
|
+
"@powersync/lib-service-postgres": "0.4.16",
|
|
32
|
+
"@powersync/lib-services-framework": "0.7.12",
|
|
33
|
+
"@powersync/service-core": "1.18.0",
|
|
34
|
+
"@powersync/service-jpgwire": "0.21.7",
|
|
35
35
|
"@powersync/service-jsonbig": "0.17.12",
|
|
36
|
-
"@powersync/service-sync-rules": "0.29.
|
|
37
|
-
"@powersync/service-types": "0.13.
|
|
36
|
+
"@powersync/service-sync-rules": "0.29.8",
|
|
37
|
+
"@powersync/service-types": "0.13.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/semver": "^7.5.4",
|
|
41
|
-
"@powersync/service-core-tests": "0.12.
|
|
42
|
-
"@powersync/service-module-mongodb-storage": "0.12.
|
|
43
|
-
"@powersync/lib-service-postgres": "0.4.
|
|
44
|
-
"@powersync/service-module-postgres-storage": "0.10.
|
|
41
|
+
"@powersync/service-core-tests": "0.12.14",
|
|
42
|
+
"@powersync/service-module-mongodb-storage": "0.12.14",
|
|
43
|
+
"@powersync/lib-service-postgres": "0.4.16",
|
|
44
|
+
"@powersync/service-module-postgres-storage": "0.10.14"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc -b",
|
|
@@ -23,7 +23,7 @@ export interface MissingRow {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Snapshot query using a plain SELECT * FROM table; chunked using
|
|
26
|
-
*
|
|
26
|
+
* DECLARE CURSOR / FETCH.
|
|
27
27
|
*
|
|
28
28
|
* This supports all tables, but does not efficiently resume the snapshot
|
|
29
29
|
* if the process is restarted.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { container, logger
|
|
1
|
+
import { container, logger } from '@powersync/lib-services-framework';
|
|
2
2
|
import { PgManager } from './PgManager.js';
|
|
3
3
|
import { MissingReplicationSlotError, sendKeepAlive, WalStream } from './WalStream.js';
|
|
4
4
|
|