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)},
|
||||
}
|
||||
|
||||
copyCount, err := conn.CopyTo(
|
||||
"people",
|
||||
copyCount, err := conn.CopyFrom(
|
||||
pgx.Identifier{"people"},
|
||||
[]string{"first_name", "last_name", "age"},
|
||||
pgx.CopyToRows(rows),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user