You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration-guides/flutterflow-+-powersync.mdx
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,9 +99,14 @@ This guide walks you through building a basic item management app from scratch a
99
99
- SELECT * FROM lists
100
100
```
101
101
102
-
For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
102
+
3. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
103
+
4. In the top right, click **"Deploy sync rules"** and select your instance.
104
+
5. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
103
105
104
-
If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
106
+
<Tip>
107
+
- For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
108
+
- If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
[Sync Rules](/usage/sync-rules) allow developers to control which data gets synced to which user devices using a SQL-like syntax in a YAML file. For the demo app, we're going to specify that each user can only see their own to-do lists and list items.
124
124
125
-
1\. To update your sync rules, open the `sync-rules.yaml` file.
125
+
1. To update your sync rules, open the `sync-rules.yaml` file.
126
126
127
127
<Frame>
128
128
<imgsrc="/images/integration-5.png" />
129
129
</Frame>
130
130
131
-
1. Replace the `sync-rules.yaml` file's contents with the below:
131
+
2. Replace the `sync-rules.yaml` file's contents with the below:
132
132
133
133
```yaml
134
134
bucket_definitions:
@@ -140,16 +140,14 @@ bucket_definitions:
140
140
- select * from todos where list_id = bucket.list_id
141
141
```
142
142
143
-
1. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
144
-
2. In the top right, click **"Deploy sync rules"** and select your Instance
3. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
149
-
150
-
For additional information on PowerSync's sync rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
143
+
3. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
144
+
4. In the top right, click **"Deploy sync rules"** and select your instance.
145
+
5. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
151
146
152
-
If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
147
+
<Tip>
148
+
- For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
149
+
- If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
0 commit comments