Skip to content

Files

Latest commit

b121779 · Oct 16, 2024

History

History

sync

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 16, 2024
Oct 16, 2024
Oct 16, 2024
Oct 16, 2024
Oct 16, 2024

Sync

This example demonstrates how to use libSQL with a synced database (local file synced with a remote database).

Install Dependencies

npm i

Running

Execute the example:

TURSO_DATABASE_URL="..." TURSO_AUTH_TOKEN="..." node index.mjs

This will connect to a remote SQLite database, insert some data, and then query the results.