Commit Graph

5 Commits

Author SHA1 Message Date
Hatem Jaber
d0a3a93c6a cli/sync_server: address review feedback on --sync-dir
Wrap the open-database map in an OpenHandles type whose only insertion
path enforces the cap, so nothing can push it past --sync-max-databases.

Restrict database names to lowercase so that one name is one file and
one handle on case-insensitive filesystems too. Drop the Windows
reserved device name list: opening such a name simply fails.

Open directory databases with the caller's options as given instead of
the CLI shell options, which turn on extension loading.

Keep the server error message free of CLI flag names, tighten the help
text for --sync-max-databases, use TempDir in the unit tests, and trim
the docs and README to the essentials. Note that VACUUM INTO can write
outside the served directory alongside the existing ATTACH caveat.

Tests: cargo test -p turso_cli sync_server; cargo clippy --workspace
--all-features --all-targets; cargo check -p turso --features sync --tests

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y1uLrzBq9CGq6yUDpiqHnJ
2026-09-10 07:42:14 -04:00
Hatem Jaber
82f9477d1b docs: document --sync-dir multi-database sync serving
Cover the URL shape, on-disk layout, database-name rules, and the current
limitations: server-wide request serialization, inherited WAL retention, an
unbounded handle cache, and no authentication
2026-09-10 07:40:59 -04:00
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
Avinash Sajjanshetty
fed0c30814 vacuum: expose experimental plain vacuum 2026-04-27 21:43:39 +05:30
Glauber Costa
923542e6de docs: add CLI reference (getting started, options, shell commands)
Add documentation for the tursodb CLI as a new top-level section in the
existing reference book. Covers command-line flags, all dot commands with
tested examples, output modes, and server modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 05:40:52 -08:00