Contributions to this project must be accompanied by a Contributor License Agreement.
You or your employer retain the copyright to your contribution: Accepting this agreement gives us permission to use and redistribute your contributions as part of the project.
Pull requests must pass all CI/CD measures and follow the code specification.
The repository consists of a detailed README, examples, and command-line program.
The command-line interface program (cmd) consists of 4 packages.
| Package | Description |
|---|---|
cmd /cmd |
Contains command-line interface program logic implemented with cobra. |
config /cmd/config |
Contains loaders (e.g., .yml) used to configure the program's settings. |
query /cmd/query |
Contains dbgo query command logic. |
gen /cmd/gen |
Contains dbgo gen command logic. |
dbgo uses golangci-lint to statically analyze code.
You can install golangci-lint with go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 and run it using golangci-lint run.
- you must add a
difftool in your PATH when you receive adifferror: There is adifftool located in theGitbin. - Use
golangci-lint run --disable-all --no-config -Egofmt --fixwhen you receiveFile is not ... with -....
You can read the roadmap here.