mirror of https://github.com/jackc/pgx.git
Add missing `pgx.Identifier` to `CopyFrom` example
parent
1c452a4a1e
commit
2509082c0e
4
doc.go
4
doc.go
|
@ -206,8 +206,8 @@ implement CopyToSource to avoid buffering the entire data set in memory.
|
|||
{"Jane", "Doe", int32(29)},
|
||||
}
|
||||
|
||||
copyCount, err := conn.CopyTo(
|
||||
"people",
|
||||
copyCount, err := conn.CopyFrom(
|
||||
pgx.Identifier{"people"},
|
||||
[]string{"first_name", "last_name", "age"},
|
||||
pgx.CopyToRows(rows),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue