Add missing pgx.Identifier to CopyFrom example
This commit is contained in:
committed by
Jack Christensen
parent
1c452a4a1e
commit
2509082c0e
@@ -206,8 +206,8 @@ implement CopyToSource to avoid buffering the entire data set in memory.
|
|||||||
{"Jane", "Doe", int32(29)},
|
{"Jane", "Doe", int32(29)},
|
||||||
}
|
}
|
||||||
|
|
||||||
copyCount, err := conn.CopyTo(
|
copyCount, err := conn.CopyFrom(
|
||||||
"people",
|
pgx.Identifier{"people"},
|
||||||
[]string{"first_name", "last_name", "age"},
|
[]string{"first_name", "last_name", "age"},
|
||||||
pgx.CopyToRows(rows),
|
pgx.CopyToRows(rows),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user