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