本文是小编为大家收集整理的关于NpgsqlCopySerialize和NpgsqlCopyIn发生了什么?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
我升级到NPGSQL 3.0.3,并发现NPGSQLCOPSerialize和NPGSQLCopyin不再是NPGSQL名称空间的一部分.我在流拷贝类中使用了这些类,该类将数据从SQL Server移至PostgreSQL.是否可以使用任何类来替换这两个类提供的功能?
感谢大家抽出宝贵的时间阅读此书.
推荐答案
NPGSQL批量复制API已完全重写3.0版,使用二进制编码以提高性能.有关新API的文档,请访问 ,我还在"迁移说明"中添加了一个注释.
其他推荐答案
很显然他们不在版本3的GIT仓库中.
在3.0迁移文档上也没有提及它. http://wwwww.npgsql.org/doc/doc/doc/doc/migration-migration-3.0.html
我建议您在问题
如果您仍然需要使用3.x版本,则可以从支持分支中获取它们. (github.com/npgsql/npgsql/tree/support/2.x/npgsql/npgsql)
问题描述
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.
推荐答案
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.
其他推荐答案
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)