mirror of https://github.com/jackc/pgx.git
Merge pull request #285 from meowgorithm/master
Add missing `pgx.Identifier` to `CopyFrom` examplepull/261/merge
commit
c5278b8b57
2
doc.go
2
doc.go
|
@ -225,7 +225,7 @@ implement CopyFromSource to avoid buffering the entire data set in memory.
|
||||||
}
|
}
|
||||||
|
|
||||||
copyCount, err := conn.CopyFrom(
|
copyCount, err := conn.CopyFrom(
|
||||||
"people",
|
pgx.Identifier{"people"},
|
||||||
[]string{"first_name", "last_name", "age"},
|
[]string{"first_name", "last_name", "age"},
|
||||||
pgx.CopyFromRows(rows),
|
pgx.CopyFromRows(rows),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue