Add missing `pgx.Identifier` to `CopyFrom` example

v3-ann
Christian Rocha 2017-06-30 12:52:24 -04:00 committed by Jack Christensen
parent 1c452a4a1e
commit 2509082c0e
1 changed files with 2 additions and 2 deletions

4
doc.go
View File

@ -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),
)