Installation¶
Prerequisites¶
- Nim compiler (>= 1.6.0)
- libpg_query (for SQL parsing)
From Source¶
1. Install Nim¶
Follow the official Nim installation guide.
2. Clone the Repository¶
3. Build DecentDb¶
This creates the decentdb executable in the project root.
4. Run Tests¶
Docker (Optional)¶
A Docker image is available for containerized usage:
docker build -t decentdb .
docker run -v $(pwd):/data decentdb exec --db=/data/mydb.ddb --sql="SELECT 1"
System Installation¶
To install system-wide:
Or copy the binary manually:
Verify Installation¶
You should see the help output with available commands.