Extensions
Turso provides several built-in extensions that add specialized SQL functions and virtual tables. Extensions can be loaded at runtime using theload_extension() function.
Loading Extensions
.so/.dll loadable extensions are not supported.
UUID Extension
The UUID extension provides functions for generating and working with UUIDs. UUIDs are stored as 16-byte BLOBs by default.Functions
Examples
Regexp Extension
The regexp extension provides regular expression functions compatible with sqlean-regexp.Functions
Examples
Vector Extension
Turso Extension: Native vector search for similarity search and semantic search applications.
Quick Reference
Example
Time Extension
The time extension is compatible with sqlean-time and provides advanced time manipulation functions.A time value (
t in the tables below) is an opaque 13-byte BLOB, not an integer — this matches sqlean-time byte-for-byte (version(1) + seconds(8) + nanoseconds(4), with seconds counted from year 0001). Any function that produces a time (time_now, time_date, time_add, …) returns a BLOB, and typeof(time_now()) is blob. Use time_to_unix / time_to_nano to get an INTEGER, and the time_fmt_* functions to get TEXT.To store a time value in a STRICT table, use a BLOB column, or convert it first:Key Functions
Duration Constants
Example
Full-Text Search (FTS)
Turso Extension: Full-text search powered by Tantivy, replacing SQLite’s FTS3/FTS4/FTS5.
Quick Reference
CSV Extension
The CSV extension provides a virtual table for reading CSV files.Usage
Percentile Extension
Statistical aggregate functions for computing percentiles.Functions
Examples
Crypto Extension
The crypto extension provides hashing and encoding functions, compatible with sqlean-crypto.Functions
Fuzzy Extension
The fuzzy extension provides string-similarity, distance, and phonetic functions, compatible with sqlean-fuzzy.Functions
IP Address Extension
The ipaddr extension provides functions for working with IPv4 and IPv6 addresses and networks.Functions
generate_series
Thegenerate_series table-valued function generates a sequence of integers.
See Also
- Vector Functions for detailed vector function reference
- FTS Functions for full-text search function reference
- Aggregate Functions for percentile functions used with GROUP BY
- Compatibility for extension support status