Debian Codegraph @

docs/api_reference/CXX/seqremove.html

raw symbols SCIP
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>DbSequence::remove()</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 C++ API Reference" />
10 <link rel="up" href="seq.html" title="Chapter 12.  The DbSequence Handle" />
11 <link rel="prev" href="seqopen.html" title="DbSequence::open()" />
12 <link rel="next" href="seqset_cachesize.html" title="DbSequence::set_cachesize()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbSequence::remove()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqopen.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 The DbSequence Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqset_cachesize.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="seqremove"></a>DbSequence::remove()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSequence::remove(u_int32_t flags);</pre>
45 <p>
46 The <code class="methodname">DbSequence::remove()</code> method removes the sequence from the
47 database. This method should not be called if there are other open
48 handles on this sequence.
49 </p>
50 <p>
51 The <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a> handle
52 may not be accessed again after <code class="methodname">DbSequence::remove()</code> is called,
53 regardless of its return.
54 </p>
55 <p>
56 The <code class="methodname">DbSequence::remove()</code> <span>
57
58 <span>
59 method either returns a non-zero error value or throws an
60 exception that encapsulates a non-zero error value on
61 failure, and returns 0 on success.
62 </span>
63 </span>
64 </p>
65 <div class="sect2" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h3 class="title"><a id="idp10141712"></a>Parameters</h3>
70 </div>
71 </div>
72 </div>
73 <div class="sect3" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h4 class="title"><a id="idp10153328"></a>txnid</h4>
78 </div>
79 </div>
80 </div>
81 <p>
82 If the operation is part of an application-specified transaction, the
83 <span class="bold"><strong>txnid</strong></span> parameter is a transaction
84 handle returned from <a class="xref" href="txnbegin.html" title="DbEnv::txn_begin()">DbEnv::txn_begin()</a>; if the
85 operation is part of a Berkeley DB Concurrent Data Store group, the
86 <span class="bold"><strong>txnid</strong></span> parameter is a handle returned
87 from <a class="xref" href="envcdsgroup_begin.html" title="DbEnv::cdsgroup_begin()">DbEnv::cdsgroup_begin()</a>;
88 otherwise NULL. If no transaction handle is specified, but the
89 operation occurs in a transactional database, the operation will be
90 implicitly transaction protected.
91 </p>
92 </div>
93 <div class="sect3" lang="en" xml:lang="en">
94 <div class="titlepage">
95 <div>
96 <div>
97 <h4 class="title"><a id="idp10111944"></a>flags</h4>
98 </div>
99 </div>
100 </div>
101 <p>
102 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
103 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
104 together one or more of the following values:
105 </p>
106 <div class="itemizedlist">
107 <ul type="disc">
108 <li>
109 <p>
110 <code class="literal">DB_TXN_NOSYNC</code>
111 </p>
112 <p>
113 If the operation is implicitly transaction protected (the <span class="bold"><strong>txnid</strong></span> argument is NULL but the operation occurs
114 to a transactional database), do not synchronously flush the log when
115 the transaction commits.
116 </p>
117 </li>
118 </ul>
119 </div>
120 </div>
121 </div>
122 <div class="sect2" lang="en" xml:lang="en">
123 <div class="titlepage">
124 <div>
125 <div>
126 <h3 class="title"><a id="idp10159752"></a>Errors</h3>
127 </div>
128 </div>
129 </div>
130 <p>
131 The <code class="methodname">DbSequence::remove()</code> <span>
132
133 <span>
134 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
135 exception, encapsulating one of the following non-zero errors, or return one
136 of the following non-zero errors:
137 </span>
138 </span>
139 </p>
140 <div class="sect3" lang="en" xml:lang="en">
141 <div class="titlepage">
142 <div>
143 <div>
144 <h4 class="title"><a id="idp10169336"></a>EINVAL</h4>
145 </div>
146 </div>
147 </div>
148 <p>
149 An invalid flag value or parameter was specified.
150 </p>
151 </div>
152 </div>
153 <div class="sect2" lang="en" xml:lang="en">
154 <div class="titlepage">
155 <div>
156 <div>
157 <h3 class="title"><a id="idp10168040"></a>Class</h3>
158 </div>
159 </div>
160 </div>
161 <p>
162 <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a>
163 </p>
164 </div>
165 <div class="sect2" lang="en" xml:lang="en">
166 <div class="titlepage">
167 <div>
168 <div>
169 <h3 class="title"><a id="idp10164888"></a>See Also</h3>
170 </div>
171 </div>
172 </div>
173 <p>
174 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
175 </p>
176 </div>
177 </div>
178 <div class="navfooter">
179 <hr />
180 <table width="100%" summary="Navigation footer">
181 <tr>
182 <td width="40%" align="left"><a accesskey="p" href="seqopen.html">Prev</a> </td>
183 <td width="20%" align="center">
184 <a accesskey="u" href="seq.html">Up</a>
185 </td>
186 <td width="40%" align="right"> <a accesskey="n" href="seqset_cachesize.html">Next</a></td>
187 </tr>
188 <tr>
189 <td width="40%" align="left" valign="top">DbSequence::open() </td>
190 <td width="20%" align="center">
191 <a accesskey="h" href="index.html">Home</a>
192 </td>
193 <td width="40%" align="right" valign="top"> DbSequence::set_cachesize()</td>
194 </tr>
195 </table>
196 </div>
197 </body>
198 </html>