@powersync/service-module-postgres 0.17.0 → 0.17.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @powersync/service-module-postgres
|
|
2
2
|
|
|
3
|
+
## 0.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 479997b: Introduce `BaseSyncConfig` to represent SQL-based sync rules and precompiled sync plans.
|
|
8
|
+
- Updated dependencies [0e99ce0]
|
|
9
|
+
- Updated dependencies [479997b]
|
|
10
|
+
- Updated dependencies [d1c2228]
|
|
11
|
+
- Updated dependencies [1a1a4cc]
|
|
12
|
+
- @powersync/service-sync-rules@0.31.0
|
|
13
|
+
- @powersync/service-core@1.19.1
|
|
14
|
+
- @powersync/lib-services-framework@0.8.1
|
|
15
|
+
- @powersync/service-jpgwire@0.21.11
|
|
16
|
+
- @powersync/lib-service-postgres@0.4.20
|
|
17
|
+
|
|
3
18
|
## 0.17.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -20,7 +20,7 @@ export interface GetDebugTablesInfoOptions {
|
|
|
20
20
|
publicationName: string;
|
|
21
21
|
connectionTag: string;
|
|
22
22
|
tablePatterns: sync_rules.TablePattern[];
|
|
23
|
-
syncRules: sync_rules.
|
|
23
|
+
syncRules: sync_rules.SyncConfig;
|
|
24
24
|
}
|
|
25
25
|
export declare function getDebugTablesInfo(options: GetDebugTablesInfoOptions): Promise<PatternResult[]>;
|
|
26
26
|
export interface GetDebugTableInfoOptions {
|
|
@@ -30,7 +30,7 @@ export interface GetDebugTableInfoOptions {
|
|
|
30
30
|
connectionTag: string;
|
|
31
31
|
tablePattern: sync_rules.TablePattern;
|
|
32
32
|
relationId: number | null;
|
|
33
|
-
syncRules: sync_rules.
|
|
33
|
+
syncRules: sync_rules.SyncConfig;
|
|
34
34
|
}
|
|
35
35
|
export declare function getDebugTableInfo(options: GetDebugTableInfoOptions): Promise<service_types.TableInfo>;
|
|
36
36
|
export declare function cleanUpReplicationSlot(slotName: string, db: pgwire.PgClient): Promise<void>;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.17.
|
|
8
|
+
"version": "0.17.1",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"license": "FSL-1.1-ALv2",
|
|
11
11
|
"type": "module",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"semver": "^7.5.4",
|
|
26
26
|
"ts-codec": "^1.3.0",
|
|
27
27
|
"uuid": "^11.1.0",
|
|
28
|
-
"@powersync/lib-service-postgres": "0.4.
|
|
29
|
-
"@powersync/lib-services-framework": "0.8.
|
|
30
|
-
"@powersync/service-core": "1.19.
|
|
31
|
-
"@powersync/service-jpgwire": "0.21.
|
|
28
|
+
"@powersync/lib-service-postgres": "0.4.20",
|
|
29
|
+
"@powersync/lib-services-framework": "0.8.1",
|
|
30
|
+
"@powersync/service-core": "1.19.1",
|
|
31
|
+
"@powersync/service-jpgwire": "0.21.11",
|
|
32
32
|
"@powersync/service-jsonbig": "0.17.12",
|
|
33
|
-
"@powersync/service-sync-rules": "0.
|
|
33
|
+
"@powersync/service-sync-rules": "0.31.0",
|
|
34
34
|
"@powersync/service-types": "0.14.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/semver": "^7.5.4",
|
|
38
|
-
"@powersync/service-core-tests": "0.13.
|
|
39
|
-
"@powersync/service-module-mongodb-storage": "0.13.
|
|
40
|
-
"@powersync/lib-service-postgres": "0.4.
|
|
41
|
-
"@powersync/service-module-postgres-storage": "0.11.
|
|
38
|
+
"@powersync/service-core-tests": "0.13.1",
|
|
39
|
+
"@powersync/service-module-mongodb-storage": "0.13.1",
|
|
40
|
+
"@powersync/lib-service-postgres": "0.4.20",
|
|
41
|
+
"@powersync/service-module-postgres-storage": "0.11.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc -b",
|
|
@@ -196,7 +196,7 @@ export interface GetDebugTablesInfoOptions {
|
|
|
196
196
|
publicationName: string;
|
|
197
197
|
connectionTag: string;
|
|
198
198
|
tablePatterns: sync_rules.TablePattern[];
|
|
199
|
-
syncRules: sync_rules.
|
|
199
|
+
syncRules: sync_rules.SyncConfig;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export async function getDebugTablesInfo(options: GetDebugTablesInfoOptions): Promise<PatternResult[]> {
|
|
@@ -296,7 +296,7 @@ export interface GetDebugTableInfoOptions {
|
|
|
296
296
|
connectionTag: string;
|
|
297
297
|
tablePattern: sync_rules.TablePattern;
|
|
298
298
|
relationId: number | null;
|
|
299
|
-
syncRules: sync_rules.
|
|
299
|
+
syncRules: sync_rules.SyncConfig;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
export async function getDebugTableInfo(options: GetDebugTableInfoOptions): Promise<service_types.TableInfo> {
|
|
@@ -21,13 +21,13 @@ bucket_definitions:
|
|
|
21
21
|
|
|
22
22
|
const syncRules = await context.factory.updateSyncRules({ content: syncRuleContent });
|
|
23
23
|
|
|
24
|
-
const tablePatterns = syncRules.parsed({ defaultSchema: 'public' }).sync_rules.getSourceTables();
|
|
24
|
+
const tablePatterns = syncRules.parsed({ defaultSchema: 'public' }).sync_rules.config.getSourceTables();
|
|
25
25
|
const tableInfo = await getDebugTablesInfo({
|
|
26
26
|
db: pool,
|
|
27
27
|
publicationName: context.publicationName,
|
|
28
28
|
connectionTag: context.connectionTag,
|
|
29
29
|
tablePatterns: tablePatterns,
|
|
30
|
-
syncRules: syncRules.parsed({ defaultSchema: 'public' }).sync_rules
|
|
30
|
+
syncRules: syncRules.parsed({ defaultSchema: 'public' }).sync_rules.config
|
|
31
31
|
});
|
|
32
32
|
expect(tableInfo).toEqual([
|
|
33
33
|
{
|