Skip to content

Commit bf98574

Browse files
committed
Remove outdated comments about executemany usage for :copyfrom
1 parent cabee91 commit bf98574

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/gen.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,6 @@ func buildQueryTree(ctx *pyTmplCtx, i *importer, source string) *pyast.Node {
10601060
)
10611061
f.Returns = typeRefNode("sqlalchemy", "engine", "Result")
10621062
case ":copyfrom":
1063-
// For copyfrom, use executemany for batch inserts
10641063
f.Body = append(f.Body, q.BuildCopyFromBody(false)...)
10651064
f.Returns = poet.Name("int")
10661065
default:
@@ -1157,7 +1156,6 @@ func buildQueryTree(ctx *pyTmplCtx, i *importer, source string) *pyast.Node {
11571156
)
11581157
f.Returns = typeRefNode("sqlalchemy", "engine", "Result")
11591158
case ":copyfrom":
1160-
// For async copyfrom, use executemany for batch inserts
11611159
f.Body = append(f.Body, q.BuildCopyFromBody(true)...)
11621160
f.Returns = poet.Name("int")
11631161
default:

0 commit comments

Comments
 (0)