Debian Codegraph @

docs/gsg_txn/C/preface.html

raw
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>Preface</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
10 <link rel="up" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
11 <link rel="prev" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
12 <link rel="next" href="moreinfo.html" title="For More Information" />
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">Preface</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td>
25 <th width="60%" align="center"> </th>
26 <td width="20%" align="right"> <a accesskey="n" href="moreinfo.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="preface" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title"><a id="preface"></a>Preface</h2>
36 </div>
37 </div>
38 </div>
39 <div class="toc">
40 <p>
41 <b>Table of Contents</b>
42 </p>
43 <dl>
44 <dt>
45 <span class="sect1">
46 <a href="preface.html#conventions">Conventions Used in this Book</a>
47 </span>
48 </dt>
49 <dt>
50 <span class="sect1">
51 <a href="moreinfo.html">For More Information</a>
52 </span>
53 </dt>
54 <dd>
55 <dl>
56 <dt>
57 <span class="sect2">
58 <a href="moreinfo.html#contact_us">Contact Us</a>
59 </span>
60 </dt>
61 </dl>
62 </dd>
63 </dl>
64 </div>
65 <p>
66 This document describes how to use transactions with your Berkeley DB
67 applications. It is intended to describe how to
68 transaction protect your application's data. The APIs used to perform this task
69 are described here, as are the environment infrastructure and administrative tasks
70 required by a transactional application. This book also
71 describes multi-threaded <span>and
72 multi-process</span> DB applications and the requirements they
73 have for deadlock detection.
74 </p>
75 <p>
76 This book describes Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides library
77 version 11.2.5.3.
78 </p>
79 <p>
80 This book is aimed at the software engineer responsible for writing a
81 transactional DB application.
82 </p>
83 <p>
84 This book assumes that you have already read and understood the
85 concepts contained in the
86 <span><em class="citetitle">Getting Started with Berkeley DB</em>
87 guide.</span>
88
89
90 </p>
91 <div class="sect1" lang="en" xml:lang="en">
92 <div class="titlepage">
93 <div>
94 <div>
95 <h2 class="title" style="clear: both"><a id="conventions"></a>Conventions Used in this Book</h2>
96 </div>
97 </div>
98 </div>
99 <p>
100 The following typographical conventions are used within in this manual:
101 </p>
102 <p>
103 Structure names are represented in <code class="classname">monospaced font</code>, as are <code class="methodname">method
104 names</code>. For example: "<code class="methodname">DB-&gt;open()</code> is a method
105 on a <code class="classname">DB</code> handle."
106 </p>
107 <p>
108 Variable or non-literal text is presented in <span class="emphasis"><em>italics</em></span>. For example: "Go to your
109 <span class="emphasis"><em>DB_INSTALL</em></span> directory."
110 </p>
111 <p>
112 Program examples are displayed in a <code class="classname">monospaced font</code> on a shaded background.
113 For example:
114 </p>
115 <pre class="programlisting">/* File: gettingstarted_common.h */
116 typedef struct stock_dbs {
117 DB *inventory_dbp; /* Database containing inventory information */
118 DB *vendor_dbp; /* Database containing vendor information */
119
120 char *db_home_dir; /* Directory containing the database files */
121 char *inventory_db_name; /* Name of the inventory database */
122 char *vendor_db_name; /* Name of the vendor database */
123 } STOCK_DBS; </pre>
124 <p>
125 In some situations, programming examples are updated from one chapter to the next. When
126 this occurs, the new code is presented in <strong class="userinput"><code>monospaced bold</code></strong> font. For example:
127 </p>
128 <pre class="programlisting">typedef struct stock_dbs {
129 DB *inventory_dbp; /* Database containing inventory information */
130 DB *vendor_dbp; /* Database containing vendor information */
131 <strong class="userinput"><code>DB *itemname_sdbp; /* Index based on the item name index */</code></strong>
132 char *db_home_dir; /* Directory containing the database files */
133 <strong class="userinput"><code>char *itemname_db_name; /* Itemname secondary database */</code></strong>
134 char *inventory_db_name; /* Name of the inventory database */
135 char *vendor_db_name; /* Name of the vendor database */
136 } STOCK_DBS; </pre>
137 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
138 <h3 class="title">Note</h3>
139 <p>
140 Finally, notes of special interest are represented using a note block such
141 as this.
142 </p>
143 </div>
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="index.html">Prev</a> </td>
151 <td width="20%" align="center"> </td>
152 <td width="40%" align="right"> <a accesskey="n" href="moreinfo.html">Next</a></td>
153 </tr>
154 <tr>
155 <td width="40%" align="left" valign="top">Getting Started with Berkeley DB Transaction Processing </td>
156 <td width="20%" align="center">
157 <a accesskey="h" href="index.html">Home</a>
158 </td>
159 <td width="40%" align="right" valign="top"> For More Information</td>
160 </tr>
161 </table>
162 </div>
163 </body>
164 </html>