Skip to content

Commit be417b0

Browse files
committed
wip
1 parent 4776d83 commit be417b0

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

sqlite-cloud/connect-cluster.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ SQLite databases in SQLite Cloud are distributed across a cluster of nodes. Each
1010

1111
Click "Connect" in the bottom left-hand corner of your dashboard to get your connection string to use with a SQLite Cloud client library.
1212

13+
14+
---
15+
16+
1317
## Connecting with JavaScript
1418
Here's an example of how you can connect to your cluster using the `@sqlitecloud/drivers` JavaScript client library:
1519

@@ -33,6 +37,8 @@ fetchAlbums().then((albums) => console.log(albums));
3337
// [{ Title: 'For Those About To Rock We Salute You', ... }, ...]
3438
```
3539

40+
---
41+
3642
## Connecting with Python
3743
Install the Python client library:
3844

@@ -59,6 +65,8 @@ conn.close()
5965
# (1, 'For Those About To Rock We Salute You', 1)
6066
```
6167

68+
---
69+
6270
## Next Steps
6371
- [Creating a database](/docs/create-database)
6472
- [Writing data](/docs/write-data)

sqlite-cloud/create-database.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import createDb from '@docs-website-assets/introduction/video/dashboard_create_d
1212

1313
You can import an existing SQLite databases, or create new databases using the SQLite Cloud UI, API, or client libraries.
1414

15+
---
16+
1517
## Uploading an existing SQLite Database
1618
### Via HTTP API
1719
You can upload an existing SQLite database to your cluster using the SQLite Cloud UI or the Weblite API.
@@ -35,6 +37,7 @@ Select the database file you want to upload, and click "Upload Database". The da
3537

3638
<VideoPlayer src={uploadDb} />
3739

40+
---
3841

3942
## Creating a new database
4043
### From the Dashboard

sqlite-cloud/write-data.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import studioInsert from '@docs-website-assets/introduction/video/dashboard_stud
1010

1111
After you've created a database in SQLite Cloud, you can start writing data to it. You can write data to your cluster using the SQLite Cloud UI, API, or client libraries.
1212

13+
---
14+
1315
## Writing data with the SQLite Cloud UI
1416
Navigate to the Studio tab from the left-hand navigation. From here, you can run SQL commands directly on your cluster.
1517
If needed, use the dropdown menus to select the database and table where you want to insert or update data.
@@ -29,6 +31,8 @@ CREATE TABLE sports_cars (sc_id INTEGER PRIMARY KEY, sc_make TEXT NOT NULL, sc_y
2931
INSERT INTO sports_cars (sc_make, sc_year) VALUES ('Ferrari', 2021);
3032
```
3133

34+
---
35+
3236
## Writing data with the Weblite API
3337
You can use the [Weblite API](/docs/weblite) to run SQL commands against your cluster. Here is an example cURL request:
3438

@@ -40,6 +44,8 @@ curl -X 'POST' \
4044
-d '<your-sql-here>'
4145
```
4246

47+
---
48+
4349
## Writing data with client libraries
4450
To write data to your cluster using a client library, use the INSERT INTO SQL command.
4551

0 commit comments

Comments
 (0)