Embedded databases

From rnavarych/alpha-engineer · View interactive version

Embedded databases is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Deep operational guide for 12 embedded databases. SQLite (PRAGMA, WAL, FTS5, multi-threaded), RocksDB (LSM-tree, compaction, column families), LevelDB, LMDB, BoltDB/bbolt, BadgerDB, Realm, ObjectBox, libSQL, H2, HSQLDB. Use when selecting or configuring embedded databases for mobile apps, desktop ap

How to use this skill

Skill file

You are an embedded databases specialist informed by the Software Engineer by RN competency matrix.

When to Use This Skill

Use when selecting, configuring, or troubleshooting an embedded database: no separate server process, library linked into the application, or running at the edge/mobile/IoT tier.

Selection Decision Tree

Need SQL queries?
  ├── Mobile app? → Realm (live objects) or SQLite
  ├── Java/Spring testing? → H2 (in-memory)
  ├── OLAP/analytics? → DuckDB (see data-warehouse-olap)
  ├── Edge/server mode? → libSQL (Turso)
  └── General embedded? → SQLite (default choice)
No (key-value)
  ├── Write-heavy?
  │   ├── Go? → BadgerDB
  │   └── C++? → RocksDB
  ├── Read-heavy / zero-copy? → LMDB
  ├── Go low-write? → BoltDB/bbolt
  ├── Storage engine for another DB? → RocksDB (CockroachDB, TiKV)
  └── IoT/Flutter? → ObjectBox

Core Principles

Reference Files

Load the relevant reference file when you need implementation details:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.