Getting Started
Prerequisites
- Go 1.21+ (for building from source)
- PostgreSQL — a real database to introspect
- Ollama (recommended for local LLM) — or an OpenAI API key
Walkthrough
1. Start the proxy
Point GenDB at your real database and start the proxy:
2. Connect through the proxy
3. Generate data and toggle routing
From any connection through the proxy, send GENDB SQL commands:
-- Generate synthetic data for a table
CALL gendb.generate_data(include => 'users', rows => 500);
-- Route queries for "users" to the generated data
CALL gendb.return_generated(include => 'users');
-- Switch back to real data
CALL gendb.return_actual(include => 'users');
Next Steps
- CLI Reference — all commands and flags
- GENDB SQL Reference — the full DSL
- Configuration — customize
gendb.yaml - LLM Setup — configure Ollama, OpenAI, or custom providers
- Data Generators — available generators and how they're selected