Debian Codegraph @

docs/api_reference/C/dbstat_print.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-&gt;stat_print()</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="db.html" title="Chapter 2.  The DB Handle" />
11 <link rel="prev" href="dbstat.html" title="DB-&gt;stat()" />
12 <link rel="next" href="dbsync.html" title="DB-&gt;sync()" />
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-&gt;stat_print()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbstat.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 2. 
26 The DB Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbsync.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="dbstat_print"></a>DB-&gt;stat_print()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB-&gt;stat_print(DB *db, u_int32_t flags); </pre>
45 <p>
46 The <code class="methodname">DB-&gt;stat_print()</code> method displays the
47 database statistical information, as described for the
48 <a class="xref" href="dbstat.html" title="DB-&gt;stat()">DB-&gt;stat()</a> method. The
49 information is printed to a specified output channel (see the
50 <a class="xref" href="envset_msgfile.html" title="DB_ENV-&gt;set_msgfile()">DB_ENV-&gt;set_msgfile()</a>
51 method for more information), or passed to an application callback
52 function (see the
53 <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a>
54 method for more information).
55 </p>
56 <p>
57 The <code class="methodname">DB-&gt;stat_print()</code> method may not be called before the
58 <a class="xref" href="dbopen.html" title="DB-&gt;open()">DB-&gt;open()</a> method is called.
59 </p>
60 <p>
61 The <code class="methodname">DB-&gt;stat_print()</code> <span>
62 <span>
63 method returns a non-zero error value on failure and 0 on success.
64 </span>
65
66 </span>
67 </p>
68 <p>
69 For Berkeley DB SQL table or index statistics, see
70 <a class="xref" href="dbsql.html#dbsql_command_feature" title="Command Line Features Unique to dbsql">Command Line Features Unique to dbsql</a>.
71 </p>
72 <div class="sect2" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h3 class="title"><a id="idp50702032"></a>Parameters</h3>
77 </div>
78 </div>
79 </div>
80 <div class="sect3" lang="en" xml:lang="en">
81 <div class="titlepage">
82 <div>
83 <div>
84 <h4 class="title"><a id="idp50702224"></a>flags</h4>
85 </div>
86 </div>
87 </div>
88 <p>
89 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
90 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
91 together one or more of the following values:
92 </p>
93 <div class="itemizedlist">
94 <ul type="disc">
95 <li>
96 <p><a id="stat_print_DB_FAST_STAT"></a>
97 <code class="literal">DB_FAST_STAT</code>
98 </p>
99 <p>
100 Return only the values which do not require traversal of the database.
101 Among other things, this flag makes it possible for applications to
102 request key and record counts without incurring the performance
103 penalty of traversing the entire database.
104 </p>
105 </li>
106 <li>
107 <p><a id="stat_print_DB_STAT_ALL"></a>
108 <code class="literal">DB_STAT_ALL</code>
109 </p>
110 <p>
111 Display all available information.
112 </p>
113 </li>
114 </ul>
115 </div>
116 </div>
117 </div>
118 <div class="sect2" lang="en" xml:lang="en">
119 <div class="titlepage">
120 <div>
121 <div>
122 <h3 class="title"><a id="idp50705320"></a>Class</h3>
123 </div>
124 </div>
125 </div>
126 <p>
127 <a class="link" href="db.html" title="Chapter 2.  The DB Handle">DB</a>
128 </p>
129 </div>
130 <div class="sect2" lang="en" xml:lang="en">
131 <div class="titlepage">
132 <div>
133 <div>
134 <h3 class="title"><a id="idp50635496"></a>See Also</h3>
135 </div>
136 </div>
137 </div>
138 <p>
139 <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a>
140 </p>
141 </div>
142 </div>
143 <div class="navfooter">
144 <hr />
145 <table width="100%" summary="Navigation footer">
146 <tr>
147 <td width="40%" align="left"><a accesskey="p" href="dbstat.html">Prev</a> </td>
148 <td width="20%" align="center">
149 <a accesskey="u" href="db.html">Up</a>
150 </td>
151 <td width="40%" align="right"> <a accesskey="n" href="dbsync.html">Next</a></td>
152 </tr>
153 <tr>
154 <td width="40%" align="left" valign="top">DB-&gt;stat() </td>
155 <td width="20%" align="center">
156 <a accesskey="h" href="index.html">Home</a>
157 </td>
158 <td width="40%" align="right" valign="top"> DB-&gt;sync()</td>
159 </tr>
160 </table>
161 </div>
162 </body>
163 </html>