Skip to content

Commit e16a941

Browse files
update sync config examples to edition 3
1 parent f86df4e commit e16a941

6 files changed

Lines changed: 27 additions & 31 deletions

File tree

cli/templates/cloud/powersync/sync.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# See https://docs.powersync.com/sync/advanced/compatibility
22
config:
3-
edition: 2
4-
sync_config_compiler: true
3+
edition: 3
54

65
# Define Sync Streams to control which data is synced to each user
76
# Docs: https://docs.powersync.com/sync/streams/overview

cli/templates/self-hosted/base/powersync/sync.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# See https://docs.powersync.com/sync/advanced/compatibility
22
config:
3-
edition: 2
4-
sync_config_compiler: true
3+
edition: 3
54

65
# Define Sync Streams to control which data is synced to each user
76
# Docs: https://docs.powersync.com/sync/streams/overview
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# Define sync config to control which data is synced to each user
2-
bucket_definitions:
1+
# See https://docs.powersync.com/sync/advanced/compatibility
2+
config:
3+
edition: 3
4+
5+
# Define Sync Streams to control which data is synced to each user
6+
# Docs: https://docs.powersync.com/sync/streams/overview
7+
streams:
38
global:
4-
data:
9+
# Streams without parameters sync the same data to all users
10+
auto_subscribe: true
11+
queries:
512
- select _id as id, * FROM lists
613
- select _id as id, * from todos

examples/self-hosted/local-basic-supabase/powersync/sync.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
# See Documentation for more information:
44
# https://docs.powersync.com/usage/sync-rules
55

6-
# See https://docs.powersync.com/usage/sync-rules/compatibility for config:edition details
76
config:
8-
edition: 2
7+
edition: 3
98

10-
# Define sync config to control which data is synced to each user
11-
# Docs: https://docs.powersync.com/usage/sync-rules
12-
bucket_definitions:
9+
streams:
1310
global:
14-
# Sync config without parameter queries will sync to all users
15-
data:
16-
# Sync all rows
11+
# Streams without parameters sync the same data to all users
12+
auto_subscribe: true
13+
queries:
1714
- SELECT * FROM todos

examples/self-hosted/local-postgres-node/powersync/sync.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
# See Documentation for more information:
44
# https://docs.powersync.com/usage/sync-rules
55

6-
# See https://docs.powersync.com/usage/sync-rules/compatibility for config:edition details
76
config:
8-
edition: 2
7+
edition: 3
98

10-
# Define sync config to control which data is synced to each user
11-
# Docs: https://docs.powersync.com/usage/sync-rules
12-
bucket_definitions:
9+
streams:
1310
global:
14-
# Sync config without parameter queries will sync to all users
15-
data:
16-
# Sync all rows
11+
# Streams without parameters sync the same data to all users
12+
auto_subscribe: true
13+
queries:
1714
- SELECT * FROM todos

examples/self-hosted/local-postgres/powersync/sync.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
# See Documentation for more information:
44
# https://docs.powersync.com/usage/sync-rules
55

6-
# See https://docs.powersync.com/usage/sync-rules/compatibility for config:edition details
76
config:
8-
edition: 2
7+
edition: 3
98

10-
# Define sync config to control which data is synced to each user
11-
# Docs: https://docs.powersync.com/usage/sync-rules
12-
bucket_definitions:
9+
streams:
1310
global:
14-
# Sync config without parameter queries will sync to all users
15-
data:
16-
# Sync all rows
11+
# Streams without parameters sync the same data to all users
12+
auto_subscribe: true
13+
queries:
1714
- SELECT * FROM todos

0 commit comments

Comments
 (0)