Files
turso/docs/sql-reference
Glauber Costa 2d671ede9b docs: refresh SQL reference for Turso 0.7
Fill the gaps in docs/sql-reference that were still stale after the 0.7
release. Verified every claim against the v0.7.0 source (COMPAT.md,
core/function.rs, the parser AST, and cli/).

- window: row_number() and FILTER (WHERE ...) are supported now
- scalar: add unistr, unistr_quote, turso_version()
- vector: add vector32_sparse; note the experimental sparse vector index
- transactions: document SAVEPOINT / RELEASE / ROLLBACK TO
- add REINDEX statement page
- create-trigger: drop the experimental banner (triggers are stable);
  mark INSTEAD OF as not yet supported
- create-table: reclassify WITHOUT ROWID and GENERATED as experimental
  flags; note locale/custom collations
- create-index: document COLLATE and link REINDEX
- select: correct the window ranking note (row_number available)
- experimental-features: triggers are no longer experimental; add
  generated_columns, without_rowid, mvcc_passive_checkpoint
- extensions: document the crypto, fuzzy, and ipaddr extensions
- pragmas: add data_sync_retry, require_where/i_am_a_dummy,
  mvcc_checkpoint_threshold, mvcc_gc_threshold
- cli: drop --experimental-triggers; add the new experimental flags
2026-07-15 09:16:37 -05:00
..

Turso Reference

This directory contains the Turso reference documentation — both the SQL language reference and the CLI reference. The files are .mdx (Markdown + JSX components) and render as readable markdown on GitHub.

Structure

sql-reference/
├── data-types.mdx              # Storage classes, type affinity, STRICT tables
├── expressions.mdx             # Literals, operators, CAST, CASE, pattern matching
├── experimental-features.mdx   # How to enable experimental features (CLI + all SDKs)
├── statements/                 # DDL and DML statements
│   ├── select.mdx
│   ├── insert.mdx
│   ├── update.mdx
│   ├── ...
│   ├── create-type.mdx         # Turso-specific custom types
│   └── transactions.mdx        # Includes BEGIN CONCURRENT (Turso MVCC)
├── functions/                  # Built-in functions
│   ├── scalar.mdx
│   ├── aggregate.mdx
│   ├── json.mdx
│   ├── vector.mdx              # Turso-specific vector search
│   ├── fts.mdx                 # Turso-specific full-text search
│   └── ...
├── pragmas.mdx                 # All supported PRAGMAs (includes CDC, encryption)
├── extensions.mdx              # UUID, regexp, vector, time, CSV, percentile
├── compatibility.mdx           # SQLite compatibility notes and known differences
└── cli/                        # CLI reference
    ├── getting-started.mdx     # Installation, usage patterns, output modes
    ├── command-line-options.mdx # CLI flags and arguments
    └── shell-commands.mdx      # Dot commands (.tables, .schema, etc.)

Editing guidelines

  • Turso-specific features are marked with <Info> callouts. Keep this convention.
  • Experimental features should link to experimental-features.mdx for enablement instructions.
  • Unsupported SQLite features are documented only in compatibility.mdx, not on individual pages.
  • Every function should have a parameter table with types, a return type, and at least one example.
  • Use sql language tags on all code blocks.
  • Keep pages self-contained — use explicit cross-references instead of "as mentioned above".

Local preview (optional)

These docs are integrated into turso-docs for production rendering with Mintlify. To preview locally, use mdBook (OSS, no Node required):

# Install mdbook if you don't have it
cargo install mdbook

# Preview with live reload at http://localhost:3000
cd docs/sql-reference
./preview.sh

The script converts .mdx files to markdown, transforms Mintlify callouts to blockquotes, and serves via mdBook. The <Info>/<Warning> callouts render as blockquotes — not as styled boxes, but all content is readable.

If you add a new page, update preview.sh to include it in the SUMMARY.