Debian Codegraph @

docs/api_reference/C/seqset_range.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>DB_SEQUENCE-&gt;set_range()</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 11.  The DB_SEQUENCE Handle" />
11 <link rel="prev" href="seqset_flags.html" title="DB_SEQUENCE-&gt;set_flags()" />
12 <link rel="next" href="seqstat.html" title="DB_SEQUENCE-&gt;stat()" />
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">DB_SEQUENCE-&gt;set_range()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqset_flags.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 The DB_SEQUENCE Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqstat.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="seqset_range"></a>DB_SEQUENCE-&gt;set_range()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_SEQUENCE-&gt;set_range(DB_SEQUENCE *seq, db_seq_t min, db_seq_t max); </pre>
45 <p>
46 Configure a sequence range. This call is only effective when the
47 sequence is being created. The range is limited to a signed 64 bit
48 integer.
49 </p>
50 <p>
51 The <code class="methodname">DB_SEQUENCE-&gt;set_range()</code> method may not be called after the
52 <a class="xref" href="seqopen.html" title="DB_SEQUENCE-&gt;open()">DB_SEQUENCE-&gt;open()</a> method is called.
53 </p>
54 <p>
55 The <code class="methodname">DB_SEQUENCE-&gt;set_range()</code> <span>
56 <span>
57 method returns a non-zero error value on failure and 0 on success.
58 </span>
59
60 </span>
61 </p>
62 <div class="sect2" lang="en" xml:lang="en">
63 <div class="titlepage">
64 <div>
65 <div>
66 <h3 class="title"><a id="idp54675672"></a>Parameters</h3>
67 </div>
68 </div>
69 </div>
70 <div class="sect3" lang="en" xml:lang="en">
71 <div class="titlepage">
72 <div>
73 <div>
74 <h4 class="title"><a id="idp54676664"></a>min</h4>
75 </div>
76 </div>
77 </div>
78 <p>
79 Specifies the minimum value for the sequence.
80 </p>
81 </div>
82 <div class="sect3" lang="en" xml:lang="en">
83 <div class="titlepage">
84 <div>
85 <div>
86 <h4 class="title"><a id="idp54697568"></a>max</h4>
87 </div>
88 </div>
89 </div>
90 <p>
91 Specifies the maximum value for the sequence.
92 </p>
93 </div>
94 </div>
95 <div class="sect2" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h3 class="title"><a id="idp54683664"></a>Errors</h3>
100 </div>
101 </div>
102 </div>
103 <p>
104 The <code class="methodname">DB_SEQUENCE-&gt;set_range()</code> <span>
105 <span>
106 method may fail and return one of the following non-zero errors:
107 </span>
108
109 </span>
110 </p>
111 <div class="sect3" lang="en" xml:lang="en">
112 <div class="titlepage">
113 <div>
114 <div>
115 <h4 class="title"><a id="idp54683336"></a>EINVAL</h4>
116 </div>
117 </div>
118 </div>
119 <p>
120 An invalid flag value or parameter was specified.
121 </p>
122 </div>
123 </div>
124 <div class="sect2" lang="en" xml:lang="en">
125 <div class="titlepage">
126 <div>
127 <div>
128 <h3 class="title"><a id="idp54690424"></a>Class</h3>
129 </div>
130 </div>
131 </div>
132 <p>
133 <a class="link" href="seq.html" title="Chapter 11.  The DB_SEQUENCE Handle">DB_SEQUENCE</a>
134 </p>
135 </div>
136 <div class="sect2" lang="en" xml:lang="en">
137 <div class="titlepage">
138 <div>
139 <div>
140 <h3 class="title"><a id="idp54692824"></a>See Also</h3>
141 </div>
142 </div>
143 </div>
144 <p>
145 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
146 </p>
147 </div>
148 </div>
149 <div class="navfooter">
150 <hr />
151 <table width="100%" summary="Navigation footer">
152 <tr>
153 <td width="40%" align="left"><a accesskey="p" href="seqset_flags.html">Prev</a> </td>
154 <td width="20%" align="center">
155 <a accesskey="u" href="seq.html">Up</a>
156 </td>
157 <td width="40%" align="right"> <a accesskey="n" href="seqstat.html">Next</a></td>
158 </tr>
159 <tr>
160 <td width="40%" align="left" valign="top">DB_SEQUENCE-&gt;set_flags() </td>
161 <td width="20%" align="center">
162 <a accesskey="h" href="index.html">Home</a>
163 </td>
164 <td width="40%" align="right" valign="top"> DB_SEQUENCE-&gt;stat()</td>
165 </tr>
166 </table>
167 </div>
168 </body>
169 </html>