Ar an seachtú lá déag de mí na Samhain, scríobh FKtPp:
Dear developers,
As the subject said I have a stupid question, what is the advantages
of compile in a database support like:
--8<---------------cut here---------------start------------->8---
Databases:
Compiling in support for Berkeley database.
--8<---------------cut here---------------end--------------->8---
Can I use this in elisp scripts inside XEmacs,
Yes.
If so, how to use it?
(setq my-database-handle (open-database (expand-file-name "~/my-database")
'berkeley-db nil "rw+" #o644))
=> #<database "/home/aidan/my-database" (berkeley-db/hash/readwrite)
0x6e7cba>
(put-database "key" "value" my-database-handle)
=> nil
(close-database my-database-handle)
=> nil
(setq my-new-database-handle (open-database (expand-file-name "~/my-database")
'berkeley-db nil "r" #o644))
=> #<database "/home/aidan/my-database" (berkeley-db/hash/readonly)
0x70a2ba>
(get-database "key" my-new-database-handle)
=> "value"
Is there any documents/info pages describe this kind of usage?
Just the docstrings, I'm afraid. F1 f open-database RET , F1 f get-database
RET, and the other most relevant functions are map-database, put-dabase and
remove-database.
The code isn't used much, probably because this support is not available
under GNU Emacs. I intend merging a very hacked version of their
descr-text.el that uses the database support to store index information for
Unihan.txt in the next few weeks though, so that will change a little.
--
¿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