# REPL
The interactive REPL supports both query modes in a single session.
```bash
mq-db repl --db store.mq-db --mode sql
```
```text
mq-db (.help for commands .quit to exit)
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
| `.help` | List available commands |
| `.mode sql` | Switch to SQL query mode |
| `.mode mq` | Switch to mq query mode |
| `.quit` | Exit the REPL |
The initial mode can be set with `--mode sql` or `--mode mq` (default `sql`).
Pass `--attach path.mq-db:alias` (repeatable) to mount other stores at startup, queryable as `alias.blocks`/`alias.documents` — see [ATTACH / DETACH](../reference/sql-ddl.md#attach--detach).