What happened to NpgsqlCopySerialize and NpgsqlCopyIn

自古美人都是妖i 提交于 2020-01-02 05:41:06

问题


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.


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/33024102/what-happened-to-npgsqlcopyserialize-and-npgsqlcopyin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!