GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.sqlitecloud.io — CloudSync | SQLite Cloud Docs CloudSyncCloudSync is a powerful SQLite Cloud feature that enables true local-first data synchronization for your applications. Powered by the SQLite Sync extension, it allows you to build robust, offline-capable applications where data is stored and processed on edge devices and seamlessly synchronized with a central SQLite Cloud database. This architecture is ideal for mobile apps, IoT devices, and any application requiring high availability and low latency, even with intermittent network connectivity. By leveraging Conflict-free Replicated Data Types (CRDTs), CloudSync ensures that changes made offline are merged automatically and without conflicts when the device reconnects. How It WorksCloudSync extends standard SQLite tables with built-in support for offline work and automatic synchronization. This allows multiple devices to operate independently and then seamlessly merge their changes.
When combined with Row-Level Security (RLS), CloudSync allows you to build secure, multi-tenant applications where each user’s data is safely isolated, both on the edge and in the cloud. Configuring CloudSyncYou can enable and manage CloudSync for your databases directly from the SQLite Cloud dashboard. Select a database from the left panel — the list shows all databases in your project along with their CloudSync status. The right panel has four tabs: Database Setup, Client Integration, Devices, and Metrics. If you prefer automation, you can also register databases, inspect tables, and enable CloudSync programmatically with the Management API. That page documents the workspace-scoped management endpoints used with a Enabling and Disabling CloudSyncWhen CloudSync is not yet active for a database, the right panel shows a brief explanation and an Enable CloudSync button. Clicking it opens a confirmation dialog; after confirming, the database is registered with the sync service and the tabbed view appears. To disable CloudSync, click the Disable CloudSync button in the top-right corner of the panel and confirm in the dialog that appears. Database Setup TabThe Database Setup tab handles the server-side configuration of CloudSync. This is where you verify the database connection and choose which tables to synchronize. Connection StatusA connection card at the top of the tab shows whether the sync service can reach your database. When healthy, it displays the Host, Port, and Database name alongside a green Connected indicator. If the connection cannot be established, a warning appears with an action button to resolve it:
If the CloudSync extension is not detected on the database, a warning is shown with a link to the installation documentation. Select Tables to Enable CloudSyncBelow the connection card, you can choose which tables to synchronize. This section is only shown when the connection is healthy. A counter shows how many tables are currently selected (e.g., 1 of 1 selected).
Once you have made your selection, click Deploy Changes (bottom-right of the panel) to apply. From that point on, any writes to those tables via the SQLite Sync extension will be automatically synchronized. Matching Schemas and Tables For CloudSync to work correctly, the tables you enable for synchronization—and their schemas—must be identical in both your local SQLite database and your SQLite Cloud database. Client Integration TabThe Client Integration tab contains everything you need to connect your local application to the cloud database. This includes your Database ID, how authentication works, and how to handle push notifications. Workspace-specific instructions The options available in this tab depend on your workspace type. SQLite Cloud workspaces use API keys or access tokens. Supabase self-hosted and PostgreSQL workspaces use database credentials or JWT-based authentication. The relevant options are displayed automatically based on your project. Database IDA unique identifier for your CloudSync-enabled database. Pass this ID to the SQLite Sync extension in your client application to initialize the sync connection:
Use the Copy button to copy the ID to your clipboard. Row Level Security (RLS)RLS controls which data each user can access. Instead of giving clients full access to the database, it ensures each user can only read or modify their own data. Choose one of two modes:
Your selection here determines how the Authentication section below is configured. AuthenticationThe authentication method shown depends on your workspace type and RLS mode selection. SQLite Cloud workspaces — RLS bypassed (API Key) Select a User and the corresponding API Key from the dropdowns. The code snippet below updates automatically:
SQLite Cloud workspaces — RLS enforced (Access Token) Authentication is done via a user-scoped access token. Two action cards guide you through the setup:
Once you have a token, pass it to your client:
Supabase self-hosted / PostgreSQL workspaces — RLS bypassed (Username & Password) Connects using your database credentials, giving full access to all synced tables and bypassing Row Level Security. Refer to the quickstart guide shown at the top of the tab for provider-specific instructions. Supabase self-hosted / PostgreSQL workspaces — RLS enforced (JWT) To verify users and apply access rules, you must configure a JWT authentication provider. A status card shows the current configuration:
Refer to the quickstart guide shown at the top of the tab for provider-specific integration instructions. Push NotificationsReal-time push notifications are active out of the box when using the sqlite-sync-react-native library with push mode enabled. A status card shows the current Expo Security configuration:
Use Configure to add a token, Edit to update an existing one, or Delete to remove it. Devices TabThe Devices tab lists all devices currently synchronized with the selected database. For each device you can see its Site ID and the timestamp of its Last Sync. Use the Remove button to deregister a device. Metrics TabThe Metrics tab provides visibility into usage for your CloudSync-enabled database over time:
The usage summary at the top of the left panel shows the total data transferred for the current billing period. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |