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/architecture.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
@@ -8,7 +8,7 @@ slug: architecture
8
8
9
9
10
10
## Architecture
11
-
SQLite Cloud uses the [Raft](https://raft.github.io) consensus algorithm to distribute your data changes across a cluster of computing systems, ensuring that each node in the cluster agrees upon the same series of state transitions. Raft implements consensus with a leader approach.
11
+
SQLite Cloud uses the <ahref="https://raft.github.io"target="_blank">Raft</a> consensus algorithm to distribute your data changes across a cluster of computing systems, ensuring that each node in the cluster agrees upon the same series of state transitions. Raft implements consensus with a leader approach.
12
12
13
13
SQLite Cloud is written in ANSI C and GO, and it works on most POSIX systems (Linux, *BSD, Mac OS X) and Windows.
Copy file name to clipboardExpand all lines: sqlite-cloud/multi-code-example.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ import MultiCode from '@commons-components/Code/MultiCode.astro';
10
10
11
11
In this examples, we will show how to use the `MultiCode` component:
12
12
13
-
-[Here](https://github.com/sqlitecloud/website/blob/docs-stage/commons/components/Code/MultiCode.astro) the definition of the `MultiCode` component.
14
-
-[Here](https://github.com/sqlitecloud/website/blob/docs-stage/commons/components/Code/Code.astro) the definition of the `Code` component that is used inside the `MultiCode` component.
13
+
-<ahref="https://github.com/sqlitecloud/website/blob/docs-stage/commons/components/Code/MultiCode.astro"target="_blank">Here</a> the definition of the `MultiCode` component.
14
+
-<ahref="https://github.com/sqlitecloud/website/blob/docs-stage/commons/components/Code/Code.astro"target="_blank">Here</a> the definition of the `Code` component that is used inside the `MultiCode` component.
15
15
16
16
17
17
In these two files there are the TypeScript definitions usefull to know all the avaible properties.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/_vector.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
@@ -100,7 +100,7 @@ insert into vec_items_slim
100
100
```
101
101
102
102
## Performance considerations
103
-
Free SQLite Cloud plans are not optimized for large-scale vector workloads. To speak to the team about upgrading your plan, [please reach out](https://www.sqlitecloud.io/support).
103
+
Free SQLite Cloud plans are not optimized for large-scale vector workloads. To speak to the team about upgrading your plan, <ahref="https://www.sqlitecloud.io/support"target="_blank">please reach out</a>.
104
104
105
105
## Next Steps
106
106
Combined with [edge functions](/docs/edge-functions), SQLite Cloud's vector search capabilities make it a great choice for serverless RAG applications.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/access-tokens.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ slug: access-tokens
8
8
9
9
Access Tokens let backend systems securely grant users, devices, tenants, etc. access to SQLite Cloud database and services (SQLite Sync, Weblite, etc.). These endpoints enable full token lifecycle management: creation, inspection, validation, update, and revocation. All endpoints require authentication. Use an **API Key** or an **Access Token** via the `Authorization` header.
10
10
11
-
The API Documentation for the Access Tokens API can be found in the **Weblite** section in the [Dashboard](https://dashboard.sqlitecloud.io).
11
+
The API Documentation for the Access Tokens API can be found in the **Weblite** section in the <ahref="https://dashboard.sqlitecloud.io"target="_blank">Dashboard</a>.
12
12
13
13
---
14
14
15
15
## Example Using SQLite Cloud Access Tokens with Google Login
16
16
17
-
In the repository on GitHub [sqlitecloud/examples](https://github.com/sqlitecloud/examples/tree/main/access-tokens-and-social-login), we created a simple app to demonstrate how to generate and use Access Tokens.
17
+
In the repository on GitHub <ahref="https://github.com/sqlitecloud/examples/tree/main/access-tokens-and-social-login"target="_blank">sqlitecloud/examples</a>, we created a simple app to demonstrate how to generate and use Access Tokens.
18
18
19
19
We’ll log in with Google, grab a token, and use it to interact with SQLite Cloud Weblite APIs. Here’s how it works.
20
20
@@ -78,4 +78,4 @@ const res = await fetch("https://<your-project-url>/v2/weblite/sql", {
78
78
...
79
79
```
80
80
81
-
The result depends on the [Row Level Security](https://docs.sqlitecloud.io/docs/rls) policies you enabled for the tables.
81
+
The result depends on the [Row Level Security](rls) policies you enabled for the tables.
Backups provide a robust solution for mitigating data loss and resolving data corruption issues. Backups are available for databases in all [Dev, Pro and Startup](https://www.sqlitecloud.io/pricing) projects.
13
+
Backups provide a robust solution for mitigating data loss and resolving data corruption issues. Backups are available for databases in all <ahref="https://www.sqlitecloud.io/pricing"target="_blank">Dev, Pro and Startup</a> projects.
14
14
15
15
SQLite Cloud creates a full snapshot backup of your data once a day, and stores incremental changes once per second, on commodity object storage.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/edge-functions.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Edge functions let you define custom logic to run on the same nodes as your data
14
14
15
15
You can write edge functions directly in the SQLite Cloud dashboard using JavaScript, TypeScript, or SQL. Importing modules is not currently supported.
16
16
17
-
Edge functions can be called remotely over HTTP or Websockets via API, or triggered by database events via SQLite Cloud [Webhooks](https://docs.sqlitecloud.io/docs/webhooks). Each function runs in an isolated environment using the Bun runtime.
17
+
Edge functions can be called remotely over HTTP or Websockets via API, or triggered by database events via SQLite Cloud <ahref="https://docs.sqlitecloud.io/docs/webhooks"target="_blank">Webhooks</a>. Each function runs in an isolated environment using the Bun runtime.
18
18
19
19
Turning on linearizable reads ensures strong consistency, but may introduce some latency. When eventual consistency is sufficient, we recommend leaving linearizable reads off.
20
20
@@ -81,7 +81,7 @@ return {
81
81
}
82
82
```
83
83
84
-
Select the database you would like to access from the "Database" dropdown, or select the database you want to use in your SQL query with the [USE command](https://docs.sqlitecloud.io/docs/database-commands).
84
+
Select the database you would like to access from the "Database" dropdown, or select the database you want to use in your SQL query with the <ahref="https://docs.sqlitecloud.io/docs/database-commands"target="_blank">USE command</a>.
85
85
86
86
```js
87
87
constcustomers=awaitconnection.sql`USE DATABASE chinook.sqlite; SELECT * FROM customers;`;
@@ -94,10 +94,10 @@ return {
94
94
Environment variables can be accessed and stored with the ENV command. ENV variables are stored in the server settings file and are project-specific.
95
95
Use the following commands to set and read values in your server settings file:
-**[RTree](https://www.sqlite.org/rtree.html)**: R-Tree index for storing and querying spatial data.
20
-
-**[Geopoly](https://www.sqlite.org/geopoly.html)**: A set of functions for working with geospatial data. For a complete guide, see the [comprehensive tutorial here](tutorial-geopoly).
16
+
-**<ahref="https://www.sqlite.org/fts5.html"target="_blank">Full-text Search 5</a>**: Full-text search engine that allows you to search for text in a database.
17
+
-**<ahref="https://www.sqlite.org/json1.html"target="_blank">JSON1</a>**: Allows you to easily store, query, and manipulate JSON data.
-**<ahref="https://www.sqlite.org/rtree.html"target="_blank">RTree</a>**: R-Tree index for storing and querying spatial data.
20
+
-**<ahref="https://www.sqlite.org/geopoly.html"target="_blank">Geopoly</a>**: A set of functions for working with geospatial data. For a complete guide, see the [comprehensive tutorial here](tutorial-geopoly).
21
21
22
-
In the future, we plan to allow users to install their own extensions. If you have a specific extension you would like to use, please let us know by [adding to this issue](https://github.com/sqlitecloud/docs/issues/34).
22
+
In the future, we plan to allow users to install their own extensions. If you have a specific extension you would like to use, please let us know by <ahref="https://github.com/sqlitecloud/docs/issues/34"target="_blank">adding to this issue</a>.
OffSync is a powerful SQLite Cloud feature that enables true **local-first** data synchronization for your applications. Powered by the [SQLite Sync](https://github.com/sqliteai/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.
16
+
OffSync is a powerful SQLite Cloud feature that enables true **local-first** data synchronization for your applications. Powered by the <ahref="https://github.com/sqliteai/sqlite-sync"target="_blank">SQLite Sync</a> 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.
17
17
18
18
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), OffSync ensures that changes made offline are merged automatically and without conflicts when the device reconnects.
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/rls.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Row-Level Security (RLS) allows you to define fine-grained access control polici
18
18
RLS rules only affect users who are authenticated using [Access Tokens](/docs/access-tokens). Admins, APIKEYs, or other non-token users are not restricted by RLS.
19
19
</Callout>
20
20
21
-
RLS is a powerful feature for building secure, multi-tenant applications. When combined with [SQLite Sync](https://github.com/sqliteai/sqlite-sync), it enables you to create robust **local-first apps** where user data is stored on the device for offline availability and superior performance.
21
+
RLS is a powerful feature for building secure, multi-tenant applications. When combined with <ahref="https://github.com/sqliteai/sqlite-sync"target="_blank">SQLite Sync</a>, it enables you to create robust **local-first apps** where user data is stored on the device for offline availability and superior performance.
22
22
23
23
This architecture simplifies development by allowing your application to interact with a local database while SQLite Cloud [OffSync](/docs/offsync) transparently handles the synchronization with a central database. RLS ensures that each user's data is securely isolated during this process. The centralized database can then be used for powerful business analytics and reporting across all tenants, without compromising individual data privacy.
24
24
@@ -73,7 +73,7 @@ To help you create dynamic RLS policies, SQLite Cloud provides two functions to
73
73
74
74
These functions are particularly useful for creating policies that are based on user attributes.
75
75
76
-
For more information on Access Tokens, see the [Access Tokens documentation](/docs/access-tokens). The API Documentation for the Access Tokens API can be found in the Weblite section in the [Dashboard](https://dashboard.sqlitecloud.io/).
76
+
For more information on Access Tokens, see the [Access Tokens documentation](/docs/access-tokens). The API Documentation for the Access Tokens API can be found in the Weblite section in the <ahref="https://dashboard.sqlitecloud.io/"target="_blank">Dashboard</a>.
77
77
78
78
### OLD and NEW References
79
79
@@ -260,7 +260,7 @@ This policy uses the `OLD` reference to check the value of the `status` column *
260
260
261
261
## Advanced: RLS and SQLite Sync
262
262
263
-
When using RLS in conjunction with [SQLite Sync](https://github.com/sqliteai/sqlite-sync), it's important to understand how they interact. The Sync protocol applies changes on a column-by-column basis, which can affect how `INSERT` and `UPDATE` policies are evaluated.
263
+
When using RLS in conjunction with <ahref="https://github.com/sqliteai/sqlite-sync"target="_blank">SQLite Sync</a>, it's important to understand how they interact. The Sync protocol applies changes on a column-by-column basis, which can affect how `INSERT` and `UPDATE` policies are evaluated.
264
264
265
265
To accommodate this, SQLite Cloud offers two modes for handling RLS during sync operations, configurable via the `rls_mode` server setting using the SQLite Cloud builtin command `SET KEY rls_mode TO <value>`.
0 commit comments