2 Commits

Author SHA1 Message Date
Glauber Costa
698bf89663 docs/sql-reference: document new functions and PG aliases
Adds reference entries for the new scalar functions and PostgreSQL-
compatible aliases:

  * math.mdx:    gcd(A, B), lcm(A, B)
  * array.mdx:   array_upper, and the now-honored dimension argument
                 to array_length
  * scalar.mdx:  repeat(X, N), lpad/rpad (2- and 3-arg forms),
                 reverse / string_reverse, plus the PG-compatible
                 aliases chr, strpos, btrim, char_length, character_length

Each new function gets a table entry in the overview and a dedicated
detail section with semantics (NULL propagation, overflow, character-
vs-byte counts, sign handling) and runnable examples. Aliases are
folded into the canonical function's section rather than duplicated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-14 15:32:50 -05:00
Glauber Costa
b3eeabf38d add SQL language reference documentation
Comprehensive SQL reference at docs/sql-reference/ covering all
supported statements, functions, expressions, PRAGMAs, and
extensions. Includes mdBook-based local preview (./preview.sh).

Turso-specific features (CDC, materialized views, custom types,
MVCC, vector search, FTS, encryption) are integrated inline with
callouts. Experimental features link to a dedicated page with
enablement instructions for the CLI and all SDKs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 14:05:32 -06:00