Back to Turso

SQLite Compatibility

docs/sql-reference/compatibility.mdx

0.7.0-mikael1.9 KB
Original Source

SQLite Compatibility

The authoritative compatibility reference is maintained at COMPAT.md in the repository root. It tracks the support status for every SQL statement, expression, function, PRAGMA, C API function, VDBE opcode, and extension.

Refer to that document for the current state of compatibility. It is updated alongside code changes to stay accurate.

Turso-Specific Extensions

These features extend Turso beyond SQLite compatibility:

FeatureDescription
CREATE TYPEUser-defined types for STRICT tables
CREATE MATERIALIZED VIEWLive materialized views with incremental maintenance
BEGIN CONCURRENTOptimistic concurrent write transactions (MVCC)
Vector functionsVector storage, distance calculations, similarity search
Full-text searchTantivy-powered FTS with BM25 scoring
CDCChange Data Capture via PRAGMA
EncryptionAt-rest database encryption
Custom index methodsCREATE INDEX ... USING for FTS and custom access methods
stddev()Standard deviation aggregate function
DEFAULT in VALUESSQL-standard DEFAULT keyword in INSERT VALUES lists

See Also