/usr/share/doc/python-bsddb3/html/dbsequence.html is in python-bsddb3-doc 6.1.0-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | <!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>DBSequence — PyBSDDB 6.0.0 documentation</title>
<link rel="stylesheet" href="static/default.css" type="text/css" />
<link rel="stylesheet" href="static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '6.0.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: false
};
</script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<link rel="top" title="PyBSDDB 6.0.0 documentation" href="index.html" />
<link rel="next" title="DBSite" href="dbsite.html" />
<link rel="prev" title="DBLock" href="dblock.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="dbsite.html" title="DBSite"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="dblock.html" title="DBLock"
accesskey="P">previous</a> |</li>
<li><a href="contents.html">PyBSDDB 6.0.0 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="dbsequence">
<h1>DBSequence<a class="headerlink" href="#dbsequence" title="Permalink to this headline">¶</a></h1>
<p>Read <a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/programmer_reference/index.html">Oracle documentation</a>
for better understanding.</p>
<p>Sequences provide an arbitrary number of persistent objects that return
an increasing or decreasing sequence of integers. Opening a sequence
handle associates it with a record in a database. The handle can
maintain a cache of values from the database so that a database update
is not needed as the application allocates a value.</p>
<p><a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seq.html">More info...</a></p>
<div class="section" id="dbsequence-methods">
<h2>DBSequence Methods<a class="headerlink" href="#dbsequence-methods" title="Permalink to this headline">¶</a></h2>
<dl class="function">
<dt id="DBSequence">
<tt class="descname">DBSequence</tt><big>(</big><em>db</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#DBSequence" title="Permalink to this definition">¶</a></dt>
<dd><p>Constructor.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqcreate.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="open">
<tt class="descname">open</tt><big>(</big><em>key</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#open" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the sequence represented by the key.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqopen.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="close">
<tt class="descname">close</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#close" title="Permalink to this definition">¶</a></dt>
<dd><p>Close a DBSequence handle.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqclose.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="initial_value">
<tt class="descname">initial_value</tt><big>(</big><em>value</em><big>)</big><a class="headerlink" href="#initial_value" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the initial value for a sequence. This call is only effective
when the sequence is being created.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqinitial_value.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get">
<tt class="descname">get</tt><big>(</big><em>delta=1</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#get" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the next available element in the sequence and changes the
sequence value by delta.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get_dbp">
<tt class="descname">get_dbp</tt><big>(</big><big>)</big><a class="headerlink" href="#get_dbp" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the DB object associated to the DBSequence.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget_dbp.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get_key">
<tt class="descname">get_key</tt><big>(</big><big>)</big><a class="headerlink" href="#get_key" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the key for the sequence.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget_key.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="remove">
<tt class="descname">remove</tt><big>(</big><em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Removes the sequence from the database. This method should not be
called if there are other open handles on this sequence.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqremove.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get_cachesize">
<tt class="descname">get_cachesize</tt><big>(</big><big>)</big><a class="headerlink" href="#get_cachesize" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the current cache size.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget_cachesize.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="set_cachesize">
<tt class="descname">set_cachesize</tt><big>(</big><em>size</em><big>)</big><a class="headerlink" href="#set_cachesize" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure the number of elements cached by a sequence handle.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqset_cachesize.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get_flags">
<tt class="descname">get_flags</tt><big>(</big><big>)</big><a class="headerlink" href="#get_flags" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the current flags.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget_flags.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="set_flags">
<tt class="descname">set_flags</tt><big>(</big><em>flags</em><big>)</big><a class="headerlink" href="#set_flags" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure a sequence.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqset_flags.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="stat">
<tt class="descname">stat</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#stat" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a dictionary of sequence statistics with the following keys:</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="21%" />
<col width="79%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>wait</td>
<td>The number of times a thread of control was
forced to wait on the handle mutex.</td>
</tr>
<tr class="row-even"><td>nowait</td>
<td>The number of times that a thread
of control was able to obtain handle mutex
without waiting.</td>
</tr>
<tr class="row-odd"><td>current</td>
<td>The current value of the sequence
in the database.</td>
</tr>
<tr class="row-even"><td>value</td>
<td>The current cached value of the sequence.</td>
</tr>
<tr class="row-odd"><td>last_value</td>
<td>The last cached value of the sequence.</td>
</tr>
<tr class="row-even"><td>min</td>
<td>The minimum permitted value of the sequence.</td>
</tr>
<tr class="row-odd"><td>max</td>
<td>The maximum permitted value of the sequence.</td>
</tr>
<tr class="row-even"><td>cache_size</td>
<td>The number of values that will be cached in
this handle.</td>
</tr>
<tr class="row-odd"><td>flags</td>
<td>The flags value for the sequence.</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p><a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqstat.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="stat_print">
<tt class="descname">stat_print</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#stat_print" title="Permalink to this definition">¶</a></dt>
<dd><p>Prints diagnostic information.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqstat_print.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="get_range">
<tt class="descname">get_range</tt><big>(</big><big>)</big><a class="headerlink" href="#get_range" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a tuple representing the range of values in the sequence.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqget_range.html">More info...</a></p>
</dd></dl>
<dl class="function">
<dt id="set_range">
<tt class="descname">set_range</tt><big>(</big><em>(min</em>, <em>max)</em><big>)</big><a class="headerlink" href="#set_range" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure a sequence range.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/seqset_range.html">More info...</a></p>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">DBSequence</a><ul>
<li><a class="reference internal" href="#dbsequence-methods">DBSequence Methods</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="dblock.html"
title="previous chapter">DBLock</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="dbsite.html"
title="next chapter">DBSite</a></p>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="dbsite.html" title="DBSite"
>next</a> |</li>
<li class="right" >
<a href="dblock.html" title="DBLock"
>previous</a> |</li>
<li><a href="contents.html">PyBSDDB 6.0.0 documentation</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2008-2013 Jesus Cea Avion.
Last updated on Dec 04, 2013.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>
|