Vin: Recommended for 21.1.
>>>> "N" == Norbert Koch <nk(a)LF.net>
writes:
N> (describe-installation) shows me
N> Databases:
N> Compiling in support for Berkeley database.
N> Compiling in support for GNU DBM.
N> but I see
N> (setq db (open-database "/var/db/locate.database"
N> 'berkeley_db 'hash "r"))
N> => Unsupported database type: berkeley_db
Note that if you are opening a database in r/o mode, the database file
must already exist, and the SUBTYPE argument is ignored.
N> So, what das 'Compiling in support for Berkeley database.' really
N> mean. Am I missing something?
No. We are.
(setq db (open-database "/tmp/t3" 'berkeley-db 'btree))
==> #<database "/tmp/t3" (berkeley-db/btree/readwrite) 0xa02b>
./man/ChangeLog:
2000-08-24 Martin Buchholz <martin(a)xemacs.org>
* lispref/databases.texi (Connecting to a Database):
s/berkeley_db/berkeley-db/. Too much C programming.
Index: ./man/lispref/databases.texi
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/man/lispref/databases.texi,v
retrieving revision 1.2.2.1
diff -u -w -r1.2.2.1 databases.texi
--- databases.texi 2000/05/11 05:54:43 1.2.2.1
+++ databases.texi 2000/08/24 04:58:50
@@ -26,16 +26,16 @@
permissions @var{mode}. @var{access} can be any combination of @code{r}
@code{w} and @code{+}, for read, write, and creation flags.
-@var{type} can have the value @code{'dbm} or @code{'berkeley_db} to
+@var{type} can have the value @code{'dbm} or @code{'berkeley-db} to
select the type of database file to use. (Note: XEmacs may not
support both of these types.)
For a @var{type} of @code{'dbm}, there are no subtypes, so
@var{subtype} should be @code{nil}.
-For a @var{type} of @code{'berkeley_db}, the following subtypes are
+For a @var{type} of @code{'berkeley-db}, the following subtypes are
available: @code{'hash}, @code{'btree}, and @code{'recno}. See the
-manpages for the Berkeley DB functions to more information about these
+manpages for the Berkeley DB functions for more information about these
types.
@end defun