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: sqlite-cloud/connect-cluster.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,7 @@ slug: connect-cluster
8
8
9
9
SQLite databases in SQLite Cloud are distributed across a cluster of nodes. Each cluster comes with a multi-region load balancer that routes traffic to the nearest appropriate node.
10
10
11
-
To retrieve your project connection string, click the "Connect" button at the bottom of the left sidebar navigation.
12
-
13
-
Copy the connection string and use it with a client library to connect to your cluster.
11
+
Click "Connect" in the bottom left-hand corner of your dashboard to get your connection string to use with a SQLite Cloud client library.
14
12
15
13
## Connecting with JavaScript
16
14
Here's an example of how you can connect to your cluster using the `@sqlitecloud/drivers` JavaScript client library:
Copy file name to clipboardExpand all lines: sqlite-cloud/create-database.mdx
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ status: publish
6
6
slug: create-database
7
7
---
8
8
9
-
SQLite Cloud allows you to import existing SQLite Databases, or create a new database in SQLite Cloud by importing an existing SQLite database, or using the SQLite Cloud UI, API, or client libraries.
9
+
You can import an existing SQLite databases, or create new databases using the SQLite Cloud UI, API, or client libraries.
10
10
11
11
## Uploading an existing SQLite Database
12
12
### Via HTTP API
@@ -39,7 +39,7 @@ To create a new database from the SQLite Cloud UI, navigate to the Databases tab
39
39
The default encoding is set to UTF-8, and the default page size is 4096KB.
40
40
41
41
### From the API
42
-
To create a new database or upload an existing database via [Weblite](#), our REST API, you can make a request with the following parameters:
42
+
To create a new database or upload an existing database via [Weblite](/docs/weblite), our REST API, you can make a request with the following parameters:
Copy file name to clipboardExpand all lines: sqlite-cloud/index.mdx
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,20 @@ status: publish
10
10
11
11
It has been designed from the ground up to ensure strong consistency across all nodes in a cluster while simultaneously managing the technical aspects of scaling, security, and data distribution. This ensures that you can focus on your core tasks while relying on SQLite Cloud to handle the complexities of managing your databases.
12
12
13
+
SQLite Cloud is built on the open source SQLite engine, ensuring complete feature parity. You get all of SQLite's core strengths: ACID compliance, support for complex SQL operations, and compatibility with the rich SQLite extension ecosystem.
14
+
13
15
You can access SQLite Cloud from the most popular programming languages or its REST API.
14
16
17
+
Like SQLite, each database in SQLite Cloud is a separate file, giving you flexible deployment options:
18
+
19
+
* Create separate databases for each customer in a multi-tenant application
20
+
* Share a single database among multiple users with built-in access controls
21
+
* Mix both approaches based on your application's needs
22
+
15
23
### Features
16
24
SQLite Cloud provides a comprehensive suite of tools for building realtime, local-first, edge AI applications.
17
-
***Local Sync**: Read and write to your local SQLite database, then synchronize with the cloud and across devices in the background. (**alpha**)
18
-
***Offline-first**: Automatically resolve conflicts between devices and the cloud with CRDTs. (**alpha**)
19
-
***[Webhooks](/docs/webhooks)**: Send changes in your database to an external webhook or use to trigger actions.
20
-
***[Edge Functions](/docs/edge-functions)**: Run serverless functions next to your database. Trigger via HTTP endpoint or on database operations (INSERT, UPDATE, DELETE).
25
+
***[Webhooks](/docs/webhooks)**: Trigger edge functions or send change payloads via HTTP, Websockets, or on database events like INSERT, UPDATE, and DELETE.
26
+
***[Edge Functions](/docs/edge-functions)**: Run serverless functions on the same nodes that store your data for lightning-fast data access.
21
27
***[Pub/Sub](/docs/pub-sub)**: Subscribe to changes in your database to replicate data, power notifications, and build multiplayer experiences.
22
-
***[Weblite](/docs/weblite)**: Autogenerated REST APIs to interact with your database and edge functions.
28
+
***[Weblite](/docs/weblite)**: Autogenerated REST APIs to interact with the SQLite Cloud platform.
23
29
***[Query Analyzer](/docs/analyzer)**: Receive optimization recommendations for your queries to improve performance.
24
-
***Multi-region Load Balancer**: Connect from anywhere and SQLite Cloud automatically routes traffic to the nearest node for optimal performance.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/edge-functions.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ status: publish
6
6
slug: edge-functions
7
7
---
8
8
9
-
Edge Functions are server-side functions that run directly within your database environment. Edge functions in SQLite Cloud ensure maximum performance and minimal latency by running functions on the same server as your database.
9
+
Edge functions let you define custom logic to run on the same nodes as your database files for ultra-fast performance.
10
10
11
11
You can write edge functions directly in the SQLite Cloud dashboard using JavaScript, TypeScript, or SQL. Importing modules is not currently supported.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/webhooks.mdx
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,10 @@ status: publish
6
6
slug: webhooks
7
7
---
8
8
9
-
Utilize the Webhooks panel to effortlessly establish real-time notifications for write operations within your SQLite database. In this instance, we'll seamlessly notify a webhook.site service each time a write operation occurs within the albums table of the chinook.sqlite database.
9
+
Webhooks in SQLite Cloud are a powerful way to receive and send event-based notifications.
With change data webhooks, you can send notifications from SQLite Cloud to any HTTP endpoint when an insert, update or delete operation occurs on a specified database and/or table. The webhook payload includes the database name, table name, and the row data that was changed.
12
13
13
-
Upon creation, you'll receive a secret value that ensures the authenticity of each notification request.
0 commit comments