003 File Manager
Current Path:
/usr/local/share/doc/db5/gsg/C
usr
/
local
/
share
/
doc
/
db5
/
gsg
/
C
/
π
..
π
BerkeleyDB-Core-C-GSG.pdf
(433.36 KB)
π
CoreCursorUsage.html
(12.37 KB)
π
CoreDBAdmin.html
(5.38 KB)
π
CoreDbUsage.html
(11.13 KB)
π
CoreEnvUsage.html
(6.19 KB)
π
Cursors.html
(5.98 KB)
π
DBEntry.html
(7.62 KB)
π
DBOpenFlags.html
(4.32 KB)
π
DbUsage.html
(17.74 KB)
π
DeleteEntryWCursor.html
(3.62 KB)
π
Positioning.html
(19.17 KB)
π
PutEntryWCursor.html
(8.17 KB)
π
ReplacingEntryWCursor.html
(4.87 KB)
π
accessmethods.html
(12.5 KB)
π
btree.html
(22.02 KB)
π
cachesize.html
(4.57 KB)
π
concepts.html
(8.63 KB)
π
coredbclose.html
(4.19 KB)
π
coreindexusage.html
(28.29 KB)
π
cstructs.html
(10.25 KB)
π
databaseLimits.html
(3.77 KB)
π
databases.html
(6.45 KB)
π
dbErrorReporting.html
(6.91 KB)
π
dbconfig.html
(17.64 KB)
π
environments.html
(6.28 KB)
π
gettingStarted.css
(1.13 KB)
π
gettingit.html
(3.45 KB)
π
index.html
(17.23 KB)
π
indexes.html
(12.97 KB)
π
introduction.html
(9.62 KB)
π
joins.html
(10.61 KB)
π
keyCreator.html
(10.36 KB)
π
moreinfo.html
(6.96 KB)
π
preface.html
(6.41 KB)
π
readSecondary.html
(5.19 KB)
π
returns.html
(4.45 KB)
π
secondaryCursor.html
(5.61 KB)
π
secondaryDelete.html
(6.53 KB)
π
usingDbt.html
(15.64 KB)
Editing: DBOpenFlags.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!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>Database Open Flags</title> <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="Getting Started with Berkeley DB" /> <link rel="up" href="databases.html" title="ChapterΒ 2.Β Databases" /> <link rel="prev" href="coredbclose.html" title="Closing Databases" /> <link rel="next" href="CoreDBAdmin.html" title="Administrative Methods" /> </head> <body> <div xmlns="" class="navheader"> <div class="libver"> <p>Library Version 11.2.5.3</p> </div> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Database Open Flags</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="coredbclose.html">Prev</a>Β </td> <th width="60%" align="center">ChapterΒ 2.Β Databases</th> <td width="20%" align="right">Β <a accesskey="n" href="CoreDBAdmin.html">Next</a></td> </tr> </table> <hr /> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="DBOpenFlags"></a>Database Open Flags</h2> </div> </div> </div> <p> The following are the flags that you may want to use at database open time. Note that this list is not exhaustive β it includes only those flags likely to be of interest for introductory, single-threaded database applications. For a complete list of the flags available to you, see the <em class="citetitle">Berkeley DB C API Reference Guide.</em> </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> To specify more than one flag on the call to <span><code class="methodname">DB->open()</code>,</span> you must bitwise inclusively OR them together: </p> <a id="c_db3"></a> <pre class="programlisting">u_int32_t open_flags = DB_CREATE | DB_EXCL;</pre> </div> <div class="itemizedlist"> <ul type="disc"> <li> <p> <code class="literal">DB_CREATE</code> </p> <p> If the database does not currently exist, create it. By default, the database open fails if the database does not already exist. </p> </li> <li> <p> <code class="literal">DB_EXCL</code> </p> <p> Exclusive database creation. Causes the database open to fail if the database already exists. This flag is only meaningful when used with <code class="literal">DB_CREATE</code>. </p> </li> <li> <p> <code class="literal">DB_RDONLY</code> </p> <p> Open the database for read operations only. Causes any subsequent database write operations to fail. </p> </li> <li> <p> <code class="literal">DB_TRUNCATE</code> </p> <p> Physically truncate (empty) the on-disk file that contains the database. Causes DB to delete all databases physically contained in that file. </p> </li> </ul> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="coredbclose.html">Prev</a>Β </td> <td width="20%" align="center"> <a accesskey="u" href="databases.html">Up</a> </td> <td width="40%" align="right">Β <a accesskey="n" href="CoreDBAdmin.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Closing DatabasesΒ </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top">Β Administrative Methods</td> </tr> </table> </div> </body> </html>
Upload File
Create Folder