NpgsqlCopySerialize和NpgsqlCopyIn发生了什么 [英] What happened to NpgsqlCopySerialize and NpgsqlCopyIn

查看:164
本文介绍了NpgsqlCopySerialize和NpgsqlCopyIn发生了什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级到npgsql 3.0.3,发现NpgsqlCopySerialize和NpgsqlCopyIn不再属于npgsql命名空间。我在将数据从sql服务器移动到postgresql的流复制类中使用了这些类。有没有可用于替代这两个类提供的功能的类?

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.

推荐答案

Npgsql大容量复制API已针对3.0版进行了完全重写,使用二进制编码可获得更好的性能。有关新API的文档,请访问 http://www.npgsql.org/doc/copy.html ,我还在迁移说明中添加了一个说明。

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.

这篇关于NpgsqlCopySerialize和NpgsqlCopyIn发生了什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆