What problem does it solve?
SQLDown solves the challenge of querying and transforming large collections of Markdown documents by converting YAML frontmatter and H2 sections into a dynamic SQLite schema, while preserving the original content for round-tripping back to Markdown.
Core Features & Use Cases
- Import: Load Markdown files into SQLite with a dynamic schema based on frontmatter and sections.
- Query: Use standard SQL via sqlite3 to filter, join, and aggregate across documents.
- Dump: Reconstruct Markdown files from database rows, preserving paths and frontmatter for a lossless round-trip.
Quick Start
Run the following commands to import, query, and export:
- Import: sqldown load PATH
- Query: sqlite3 sqldown.db "SELECT * FROM docs LIMIT 5"
- Dump: sqldown dump -d sqldown.db -o restored