• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/api_reference/TCL/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>env dbremove</title>
7    <link rel="stylesheet" href="apiReference.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB TCL API Reference" />
10    <link rel="up" href="tclapi.html" title="Chapter��1.�� Berkeley DB Tcl APIs" />
11    <link rel="prev" href="env_close.html" title="env close" />
12    <link rel="next" href="env_dbrename.html" title="env dbrename" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center"><span class="emphasis"><em>env</em></span> dbremove</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="env_close.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��1.��
23                Berkeley DB Tcl APIs
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="env_dbrename.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="sect1" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title" style="clear: both"><a id="env_dbremove"></a><span class="emphasis"><em>env</em></span> dbremove</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">env dbremove
39	[-auto_commit]
40	[-txn txnid]
41	[--]
42	file  </pre>
43      <p>
44         Remove the Berkeley DB database <span class="bold"><strong>file</strong></span>.
45    </p>
46      <p>
47        The options are as follows:
48    </p>
49      <div class="itemizedlist">
50        <ul type="disc">
51          <li>
52            <p>
53                 <span class="bold"><strong>-auto_commit</strong></span> 
54            </p>
55            <p>
56                 Enclose the call within an implicit transaction (you do not need 
57                 to provide a transaction handle as a transaction is internally 
58                 created and commited for you). If the call succeeds, changes
59                 made by the operation will be recoverable. If the call fails, the
60                 operation will have made no changes.
61            </p>
62          </li>
63          <li>
64            <p>
65                  <span class="bold"><strong>-txn txnid</strong></span> 
66            </p>
67            <p>
68                 If the operation is part of an application-specified transaction, the
69                 <span class="bold"><strong>txnid</strong></span> parameter is a transaction
70                 handle returned from <span class="emphasis"><em>env</em></span> <span class="bold"><strong>txn</strong></span>.  If no transaction handle is specified,
71                 but the -auto_commit flag is specified, the operation will be
72                 implicitly transaction protected.
73            </p>
74          </li>
75        </ul>
76      </div>
77      <p>
78         The <span class="emphasis"><em>env</em></span> <span class="bold"><strong>dbremove</strong></span>
79         command returns 0 on success, and in the case of error, a Tcl error is
80         thrown.
81    </p>
82    </div>
83    <div class="navfooter">
84      <hr />
85      <table width="100%" summary="Navigation footer">
86        <tr>
87          <td width="40%" align="left"><a accesskey="p" href="env_close.html">Prev</a>��</td>
88          <td width="20%" align="center">
89            <a accesskey="u" href="tclapi.html">Up</a>
90          </td>
91          <td width="40%" align="right">��<a accesskey="n" href="env_dbrename.html">Next</a></td>
92        </tr>
93        <tr>
94          <td width="40%" align="left" valign="top"><span class="emphasis"><em>env</em></span> close��</td>
95          <td width="20%" align="center">
96            <a accesskey="h" href="index.html">Home</a>
97          </td>
98          <td width="40%" align="right" valign="top">��<span class="emphasis"><em>env</em></span> dbrename</td>
99        </tr>
100      </table>
101    </div>
102  </body>
103</html>
104