IndexedDB
NoSQL key-value storage using the browser’s built-in IndexedDB API.
Great for caching, offline data, and simple object storage.
TursoDb
Full SQLite database with SQL queries, transactions, and optional
Turso Cloud sync for multi-device experiences.
Choosing a Database
| Feature | IndexedDB | TursoDb |
|---|---|---|
| Data Model | Key-value / Document | Relational (SQL) |
| Query Language | JavaScript API | SQL |
| Relationships | Manual | Foreign keys |
| Transactions | Yes | Yes |
| Cloud Sync | No | Yes (Turso Cloud) |
| Browser Support | All modern browsers | Requires SharedArrayBuffer |
| Schema | Dynamic | Defined with attributes |