Skip to main content
Astro banner

Prerequisites

To get the most out of this guide, you’ll need to:
1

Install the libSQL SDK

Begin by installing the @libsql/client dependency in your project:
2

Configure database credentials

Get the database URL:
Get the database authentication token:
Assign credentials to the environment variables inside .env.
3

Configure libSQL client

src/turso.ts
Astro will soon introduce a new ENV API. Take a look.
4

Execute SQL

Examples

Blog

See the full source code