Use sqlc: docker pull kjconroy/sqlc MSYS_NO_PATHCONV=1 docker run --rm -v $(pwd):/src -w /src kjconroy/sqlc generate