FlaGator
FlaGator

Reputation: 61

What happened to NpgsqlCopySerialize and NpgsqlCopyIn

I upgraded to npgsql 3.0.3 and discovered that NpgsqlCopySerialize and NpgsqlCopyIn where no longer part of the npgsql namespace. I made use of these classes in a streaming copy class that moved data from sql server to postgresql. Are there any classes that can be used to replace the functionality that these two classes provided?

Thank you all for taking the time to read this.

Upvotes: 6

Views: 3892

Answers (2)

Shay Rojansky
Shay Rojansky

Reputation: 16722

The Npgsql bulk copy API has been completely rewritten for version 3.0, using binary encoding for much better performance. Documentation on the new API is available at http://www.npgsql.org/doc/copy.html, I've also added a note in the migration notes.

Upvotes: 4

JMG
JMG

Reputation: 156

Well obviously they're not in the git repo for version 3.

There's no mention of it on the 3.0 migration docs either. http://www.npgsql.org/doc/migration-3.0.html

I'd advise you to submit an issue at https://github.com/npgsql/npgsql/issues

If you still need them with version 3.x, you could get them from the support branch. (github.com/npgsql/npgsql/tree/support/2.x/Npgsql/Npgsql)

Upvotes: 1

Related Questions