Skip to content

Commit 7c6ac10

Browse files
committed
rewrite batch generated code -- closed bool, remove struct index
1 parent 7488273 commit 7c6ac10

File tree

5 files changed

+234
-200
lines changed

5 files changed

+234
-200
lines changed

examples/batch/postgresql/batch.go

Lines changed: 77 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/codegen/golang/imports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ func (i *importer) batchImports(filename string) fileImports {
445445
})
446446

447447
std["context"] = struct{}{}
448+
std["errors"] = struct{}{}
448449
pkg[ImportSpec{Path: "github.com/jackc/pgx/v4"}] = struct{}{}
449450

450451
return sortedImports(std, pkg)

0 commit comments

Comments
 (0)