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
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