2
0

Add missing pgx.Identifier to CopyFrom example

This commit is contained in:
Christian Rocha
2017-06-30 12:52:24 -04:00
committed by Jack Christensen
parent 1c452a4a1e
commit 2509082c0e
+2 -2
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),
)