psycopg3

psycopg3

文章 0 浏览 1

在lambda上运行Psycopg版本3

我正在使用python3.9的lambda docker基本图像 来自public.ecr.aws/lambda/python:3.9 ,我正在尝试在代码中使用psycopg。这是一个最小可重复的示例: …

秉烛思 2025-02-05 18:58:31 2 0

使用Psycopg3复制跨服务器的表格

I'm working from and example in the psycopg3 documentation to copy a table from one database to another: dsn_src = 'postgresql:///dev_db' ds…

掌心的温暖 2025-01-29 05:43:48 3 0

Infrorror“无PQ包装器可用”导入psycopg3时

我使用 pip安装psycopg [二进制] 根据文档,但我仍然会遇到导入错误: Exception has occurred: ImportError no pq wrapper available. Attempts made…

淡紫姑娘! 2025-01-26 14:03:52 5 0

夸脱和psycopg3 asyncconnection Notifies() - > SSE多个客户

我正在尝试创建一个SSE Server Quart应用程序,该应用程序会从PostgreSQL实例中聆听通知(然后将SSE消息发送到注册EventsOrces)。 https://pgjones.g…

饭团 2025-01-25 16:39:11 5 0

psycopg 3.0.9等于psycopg2中的复合脚轮是什么?

import psycopg from psycopg.types.composite import CompositeInfo, register_composite def insert_data(self): pg = psycopg.connect(self.conne…

凝望流年 2025-01-24 19:44:00 5 0

如何在psycopg3 register_composite中使用工厂?

在psycopg2中 工厂 - 如果指定,应该是CompositeCaster子类:使用它来自定义如何铸造复合类型 https://www.psycopg.org/docs/extras.html#custom-comp…

是伱的 2025-01-24 16:11:05 5 0

如何确保空表中填充有 psycopg?

我正在尝试找到一种有效而可靠的方法,以确保我的插入确实已经为我的空表进行了。 While I would like to use a function like this connection_info …

潦草背影 2025-01-19 02:14:33 3 0

Psycopg3 无法异步连接

无法使用异步 psycopg3 连接 postgres 数据库: import asyncio import psycopg async def main(): async with await psycopg.AsyncConnection.connec…

红墙和绿瓦 2025-01-09 00:09:25 2 0
更多

推荐作者

alipaysp_snBf0MSZIv

文章 0 评论 0

梦断已成空

文章 0 评论 0

瞎闹

文章 0 评论 0

寄意

文章 0 评论 0

似梦非梦

文章 0 评论 0

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