• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/docs/gsg_db_rep/C/
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.62.4" />
9    <link rel="home" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" />
10    <link rel="up" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" />
11    <link rel="previous" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" />
12    <link rel="next" href="introduction.html" title="Chapter��1.��Introduction" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Preface</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a>��</td>
22          <th width="60%" align="center">��</th>
23          <td width="20%" align="right">��<a accesskey="n" href="introduction.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="preface" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title"><a id="preface"></a>Preface</h2>
33          </div>
34        </div>
35        <div></div>
36      </div>
37      <div class="toc">
38        <p>
39          <b>Table of Contents</b>
40        </p>
41        <dl>
42          <dt>
43            <span class="sect1">
44              <a href="preface.html#conventions">Conventions Used in this Book</a>
45            </span>
46          </dt>
47          <dd>
48            <dl>
49              <dt>
50                <span class="sect2">
51                  <a href="preface.html#moreinfo">For More Information</a>
52                </span>
53              </dt>
54            </dl>
55          </dd>
56        </dl>
57      </div>
58      <p>
59        This document describes how to write replicated Berkeley DB applications.
60        The APIs used to implement replication in your application 
61        are described here. This book describes the concepts surrounding replication, the scenarios under which you
62        might choose to use it, and the architectural requirements that a replication application has over a
63        transactional application.
64    </p>
65      <p>
66        This book is aimed at the software engineer responsible for writing a
67        replicated DB application.
68    </p>
69      <p>
70        This book assumes that you have already read and understood the
71        concepts contained in the
72        <span><i class="citetitle">Berkeley DB Getting Started with Transaction Processing</i> guide.</span>
73        
74     </p>
75      <div class="sect1" lang="en" xml:lang="en">
76        <div class="titlepage">
77          <div>
78            <div>
79              <h2 class="title" style="clear: both"><a id="conventions"></a>Conventions Used in this Book</h2>
80            </div>
81          </div>
82          <div></div>
83        </div>
84        <p>
85        The following typographical conventions are used within in this manual:
86    </p>
87        <p>
88        Structure names are represented in <tt class="classname">monospaced font</tt>, as are <tt class="methodname">method
89        names</tt>. For example: "<tt class="methodname">DB-&gt;open()</tt> is a method
90		on a <tt class="classname">DB</tt> handle."
91    </p>
92        <p>
93        Variable or non-literal text is presented in <span class="emphasis"><em>italics</em></span>. For example: "Go to your
94        <span class="emphasis"><em>DB_INSTALL</em></span> directory."
95    </p>
96        <p>
97        Program examples are displayed in a <tt class="classname">monospaced font</tt> on a shaded background.
98        For example:
99    </p>
100        <pre class="programlisting">/* File: gettingstarted_common.h */
101typedef struct stock_dbs {
102    DB *inventory_dbp; /* Database containing inventory information */
103    DB *vendor_dbp;    /* Database containing vendor information */
104
105    char *db_home_dir;       /* Directory containing the database files */
106    char *inventory_db_name; /* Name of the inventory database */
107    char *vendor_db_name;    /* Name of the vendor database */
108} STOCK_DBS; </pre>
109        <p>
110        In some situations, programming examples are updated from one chapter to the next. When
111        this occurs, the new code is presented in <b class="userinput"><tt>monospaced bold</tt></b> font. For example:
112    </p>
113        <pre class="programlisting">typedef struct stock_dbs {
114    DB *inventory_dbp; /* Database containing inventory information */
115    DB *vendor_dbp;    /* Database containing vendor information */
116    <b class="userinput"><tt>DB *itemname_sdbp; /* Index based on the item name index */</tt></b>
117    char *db_home_dir;       /* Directory containing the database files */
118    <b class="userinput"><tt>char *itemname_db_name;  /* Itemname secondary database */</tt></b>
119    char *inventory_db_name; /* Name of the inventory database */
120    char *vendor_db_name;    /* Name of the vendor database */
121} STOCK_DBS; </pre>
122        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
123          <h3 class="title">Note</h3>
124          <p>
125            Finally, notes of special interest are represented using a note block such
126            as this.
127        </p>
128        </div>
129        <div class="sect2" lang="en" xml:lang="en">
130          <div class="titlepage">
131            <div>
132              <div>
133                <h3 class="title"><a id="moreinfo"></a>For More Information</h3>
134              </div>
135            </div>
136            <div></div>
137          </div>
138          <p>
139            Beyond this manual, you may also find the following sources of information useful when building a
140            transactional DB application:
141        </p>
142          <div class="itemizedlist">
143            <ul type="disc">
144              <li>
145                <p>
146                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/C/index.html" target="_top">
147                        Getting Started with Transaction Processing for C
148                    </a> 
149                     
150                     
151
152
153                     
154                     
155                </p>
156              </li>
157              <li>
158                <p>
159                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/index.html" target="_top">
160                        Getting Started with Berkeley DB for C
161                    </a> 
162                     
163                     
164
165
166
167                     
168                     
169                </p>
170              </li>
171              <li>
172                <p>
173                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/toc.html" target="_top">
174                        Berkeley DB Programmer's Reference Guide
175                    </a>
176                </p>
177              </li>
178              <li>
179                <p>
180                    <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/frame.html" target="_top">
181                        Berkeley DB C API
182                    </a>
183                    
184                    
185                </p>
186              </li>
187            </ul>
188          </div>
189        </div>
190      </div>
191    </div>
192    <div class="navfooter">
193      <hr />
194      <table width="100%" summary="Navigation footer">
195        <tr>
196          <td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a>��</td>
197          <td width="20%" align="center">
198            <a accesskey="u" href="index.html">Up</a>
199          </td>
200          <td width="40%" align="right">��<a accesskey="n" href="introduction.html">Next</a></td>
201        </tr>
202        <tr>
203          <td width="40%" align="left" valign="top">Getting Started with Replicated Berkeley DB Applications��</td>
204          <td width="20%" align="center">
205            <a accesskey="h" href="index.html">Home</a>
206          </td>
207          <td width="40%" align="right" valign="top">��Chapter��1.��Introduction</td>
208        </tr>
209      </table>
210    </div>
211  </body>
212</html>
213