Question: what's the benifit of compile in database support?
Aidan Kehoe
kehoea at parhasard.net
Mon Nov 19 11:07:57 EST 2007
Ar an naoú lá déag de mí na Samhain, scríobh FKtPp:
> I just think this is a very useful backend for some asian input methods.
>
> 3~4 years ago there is a very famous GPLed chinese input method(wrote in cpp) named xsim, which is using bdb as its database backend.
>
> And maybe some chinese user will be interested in porting that input method into XEmacs :D If they know XEmacs have a bdb database backend support...
Ah, interesting. If anyone is googling for this--or if you're considering
porting it over yourself :-)--they should note though that the
interpretation of the CODESYS argument to #'open-database is broken right
now, and I need to commit a change to fix that--backward-compatible code
should call #'decode-coding-string itself.
> ----- Original Message ----
> From: Aidan Kehoe <kehoea at parhasard.net>
> To: FKtPp <m_pupil at yahoo.com.cn>
> Cc: XEmacs Beta List <xemacs-beta at xemacs.org>
> Sent: Monday, November 19, 2007 7:38:31 PM
> Subject: Re: Question: what's the benifit of compile in database support?
>
>
>
> 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?
>
>
>
>
>
> ____________________________________________________________________________________
> Be a better sports nut! Let your teams follow you
> with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
More information about the XEmacs-Beta
mailing list