1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<! "@(#)re_delim.so 10.1 (Sleepycat) 10/26/98">
<!Copyright 1997, 1998 by Sleepycat Software, Inc. All rights reserved.>
<html>
<body bgcolor=white>
<head>
<title>Berkeley DB Reference Guide: Access Methods</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btr
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me
thods,java,C,C++">
</head>
<h3>Berkeley DB Reference Guide: Access Methods</h3>
<p>
<h1 align=center>Record delimiters (re_delim, DB_DELIMITER)</h1>
<p>
The Recno access method can be used to store both variable and
fixed-length data items. By default, the data items are expected
to be variable length.
<p>
When reading variable length records from a <a href="re_source.html">backing
source file</a> to store in the database, a delimiter character may be set
as part of the <a href="../../api_c/Db/open.html">db_open</a> call to open the database, specifically
by setting the <a href="../../api_c/DbInfo/info.html#re_delim">re_delim</a> element of the DB_INFO structure.
Because there is no out-of-band value for this character, the
<a href="../../api_c/DbInfo/info.html#DB_DELIMITER">DB_DELIMITER</a> flag must also be set.
<p>
If an application is reading variable length records from a backing
source file to store in the database and the <a href="../../api_c/DbInfo/info.html#DB_DELIMITER">DB_DELIMITER</a> flag
is not set, a newline character (i.e., 0x0a in the ASCII character set)
is used as the delimiter.
<p>
<a href="../../ref/am/h_dup.html"><img src="../../images/prev.gif"></a>
<a href="../../ref/toc.html"><img src="../../images/toc.gif"></a>
<a href="../../ref/am/re_len.html"><img src="../../images/next.gif"></a>
</tt>
</body>
</html>
|