>>>> "Mikio" == Mikio Nakajima
<minakaji(a)osaka.email.ne.jp> writes:
Mikio> The following lines are forms and their evaluated results;
Mikio> (setq test (open-database "~/test" 'gdbm))
--> #<database "/home/minakaji/test" (gdbm/nil/readwrite(create))
0x465b>
Mikio> (set-database-property test 'fastmode t)
--> nil
Probably you want (set-database-property db KEY VALUE) to return
VALUE, like other (set-FOO-property) functions.
Mikio> test
--> #<database "/home/minakaji/test" (gdbm/nil/readwrite(create,
fastmode)) 0x465b>
Mikio> (set-database-property test 'fastmode nil)
--> nil
Mikio> test
--> #<database "/home/minakaji/test" (gdbm/nil/readwrite(create))
0x465b>
This looks pretty good.
Mikio> `set-database-property' changes fastmode option of TEST database and
Mikio> we can find out by simply evaluating database object.
Mikio> One of the properties we cannot see is cachesize of the database (but
Mikio> we cannot get it by using a gdbm function. How to get it?). What
Mikio> else properties are to be seen (either by simply evaluating object or
Mikio> using a new Emacs C primitive)? This is what I want to know, but not
Mikio> how to get (that is a next question). Does Berkeley db have a special
Mikio> options (properties) can be set and can be seen.
If you are not interested in investigating similar options for
berkeley db, you don't need to work on it. But you are now very
qualified to do so.
Martin