<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META name="GENERATOR" content="hevea 1.06-7 of 2001-11-14"> <TITLE> The dbm library: access to NDBM databases </TITLE> </HEAD> <BODY TEXT=black BGCOLOR=white> <A HREF="manual039.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A> <A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A> <A HREF="manual041.html"><IMG SRC ="next_motif.gif" ALT="Next"></A> <HR> <TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR><TD BGCOLOR="#2de52d"><DIV ALIGN=center><TABLE> <TR><TD><A NAME="htoc249"><B><FONT SIZE=6>Chapter 26</FONT></B></A></TD> <TD WIDTH="100%" ALIGN=center><B><FONT SIZE=6>The dbm library: access to NDBM databases</FONT></B></TD> </TR></TABLE></DIV></TD> </TR></TABLE> <BR> The <TT>dbm</TT> library provides access to NDBM databases under Unix. NDBM databases maintain key/data associations, where both the key and the data are arbitrary strings. They support fairly large databases (several gigabytes) and can retrieve a keyed item in one or two file system accesses. Refer to the Unix manual pages for more information.<BR> <BR> <FONT COLOR=purple>Unix:</FONT> <BLOCKQUOTE> Programs that use the <TT>dbm</TT> library must be linked as follows: <PRE> ocamlc <I>other options</I> dbm.cma <I>other files</I> ocamlopt <I>other options</I> dbm.cmxa <I>other files</I> </PRE> For interactive use of the <TT>dbm</TT> library, do: <PRE> ocamlmktop -o mytop dbm.cma ./mytop </PRE> </BLOCKQUOTE> or (if dynamic linking of C libraries is supported on your platform), start <TT>ocaml</TT> and type <TT>#load "dbm.cma";;</TT>.<BR> <BR> <FONT COLOR=purple>Windows:</FONT> <BLOCKQUOTE> This library is not available. </BLOCKQUOTE> <a HREF=libref/Dbm.html> Module <tt>Dbm</tt>: interface to the NDBM database</a> <BR> <BR> <BR> <BR> <HR> <A HREF="manual039.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A> <A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A> <A HREF="manual041.html"><IMG SRC ="next_motif.gif" ALT="Next"></A> </BODY> </HTML>