diff options
Diffstat (limited to 'docs/programmer_reference/env_open.html')
| -rw-r--r-- | docs/programmer_reference/env_open.html | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/docs/programmer_reference/env_open.html b/docs/programmer_reference/env_open.html index d4b3f19f..8b36f064 100644 --- a/docs/programmer_reference/env_open.html +++ b/docs/programmer_reference/env_open.html @@ -14,17 +14,16 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> - <th colspan="3" align="center">Opening databases within the environment</th> + <th colspan="3" align="center">Opening databases within the + environment</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="env_size.html">Prev</a> </td> - <th width="60%" align="center">Chapter 9. - The Berkeley DB Environment - </th> + <th width="60%" align="center">Chapter 9. The Berkeley DB Environment </th> <td width="20%" align="right"> <a accesskey="n" href="env_error.html">Next</a></td> </tr> </table> @@ -34,21 +33,29 @@ <div class="titlepage"> <div> <div> - <h2 class="title" style="clear: both"><a id="env_open"></a>Opening databases within the environment</h2> + <h2 class="title" style="clear: both"><a id="env_open"></a>Opening databases within the + environment</h2> </div> </div> </div> - <p>Once the environment has been created, database handles may be created -and then opened within the environment. This is done by calling the -<a href="../api_reference/C/dbcreate.html" class="olink">db_create()</a> function and specifying the appropriate environment -as an argument.</p> - <p>File naming, database operations, and error handling will all be done as -specified for the environment. For example, if the <a href="../api_reference/C/envopen.html#envopen_DB_INIT_LOCK" class="olink">DB_INIT_LOCK</a> -or <a href="../api_reference/C/envopen.html#envopen_DB_INIT_CDB" class="olink">DB_INIT_CDB</a> flags were specified when the environment was -created or joined, database operations will automatically perform all -necessary locking operations for the application.</p> - <p>The following is a simple example of opening two databases within a -database environment:</p> + <p> + Once the environment has been created, database handles may + be created and then opened within the environment. This is + done by calling the <a href="../api_reference/C/dbcreate.html" class="olink">db_create()</a> function and specifying the + appropriate environment as an argument. + </p> + <p> + File naming, database operations, and error handling will + all be done as specified for the environment. For example, if + the <a href="../api_reference/C/envopen.html#envopen_DB_INIT_LOCK" class="olink">DB_INIT_LOCK</a> or <a href="../api_reference/C/envopen.html#envopen_DB_INIT_CDB" class="olink">DB_INIT_CDB</a> flags were specified when + the environment was created or joined, database operations + will automatically perform all necessary locking operations + for the application. + </p> + <p> + The following is a simple example of opening two databases + within a database environment: + </p> <a id="prog_env28"></a> <pre class="programlisting">DB_ENV *dbenv; DB *dbp1, *dbp2; @@ -56,7 +63,7 @@ database environment:</p> dbenv = NULL; dbp1 = dbp2 = NULL; - /* + /* * Create an environment and initialize it for additional error * reporting. */ |
