Getting started
Getting started
Install the CLI, create or download the database, and run a query.
Option A: Download a release (recommended)
Pre-built binaries and a ready-to-use database are published on GitHub Releases. No build or import step required.
- Open Releases and download the latest:
- gdql (or gdql.exe on Windows) — the CLI binary
- shows.db — SQLite database with show/song data (optional; you can use
gdql initfor a minimal DB instead)
- Put the binary on your PATH (e.g.
~/binor/usr/local/bin). Placeshows.dbin the same directory as the binary, or setGDQL_DB/ use-db path/to/shows.db. - Run:
gdql "SHOWS FROM 1977 LIMIT 5"
Option B: Build from source
Requires Go 1.21+.
git clone https://github.com/gdql/gdql
cd gdql
go mod tidy
go build -o gdql ./cmd/gdql # or: go install ./cmd/...On Windows, build gdql.exe and run as .\gdql.exe.
Create or get the database
- From a release: Download shows.db from
Releases and use it with
-db shows.dborGDQL_DB=shows.db. - Minimal (no data): Run
gdql initto createshows.dbwith schema and sample data. - Full import (setlist.fm): Use your own API key and run the importer (rate limits apply; see setlist.fm import):
export SETLISTFM_API_KEY="your-key" # bash/zsh
# or PowerShell: $env:SETLISTFM_API_KEY = "your-key"
gdql import setlistfmRun a query
gdql "SHOWS FROM 1977 LIMIT 5"
gdql -db shows.db "SHOWS FROM 77-79 WHERE \"Scarlet Begonias\" > \"Fire on the Mountain\""For complex or quoted queries, use a file or stdin:
gdql -f query.gdql
echo 'SHOWS FROM 1977;' | gdql -Next
- Example queries — Ready-to-run GDQL.
- Language reference — Query types, WHERE, operators, formats.
Prev
SETLISTNext
WHERE conditions