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
@@ -154,8 +147,6 @@ Download the appropriate pre-built binary for your platform from the official [R
154
147
- Android
155
148
- iOS
156
149
157
-
158
-
159
150
## Loading the Extension
160
151
161
152
```
@@ -166,34 +157,27 @@ Download the appropriate pre-built binary for your platform from the official [R
166
157
SELECT load_extension('./cloudsync');
167
158
```
168
159
160
+
## WASM Version -> React client-side
169
161
170
-
171
-
## WASM Version
172
-
162
+
Make sure to install the extension tagged as **dev** and not **latest**
173
163
```
174
-
npm i sqlite-wasm@dev
164
+
npm i @sqliteai/sqlite-wasm@dev
175
165
```
176
166
177
-
Then follow the instructions available from https://www.npmjs.com/package/@sqliteai/sqlite-wasm
178
-
179
-
167
+
Then follow the instructions from the [README](https://www.npmjs.com/package/@sqliteai/sqlite-wasm)
180
168
181
169
## Swift Package
182
170
183
171
You can [add this repository as a package dependency to your Swift project](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app#Add-a-package-dependency). After adding the package, you'll need to set up SQLite with extension loading by following steps 4 and 5 of [this guide](https://github.com/sqliteai/sqlite-extensions-guide/blob/main/platforms/ios.md#4-set-up-sqlite-with-extension-loading).
184
172
185
-
186
-
187
173
## Android Package
188
174
189
175
Add the [following](https://central.sonatype.com/artifact/ai.sqlite/sync.dev) to your Gradle dependencies:
190
176
191
177
```
192
-
implementation 'ai.sqlite:sync.dev:0.9.92'
178
+
implementation 'ai.sqlite:sync.dev:0.9.96'
193
179
```
194
180
195
-
196
-
197
181
## Expo
198
182
199
183
Install the Expo package:
@@ -202,13 +186,9 @@ Install the Expo package:
202
186
npm install @sqliteai/sqlite-sync-expo-dev
203
187
```
204
188
205
-
Then follow the instructions from:
189
+
Then follow the instructions from the [README](https://www.npmjs.com/package/@sqliteai/sqlite-sync-expo-dev)
Copy file name to clipboardExpand all lines: docs/postgresql/README.md
+52-20Lines changed: 52 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,57 @@ The **SQLite AI offline-sync solution** consists of three main components:
7
7
8
8
Together, these components provide a complete, production-grade **offline-first synchronization stack** for SQLite and PostgreSQL.
9
9
10
+
10
11
# SQLite Sync
11
12
12
13
**SQLite Sync** is a native SQLite extension that must be installed and loaded on all client devices.
13
14
We provide prebuilt binaries for:
14
15
* Desktop and mobile platforms
15
16
* WebAssembly (WASM)
16
-
* Popular frameworks including React, Expo, npm, and more
17
-
18
-
**Note:** The latest version (v0.9.96) is not yet available in the official SQLite Sync repository. Please use our development fork instead:[https://github.com/sqliteai/sqlite-sync-dev](https://github.com/sqliteai/sqlite-sync-dev)
17
+
* Popular package managers and frameworks including React Native, Expo, Node, Swift PM and Android AAR
18
+
19
+
**Note:** The latest version (v0.9.96) is not yet available in the official SQLite Sync repository. Please use our development fork instead: [https://github.com/sqliteai/sqlite-sync-dev](https://github.com/sqliteai/sqlite-sync-dev)
20
+
21
+
<details>
22
+
<summary>List of development fork binaries (v0.9.96)</summary>
* Built on the high-performance **Gin Web Framework**
@@ -69,23 +108,18 @@ Technology Stack
69
108
* Stateless architecture enables horizontal scaling simply by adding nodes
70
109
* Serialized job queue ensures **no job loss**, even after restarts
71
110
72
-
⠀
73
-
74
-
Observability
111
+
### Observability
75
112
76
113
* Metrics dashboard available in [grafana-dashboard.json](grafana-dashboard.json)
77
114
78
115
* Additional logs available via the Fly.io monitoring dashboard
79
116
80
-
117
+
### Demo Deployment
81
118
82
-
Demo Deployment
83
-
84
-
For the current demo, a single CloudSYnc node is deployed in **Europe** on Fly.io.
119
+
For the current demo, a single CloudSync node is deployed in **Europe** on Fly.io.
85
120
If testing from other regions, latency will reflect this single-node deployment. A production deployment would use **geographically distributed nodes with regional routing** for global coverage.
86
121
87
122
88
-
89
123
# Postgres Sync
90
124
91
125
**Postgres Sync** is a native PostgreSQL extension derived from SQLite Sync.
@@ -105,16 +139,14 @@ SQLite does not support schemas, while PostgreSQL does. To bridge this differenc
105
139
106
140
This preserves PostgreSQL-native organization while maintaining SQLite compatibility.
107
141
108
-
109
-
110
142
# Current Limitations
111
143
112
144
The PostgreSQL integration is actively evolving. Current limitations include:
113
145
114
146
***User Impersonation**: The microservice currently applies server changes using the Supabase Admin user. In the next version, changes will be applied under the identity associated with the client’s JWT.
115
147
***Table Creation**: Tables must currently be created manually in PostgreSQL before synchronization. We are implementing automatic translation of SQLite CREATE TABLE statements to PostgreSQL syntax.
116
-
***Row-Level Security**: RLS is fully implemented for SQLite Cloud servers.PostgreSQL RLS integration is in progress and will be included in the final release.
117
-
***Beta Status**: While extensively tested, the PostgreSQL sync stack should currently be considered **beta software**. Please report any issues, we are committed to resolving them quickly.
148
+
***Row-Level Security**: RLS is fully implemented for SQLite Cloud servers.PostgreSQL RLS integration is in progress and will be included in the final release.
149
+
***Beta Status**: While extensively tested, the PostgreSQL sync stack should currently be considered **beta software**. Please report any issues; we are committed to resolving them quickly.
0 commit comments