summaryrefslogtreecommitdiff
path: root/docs/installation/blob-support.html
blob: 8c507e662e4ecbf833eb7be6e7f3431c7b3a95f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?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>Binary Large Object Support</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="Berkeley DB Installation and Build Guide" />
    <link rel="up" href="upgrade_60_toc.html" title="Chapter 10.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0" />
    <link rel="prev" href="upgrade_60_toc.html" title="Chapter 10.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0" />
    <link rel="next" href="rep_views.html" title="Replication Views" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <div class="libver">
        <p>Library Version 12.1.6.1</p>
      </div>
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Binary Large Object Support</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="upgrade_60_toc.html">Prev</a> </td>
          <th width="60%" align="center">Chapter 10.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0 </th>
          <td width="20%" align="right"> <a accesskey="n" href="rep_views.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="blob-support"></a>Binary Large Object Support</h2>
          </div>
        </div>
      </div>
      <div class="toc">
        <dl>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idp865296">New Functions</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idp998896">New Flags Accepted by Blob Streaming Interfaces</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idp1063832">Other New Flags</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idp1064912">New Pragma</a>
            </span>
          </dt>
        </dl>
      </div>
      <p> 
            Berkeley DB now has improved facilities for managing
            binary large objects (blobs). There is a new streaming
            interface to efficiently read and write blobs. There are
            new configuration interfaces to set an optional size
            threshold above which an object is created as a blob, and
            to manage the location of blob storage. A new SQL pragma
            enables SQL users to set a similar optional size threshold
            above which rows are stored internally in Berkeley DB as
            blobs.
        </p>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idp865296"></a>New Functions</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_close.html" class="olink">DB_STREAM-&gt;close()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_read.html" class="olink">DB_STREAM-&gt;read()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_size.html" class="olink">DB_STREAM-&gt;size()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_write.html" class="olink">DB_STREAM-&gt;write()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envset_blob_threshold.html" class="olink">DB_ENV-&gt;set_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_blob_threshold.html" class="olink">DB_ENV-&gt;get_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/set_blob_threshold.html" class="olink">DB-&gt;set_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/get_blob_threshold.html" class="olink">DB-&gt;get_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envset_blob_dir.html" class="olink">DB_ENV-&gt;set_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_blob_dir.html" class="olink">DB_ENV-&gt;get_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/set_blob_dir.html" class="olink">DB-&gt;set_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/get_blob_dir.html" class="olink">DB-&gt;get_blob_dir()</a>
              </code>
            </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idp998896"></a>New Flags Accepted by Blob Streaming Interfaces</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_READ" class="olink">DB_STREAM_READ</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a></li>
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_WRITE" class="olink">DB_STREAM_WRITE</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a></li>
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_SYNC_WRITE" class="olink">DB_STREAM_SYNC_WRITE</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a> and <a href="../api_reference/C/dbstream_write.html" class="olink">DB_STREAM-&gt;write()</a></li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idp1063832"></a>Other New Flags</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li><a href="../api_reference/C/dbt.html#dbt_DB_DBT_BLOB" class="olink">DB_DBT_BLOB</a> — Used on the data DBT
                    accepted by <a href="../api_reference/C/dbput.html" class="olink">DB-&gt;put()</a> and <a href="../api_reference/C/dbcput.html" class="olink">DBC-&gt;put()</a> to indicate that
                    the DBT is a blob.
                </li>
            <li><a href="../api_reference/C/envlog_set_config.html#log_set_config_DB_LOG_BLOB" class="olink">DB_LOG_BLOB</a> — Accepted by
                    <a href="../api_reference/C/envlog_set_config.html" class="olink">DB_ENV-&gt;log_set_config()</a> and <a href="../api_reference/C/envlog_get_config.html" class="olink">DB_ENV-&gt;log_get_config()</a> to
                    indicate full logging of blobs.
                </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idp1064912"></a>New Pragma</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">PRAGMA large_record_opt[=n]</code>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="upgrade_60_toc.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="upgrade_60_toc.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="rep_views.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Chapter 10.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0  </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Replication Views</td>
        </tr>
      </table>
    </div>
  </body>
</html>