mirror of
https://github.com/yasuhirokimura/db18
synced 2026-06-08 18:29:23 +00:00
864 lines
30 KiB
HTML
864 lines
30 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
<title>Chapter 2. The DB Handle</title>
|
||
<link rel="stylesheet" href="apiReference.css" type="text/css" />
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
|
||
<link rel="start" href="index.html" title="Berkeley DB C API Reference" />
|
||
<link rel="up" href="index.html" title="Berkeley DB C API Reference" />
|
||
<link rel="prev" href="introduction.html" title="Chapter 1. Introduction to Berkeley DB APIs" />
|
||
<link rel="next" href="dbassociate.html" title="DB->associate()" />
|
||
</head>
|
||
<body>
|
||
<div xmlns="" class="navheader">
|
||
<div class="libver">
|
||
<p>Library Version 18.1.32</p>
|
||
</div>
|
||
<table width="100%" summary="Navigation header">
|
||
<tr>
|
||
<th colspan="3" align="center">Chapter 2.
|
||
The DB Handle
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<td width="20%" align="left"><a accesskey="p" href="introduction.html">Prev</a> </td>
|
||
<th width="60%" align="center"> </th>
|
||
<td width="20%" align="right"> <a accesskey="n" href="dbassociate.html">Next</a></td>
|
||
</tr>
|
||
</table>
|
||
<hr />
|
||
</div>
|
||
<div class="chapter" lang="en" xml:lang="en">
|
||
<div class="titlepage">
|
||
<div>
|
||
<div>
|
||
<h2 class="title"><a id="db"></a>Chapter 2.
|
||
The DB Handle
|
||
</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p>
|
||
The DB is the handle for a single Berkeley DB database. A Berkeley DB database
|
||
provides a mechanism for organizing key-data pairs of information. From the
|
||
perspective of some database systems, a Berkeley DB database could be thought of as
|
||
a single table within a larger database.
|
||
</p>
|
||
<p>
|
||
You create a DB handle using the <a class="xref" href="dbcreate.html" title="db_create">
|
||
<span>db_create</span>
|
||
|
||
</a>
|
||
<span>function.</span>
|
||
|
||
For most database activities, you must then open the handle using the
|
||
<a class="xref" href="dbopen.html" title="DB->open()">
|
||
<span>DB->open()</span>
|
||
|
||
</a>
|
||
method. When you are done with them, handles must be closed using the
|
||
<a class="xref" href="dbclose.html" title="DB->close()">
|
||
<span>DB->close()</span>
|
||
|
||
</a> method.
|
||
</p>
|
||
<p>
|
||
Alternatively, you can create a DB and then rename, remove or verify the database
|
||
without performing an open. See <a class="xref" href="dbrename.html" title="DB->rename()">
|
||
<span>DB->rename()</span>
|
||
|
||
</a>,
|
||
<a class="xref" href="dbremove.html" title="DB->remove()">
|
||
<span>DB->remove()</span>
|
||
|
||
</a> or
|
||
<a class="xref" href="dbverify.html" title="DB->verify()">
|
||
<span>DB->verify()</span>
|
||
|
||
</a> for information on these
|
||
activities.
|
||
</p>
|
||
<p>
|
||
It is possible to create databases such that they are organized within a
|
||
<span class="emphasis"><em>database environment</em></span>. Environments are optional for simple Berkeley
|
||
DB applications that do not use transactions, recovery, replication or any other
|
||
advanced features. For simple Berkeley DB applications, environments still offer some
|
||
advantages. For example, they provide some organizational
|
||
benefits on-disk (all databases are located on disk relative to the environment). Also,
|
||
if you are using multiple databases, then environments allow your databases to share a
|
||
common in-memory cache, which makes for more efficient usage of your hardware's
|
||
resources.
|
||
</p>
|
||
<p>
|
||
See <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> for information on using database
|
||
environments.
|
||
</p>
|
||
<p>
|
||
You specify the underlying organization of the data in the database (e.g. BTree, Hash,
|
||
Queue, and Recno) when you open the database. When you create a database,
|
||
you are free to specify any of the available database types. On subsequent opens,
|
||
you must either specify the access method used when you first opened the database, or
|
||
you can specify <code class="literal">DB_UNKNOWN</code> in order to have this information
|
||
retrieved for you. See the <a class="xref" href="dbopen.html" title="DB->open()">
|
||
<span>DB->open()</span>
|
||
|
||
</a>
|
||
method for information on specifying database types.
|
||
</p>
|
||
<div class="sect1" lang="en" xml:lang="en">
|
||
<div class="titlepage">
|
||
<div>
|
||
<div>
|
||
<h2 class="title" style="clear: both"><a id="dblist"></a>Database and Related Methods</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="navtable">
|
||
<table border="1" width="80%">
|
||
<thead>
|
||
<tr>
|
||
<th>Database Operations</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbassociate.html" title="DB->associate()">
|
||
<span>DB->associate()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Associate a secondary index</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbassociate_foreign.html" title="DB->associate_foreign()">
|
||
<span>DB->associate_foreign()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Associate a foreign index</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbclose.html" title="DB->close()">
|
||
<span>DB->close()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Close a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbcompact.html" title="DB->compact()">
|
||
<span>DB->compact()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Compact a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbconvert.html" title="DB->convert()">
|
||
<span>DB->convert()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Convert a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbcreate.html" title="db_create">
|
||
<span>db_create</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Create a database handle</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbdel.html" title="DB->del()">
|
||
<span>DB->del()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Delete items from a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dberr.html" title="DB->err()">
|
||
<span>DB->err()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Error message</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbexists.html" title="DB->exists()">
|
||
<span>DB->exists()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return if an item appears in a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbfd.html" title="DB->fd()">
|
||
<span>DB->fd()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return a file descriptor from a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget.html" title="DB->get()">
|
||
<span>DB->get()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Get items from a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_byteswapped.html" title="DB->get_byteswapped()">
|
||
<span>DB->get_byteswapped()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return if the underlying database is in host order</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_dbname.html" title="DB->get_dbname()">
|
||
<span>DB->get_dbname()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return the file and database name</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_multiple.html" title="DB->get_multiple()">
|
||
<span>DB->get_multiple()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return if the database handle references multiple databases</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_open_flags.html" title="DB->get_open_flags()">
|
||
<span>DB->get_open_flags()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Returns the flags specified to DB->open</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_slices.html" title="DB->get_slices()">
|
||
<span>DB->get_slices()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Returns an array of slice databases.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_type.html" title="DB->get_type()">
|
||
<span>DB->get_type()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return the database type</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbjoin.html" title="DB->join()">
|
||
<span>DB->join()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Perform a database join on cursors</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbkey_range.html" title="DB->key_range()">
|
||
<span>DB->key_range()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return estimate of key location</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbmsg.html" title="DB->msg()">
|
||
<span>DB->msg()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Informational message</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbopen.html" title="DB->open()">
|
||
<span>DB->open()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Open a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbput.html" title="DB->put()">
|
||
<span>DB->put()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Store items into a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbremove.html" title="DB->remove()">
|
||
<span>DB->remove()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Remove a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbrename.html" title="DB->rename()">
|
||
<span>DB->rename()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Rename a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_priority.html" title="DB->set_priority()">
|
||
<span>DB->set_priority()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_priority.html" title="DB->get_priority()">
|
||
<span>DB->get_priority()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get cache page priority</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbslice_lookup.html" title="DB->slice_lookup()">
|
||
<span>DB->slice_lookup()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return the slice database that contains the key</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbstat.html" title="DB->stat()">
|
||
<span>DB->stat()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Database statistics</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbstat_print.html" title="DB->stat_print()">
|
||
<span>DB->stat_print()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Display database statistics</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbsync.html" title="DB->sync()">
|
||
<span>DB->sync()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Flush a database to stable storage</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbtruncate.html" title="DB->truncate()">
|
||
<span>DB->truncate()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Empty a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbupgrade.html" title="DB->upgrade()">
|
||
<span>DB->upgrade()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Upgrade a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbverify.html" title="DB->verify()">
|
||
<span>DB->verify()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Verify/salvage a database</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbcursor.html" title="DB->cursor()">
|
||
<span>DB->cursor()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Create a cursor handle</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Database Configuration</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_partition_callback.html" title="DB->get_partition_callback()">
|
||
<span>DB->get_partition_callback()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Return the database partition callback</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbget_partition_keys.html" title="DB->get_partition_keys()">
|
||
<span>DB->get_partition_keys()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Returns the array of keys used for the database partition</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_alloc.html" title="DB->set_alloc()">
|
||
<span>DB->set_alloc()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set local space allocation functions</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_cachesize.html" title="DB->set_cachesize()">
|
||
<span>DB->set_cachesize()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_cachesize.html" title="DB->get_cachesize()">
|
||
<span>DB->get_cachesize()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the database cache size</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_create_dir.html" title="DB->set_create_dir()">
|
||
<span>DB->set_create_dir()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_create_dir.html" title="DB->get_create_dir()">
|
||
<span>DB->get_create_dir()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the directory in which a database is placed</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_dup_compare.html" title="DB->set_dup_compare()">
|
||
<span>DB->set_dup_compare()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set a duplicate comparison function</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_encrypt.html" title="DB->set_encrypt()">
|
||
<span>DB->set_encrypt()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_encrypt_flags.html" title="DB->get_encrypt_flags()">
|
||
<span>DB->get_encrypt_flags()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the database cryptographic key</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_errcall.html" title="DB->set_errcall()">
|
||
<span>DB->set_errcall()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set error message callback</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_errfile.html" title="DB->set_errfile()">
|
||
<span>DB->set_errfile()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_errfile.html" title="DB->get_errfile()">
|
||
<span>DB->get_errfile()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get error message FILE</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_errpfx.html" title="DB->set_errpfx()">
|
||
<span>DB->set_errpfx()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_errpfx.html" title="DB->get_errpfx()">
|
||
<span>DB->get_errpfx()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get error message prefix</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_feedback.html" title="DB->set_feedback()">
|
||
<span>DB->set_feedback()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set feedback callback</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_flags.html" title="DB->set_flags()">
|
||
<span>DB->set_flags()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_flags.html" title="DB->get_flags()">
|
||
<span>DB->get_flags()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get general database configuration</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_lk_exclusive.html" title="DB->set_lk_exclusive()">
|
||
<span>DB->set_lk_exclusive()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_lk_exclusive.html" title="DB->get_lk_exclusive()">
|
||
<span>DB->get_lk_exclusive()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get exclusive database locking</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_lorder.html" title="DB->set_lorder()">
|
||
<span>DB->set_lorder()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_lorder.html" title="DB->get_lorder()">
|
||
<span>DB->get_lorder()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the database byte order</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_msgcall.html" title="DB->set_msgcall()">
|
||
<span>DB->set_msgcall()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set informational message callback</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_msgfile.html" title="DB->set_msgfile()">
|
||
<span>DB->set_msgfile()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_msgfile.html" title="DB->get_msgfile()">
|
||
<span>DB->get_msgfile()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get informational message FILE</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_msgpfx.html" title="DB->set_msgpfx()">
|
||
<span>DB->set_msgpfx()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_msgpfx.html" title="DB->get_msgpfx()">
|
||
<span>DB->get_msgpfx()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get informational message prefix</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_pagesize.html" title="DB->set_pagesize()">
|
||
<span>DB->set_pagesize()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_pagesize.html" title="DB->get_pagesize()">
|
||
<span>DB->get_pagesize()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the underlying database page size</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_partition.html" title="DB->set_partition()">
|
||
<span>DB->set_partition()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set database partitioning</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_partition_dirs.html" title="DB->set_partition_dirs()">
|
||
<span>DB->set_partition_dirs()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_partition_dirs.html" title="DB->get_partition_dirs()">
|
||
<span>DB->get_partition_dirs()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the directories used for database partitions</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_slice_callback.html" title="DB->set_slice_callback()">
|
||
<span>DB->set_slice_callback()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set the callback used to identify slices</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Btree/Recno Configuration</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_append_recno.html" title="DB->set_append_recno()">
|
||
<span>DB->set_append_recno()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set record append callback</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_bt_compare.html" title="DB->set_bt_compare()">
|
||
<span>DB->set_bt_compare()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set a Btree comparison function</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_bt_compress.html" title="DB->set_bt_compress()">
|
||
<span>DB->set_bt_compress()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set Btree compression functions</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_bt_minkey.html" title="DB->set_bt_minkey()">
|
||
<span>DB->set_bt_minkey()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_bt_minkey.html" title="DB->get_bt_minkey()">
|
||
<span>DB->get_bt_minkey()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the minimum number of keys per Btree page</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_bt_prefix.html" title="DB->set_bt_prefix()">
|
||
<span>DB->set_bt_prefix()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set a Btree prefix comparison function</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_re_delim.html" title="DB->set_re_delim()">
|
||
<span>DB->set_re_delim()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_re_delim.html" title="DB->get_re_delim()">
|
||
<span>DB->get_re_delim()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the variable-length record delimiter</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_re_len.html" title="DB->set_re_len()">
|
||
<span>DB->set_re_len()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_re_len.html" title="DB->get_re_len()">
|
||
<span>DB->get_re_len()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the fixed-length record length</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_re_pad.html" title="DB->set_re_pad()">
|
||
<span>DB->set_re_pad()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_re_pad.html" title="DB->get_re_pad()">
|
||
<span>DB->get_re_pad()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the fixed-length record pad byte</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_re_source.html" title="DB->set_re_source()">
|
||
<span>DB->set_re_source()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_re_source.html" title="DB->get_re_source()">
|
||
<span>DB->get_re_source()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the backing Recno text file</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Hash Configuration</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_h_compare.html" title="DB->set_h_compare()">
|
||
<span>DB->set_h_compare()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set a Hash comparison function</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_h_ffactor.html" title="DB->set_h_ffactor()">
|
||
<span>DB->set_h_ffactor()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_h_ffactor.html" title="DB->get_h_ffactor()">
|
||
<span>DB->get_h_ffactor()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the Hash table density</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="dbset_h_hash.html" title="DB->set_h_hash()">
|
||
<span>DB->set_h_hash()</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td>Set a hashing function</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_h_nelem.html" title="DB->set_h_nelem()">
|
||
<span>DB->set_h_nelem()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_h_nelem.html" title="DB->get_h_nelem()">
|
||
<span>DB->get_h_nelem()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the Hash table size</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Queue Configuration</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_q_extentsize.html" title="DB->set_q_extentsize()">
|
||
<span>DB->set_q_extentsize()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_q_extentsize.html" title="DB->get_q_extentsize()">
|
||
<span>DB->get_q_extentsize()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get Queue database extent size</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Heap</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_heapsize.html" title="DB->set_heapsize()">
|
||
<span>DB->set_heapsize()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_heapsize.html" title="DB->get_heapsize()">
|
||
<span>DB->get_heapsize()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the database heap size</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a class="xref" href="dbset_heap_regionsize.html" title="DB->set_heap_regionsize()">
|
||
<span>DB->set_heap_regionsize()</span>
|
||
|
||
</a>, <a class="xref" href="dbget_heap_regionsize.html" title="DB->get_heap_regionsize()">
|
||
<span>DB->get_heap_regionsize()</span>
|
||
|
||
</a></td>
|
||
<td>Set/get the database region size</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="db_heap_rid.html" title="DB_HEAP_RID">
|
||
<span>DB_HEAP_RID</span>
|
||
|
||
</a>
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<span class="bold">
|
||
<strong>Database Utilities</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<a class="xref" href="db_copy.html" title="db_copy">db_copy</a>
|
||
</td>
|
||
<td>Copy a named database to a target directory</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="navfooter">
|
||
<hr />
|
||
<table width="100%" summary="Navigation footer">
|
||
<tr>
|
||
<td width="40%" align="left"><a accesskey="p" href="introduction.html">Prev</a> </td>
|
||
<td width="20%" align="center"> </td>
|
||
<td width="40%" align="right"> <a accesskey="n" href="dbassociate.html">Next</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="40%" align="left" valign="top">Chapter 1. Introduction to Berkeley DB APIs </td>
|
||
<td width="20%" align="center">
|
||
<a accesskey="h" href="index.html">Home</a>
|
||
</td>
|
||
<td width="40%" align="right" valign="top">
|
||
<span>DB->associate()</span>
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</body>
|
||
</html>
|