Buildspace
Database

Overview

Managed Turso databases for your Buildspace apps.

Every Buildspace app gets a managed Turso (libSQL) database — one per environment. Databases are provisioned automatically when you create an app and connection credentials are injected into your deployed service as environment variables.

How it works

  1. Provisioning — When you create an app in Creator Studio, a Turso database is created for each environment (development and production).
  2. Credentials — Two env vars are injected into your Railway service automatically:
    • BUILDSPACE_DB_URL — libSQL connection URL
    • BUILDSPACE_DB_TOKEN — auth token (JWT)
  3. Connection — Your app connects directly to Turso using @libsql/client. No SDK wrapper needed — you own the connection and schema entirely.
  4. Monitoring — Usage stats (rows read, rows written, storage) are synced hourly and visible in the Data tab of Creator Studio.

Architecture

Each app + environment pair gets its own isolated Turso database. There is no shared schema between apps — you define and migrate your own tables.

ConceptDetail
Database engineTurso (libSQL, SQLite-compatible)
IsolationOne database per app per environment
Environmentsdev and prod (separate databases, separate tokens)
ORMDrizzle ORM recommended, any libSQL-compatible client works
Schema ownershipYou define and manage your own tables and migrations
CredentialsInjected as BUILDSPACE_DB_URL and BUILDSPACE_DB_TOKEN

On this page