• API reference
  • Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • API reference
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • React Native
    • Schema
    • Local auth
    • Queries
    • Sync
    • Relay
    • Privacy
    • Indexes
    • Time travel
    • Owners
    • Protocol
    • FAQ
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Type
    • Task
    • Conventions
    • Testing
    • Assert
  • Other

    • Comparison
    • Supply chain
    • Showcase
    • Upgrading
    • Changelog

API reference › @evolu/common › local‑first/Schema › evoluSchemaToSqliteSchema

function evoluSchemaToSqliteSchema<
  S extends Readonly<
    Record<string, Readonly<Record<string, AnyStandardSchemaV1>>>
  >,
>(
  schema: ValidateSchema<S> extends never ? S : ValidateSchema<S>,
  indexesConfig?: IndexesConfig,
): SqliteSchema;

Defined in: packages/common/src/local-first/Schema.ts:904

Derives SqliteSchema tables and indexes from an EvoluSchema.

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server