[ 永远的UNIX::UNIX技术资料的宝库 ]

首页 > 数据库 > 其它 > 正文
PostgreSQL7.0手册-接口-59. Lisp 编程接口
编译:何伟平 laser@zhengmai.com.cn (2001-04-21 23:30:48)
第五十九章. Lisp 编程接口
pg.el 是一个 Postgres 用于 emacs 的套接字级的接口。
作者:由 Eric Marsden 写于 1999 年 7 月21日。
pg.el 是一个 Postgres 用于 emacs (附加的文本编辑器)的套接字级的接口。该模块能够把一定范围的 SQL 类型转换成相对应的 Emacs Lisp 类型。目前它还不支持 crypt 或 Kerberos 认证,也不支持大对象。 
代码(版本 0.2)按照 GNU GPL 发布,可以从 Eric Marsden获得。 

自上次发布来的修改: 

目前可以工作于 XEmacs (用 Emacs 19.34 & 20.2,和 XEmacs 20.4 测试过)
增加了函数提供数据库专有信息(数据库列表,表,列)
给 `pg:result' 的参数现在是 :keywords (关键字)
MULE-免疫(支持多语言) 

更多的自测代码

请注意这是一个程序员的 API,不提供任何形式的用户界面。例如: 
 (defun demo ()
    (interactive)
    (let* ((conn (pg:connect "template1" "postgres" "postgres"))
           (res (pg:exec conn "SELECT * from scshdemo WHERE a = 42")))
      (message "status is %s"   (pg:result res :status))
      (message "metadata is %s" (pg:result res :attributes))
      (message "data is %s"     (pg:result res :tuples))
      (pg:disconnect conn)))
(http://www.fanqiang.com)
    进入【UNIX论坛

相关文章
PostgreSQL7.0手册-附录-文档 (2001-04-21 23:50:44)
PostgreSQL7.0手册-附录-日期/时间支持-CVS 仓库 (2001-04-21 23:48:48)
PostgreSQL7.0手册-教程 -73. Postgres SQL 高级特性 (2001-04-21 23:45:36)
PostgreSQL7.0手册-教程 -72. 查询语言 (2001-04-21 23:44:40)
PostgreSQL7.0手册-教程 -71. 开始 (2001-04-21 23:42:54)
PostgreSQL7.0手册-教程 -70. 体系结构 (2001-04-21 23:41:58)
PostgreSQL7.0手册-教程 -69. SQL (2001-04-21 23:41:23)
PostgreSQL7.0手册-开发者手册 -68. 分页文件 (2001-04-21 23:39:22)
PostgreSQL7.0手册-开发者手册 -67. 后端接口 (2001-04-21 23:38:34)
PostgreSQL7.0手册-开发者手册 -66. gcc 缺省优化 (2001-04-21 23:37:20)

===更多相关===
 

★  樊强制作 欢迎分享  ★