Skip to main content
BoutiqueDB is powered by the Turso Rust database engine (sdk-kit). This unlocks advanced database features directly inside your iOS and macOS applications without managing remote servers.

1. Full-Text Search (Tantivy BM25)

Turso replaces traditional SQLite FTS5 with Tantivy, a state-of-the-art Rust full-text search engine.

Enabling FTS Token & Indexing

Enable the index_method feature token when initializing BoutiqueDB:
FTSSetup.swift

Performing FTS Queries

FTSQuery.swift

2. Vector Search (AI & Embeddings)

Store, index, and query dense and sparse embeddings (e.g., from Apple’s NaturalLanguage framework or OpenAI API) directly inside your local database.

Vector Data Types

BoutiqueDB supports 32-bit floating point vectors via Vector32:
VectorModel.swift
VectorSearch.swift

3. Incremental View Maintenance (IVM Materialized Views)

Turso supports instant, auto-updating materialized views that automatically stay in sync with underlying tables as rows are inserted or mutated.
MaterializedViews.swift

4. Hardware-Accelerated At-Rest Encryption

Protect sensitive user data inside the iOS Keychain using Turso’s zero-overhead AEGIS or AES encryption.
KeyedDB.swift

5. Concurrent Writes (BEGIN CONCURRENT)

Eliminate SQLITE_BUSY errors when writing across multiple background threads or background tasks.
ConcurrentWrites.swift
Opt-In Design: Advanced Turso features are completely opt-in. Standard BoutiqueDB databases behave like lightweight, standard SQLite files unless specific TursoOpenOptions are toggled.