psycopg2中的扩展查询协议

发布于 2025-02-10 03:20:36 字数 49 浏览 0 评论 0原文

PsyCOPG2是否支持扩展查询协议?如果是,您可以分享有关如何使用此模式的文档吗?

Does Psycopg2 support Extended Query Protocol ? If yes, can you please share documentation on how to use this mode?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坏尐絯℡ 2025-02-17 03:20:36

这是答案: https://github.com/psycopg/psycopg/psycopg/psycopg2/issues/1401

不,你不能。 psycopg2完全围绕客户端绑定和简单的查询协议。

使用扩展查询协议是一个打破的变化,几乎是一个完整的重新设计。这就是psycopg 3。

中发生的情况

的确,我已经测试了Psycopg3,并且能够使用扩展的查询协议。

Here is the answer: https://github.com/psycopg/psycopg2/issues/1401

No, you can't. Psycopg2 is completely built around client side binding and simple query protocol.

Using the extended query protocol is a breaking change and pretty much a complete redesign. This is what happened in Psycopg 3.

Indeed, I've tested psycopg3 and was able to use the Extended Query Protocol.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文