Skip to content
Open
PrevPrevious commit
NextNext commit
Merge remote-tracking branch 'upstream/main'
  • Loading branch information
@kevinvalk
kevinvalk committed Feb 21, 2024
commit 4a7f0df53b0a9eacd2f95871c46beeec2052c078
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,8 +12,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.0'
go-version: '1.21'
# - run: go install github.com/sqlc-dev/sqlc/cmd/sqlc@main
- uses: sqlc-dev/setup-sqlc@v4
with:
sqlc-version: '1.25.0'
- run: make
- run: make test
- run: sqlc diff
working-directory: examples

- uses: actions/upload-artifact@v3
with:
name: sqlc-gen-python
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
*.wasm
bin
*.wasm

# Devenv
.envrc
.direnv
.devenv*
devenv.local.nix
4 changes: 2 additions & 2 deletions internal/gen.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -1136,7 +1136,7 @@ func HashComment(s string) string{
return "# " + strings.ReplaceAll(s, "\n", "\n# ")
}

func Generate(_ context.Context, req *plugin.CodeGenRequest) (*plugin.CodeGenResponse, error){
func Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error){
// Setup our defaults for our Config struct and parse our config file
defaultModelsFileName := "models.py"
conf := Config{
Expand DownExpand Up@@ -1209,7 +1209,7 @@ func Generate(_ context.Context, req *plugin.CodeGenRequest) (*plugin.CodeGenRes
}

// Finally we send our outputs back to SQLC
resp := plugin.CodeGenResponse{}
resp := plugin.GenerateResponse{}

for filename, code := range output{
resp.Files = append(resp.Files, &plugin.File{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.