加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

PostgreSQL,Python接口psycopg

发布时间:2020-12-13 17:02:17 所属栏目:百科 来源:网络整理
导读:psycopg介绍: Psycopg is a PostgreSQL adapter for the Python programming language. It is a wrapper for the libpq,the official PostgreSQL client library. 在PostgreSQL官方文档里的目录结构里 IV. Client Interfaces 31. libpq - C Library 32. Larg

psycopg介绍:

Psycopg is a PostgreSQL adapter for the Python programming language. It is a wrapper for the libpq,the official PostgreSQL client library.

在PostgreSQL官方文档里的目录结构里

IV. Client Interfaces
31. libpq - C Library
32. Large Objects
33. ECPG - Embedded SQL in C
34. The Information Schema

可以看到
libpq是PostgreSQL的C语言接口。而,psycopg是libpq的一个封装

Python访问PostgreSQL数据库需要用psycopg模块

关于psycopg的读法
网上有这种读法:
“psycho-pee-gee”

这里有一个介绍Python和PostgreSQL编程的youtube视频,里面psycopg也是这样读的

Real Time Web Apps with (just) Python and Postgres

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读