Skip to main content

Extensions

Turso provides several built-in extensions that add specialized SQL functions and virtual tables. Extensions can be loaded at runtime using the load_extension() function.

Loading Extensions

Turso supports loading Turso-native extensions. SQLite .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.
The vector extension provides functions for creating, storing, and searching vector embeddings. Vectors are stored as BLOBs. For the complete function reference, see Vector Functions.

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.
Turso provides full-text search through the FTS index method. For the complete reference including query syntax, tokenizers, and scoring, see FTS Functions.

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

The generate_series table-valued function generates a sequence of integers.

See Also