Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

REPL

The interactive REPL supports both query modes in a single session.

mq-db repl --db store.mq-db --mode sql
mq-db  (.help for commands  .quit to exit)
mode: sql  (.mode mq | .mode sql)

sql> SELECT content FROM blocks WHERE block_type = 'heading' LIMIT 3;
┌──────────────────┐
│ content          │
├──────────────────┤
│ Overview         │
│ Architecture     │
│ Query Engine     │
└──────────────────┘
(3 rows)

sql> .mode mq
→ mq mode
mq> .h2
## Architecture
## Query Engine

Dot commands

CommandDescription
.helpList available commands
.mode sqlSwitch to SQL query mode
.mode mqSwitch to mq query mode
.quitExit the REPL

The initial mode can be set with --mode sql or --mode mq (default sql).