Merge pull request #285 from meowgorithm/master

Add missing `pgx.Identifier` to `CopyFrom` example
pull/261/merge
Jack Christensen 2017-07-04 10:48:14 -05:00 committed by GitHub
commit c5278b8b57
1 changed files with 1 additions and 1 deletions

2
doc.go
View File

@ -225,7 +225,7 @@ implement CopyFromSource to avoid buffering the entire data set in memory.
}
copyCount, err := conn.CopyFrom(
"people",
pgx.Identifier{"people"},
[]string{"first_name", "last_name", "age"},
pgx.CopyFromRows(rows),
)