Ar an seachtú lá déag de mí na Samhain, scríobh Brian Palmer:
On Nov 16, 2007 10:51 PM, FKtPp <m_pupil(a)yahoo.com.cn> wrote:
> Can I use this in elisp scripts inside XEmacs, If so, how to use it?
> Is there any documents/info pages describe this kind of usage?
See the info node (lispref)PostgreSQL Support
Note that the PostgreSQL support provides a distinct API. The functionality
in database.c is oriented at Berkeley DB and DBM databases, which should
really be viewed as persistent hash tables rather than anything directly
comparable to an SQL database.
An example that the info pages give is
(progn
(setq P (pq-connectdb ""))
;; id is the primary key, shikona is a Japanese word that
;; means `the professional name of a Sumo wrestler', and
;; rank is the Sumo rank name.
(pq-exec P (concat "CREATE TABLE xemacs_test"
" (id int, shikona text, rank text);"))
(pq-exec P "COPY xemacs_test FROM stdin;")
(pq-put-line P "1\tMusashimaru\tYokuzuna\n")
(pq-put-line P "2\tDejima\tOozeki\n")
(pq-put-line P "3\tMusoyama\tSekiwake\n")
(pq-put-line P "4\tMiyabiyama\tSekiwake\n")
(pq-put-line P "5\tWakanoyama\tMaegashira\n")
(pq-put-line P "\\.\n")
(pq-end-copy P))
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta