mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Cover the new NULLS FIRST/LAST support in CREATE INDEX and in table PRIMARY KEY and UNIQUE constraints: syntax, storage placement defaults, sort elision, the rowid alias and WITHOUT ROWID cases where the clause has no effect, and the warning that stock SQLite cannot open a schema that uses it. List it as a Turso extension on the compatibility page and note that upsert conflict targets still reject it. Also fix wrong claims that predate this feature: the SELECT page said the default NULL placement was NULLS LAST for ASC and NULLS FIRST for DESC (it is the opposite), and the language reference book said NULLS LAST was a parse error and showed COLLATE after ASC/DESC in ordering terms (the parser only accepts it before). Tests: verified every documented example and default against tursodb, including EXPLAIN QUERY PLAN showing sort elision for matching placements and a sorter fallback for mismatched ones. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VpGXUdx42eQrq5ZXEqCRNz