Debian Codegraph @

docs/bdb-sql/bfile-extension.html

raw symbols SCIP
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>Appendix A. Using the BFILE Extension</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 the Oracle Berkeley DB SQL APIs" />
10 <link rel="up" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" />
11 <link rel="prev" href="datamigration.html" title="Data Migration" />
12 <link rel="next" href="bfile-sql.html" title="BFILE SQL Objects and Functions" />
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">Appendix A. Using the BFILE Extension</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="datamigration.html">Prev</a> </td>
25 <th width="60%" align="center"> </th>
26 <td width="20%" align="right"> <a accesskey="n" href="bfile-sql.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="appendix" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title"><a id="bfile-extension"></a>Appendix A. Using the BFILE Extension</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 The BFILE data type allows the BDB SQL interface to access binary files that
41 are stored in the file system outside of the database. The binary
42 file can be queried in exactly the same way as any other data type
43 stored in the database, but Berkeley DB is able to save space in the
44 database file by not embedding a large amount of binary data in it.
45 This also helps overall database performance.
46 </p>
47 <p>
48 Internally, a BFILE column or attribute stores a BFILE locater,
49 which serves as a pointer to the binary file. The locater maintains
50 the directory alias and the filename. You can change the path of
51 BFILE without affecting the base table by using the BFILENAME function.
52 BFILE is somewhat like the BLOB data type, but it does not participate in
53 transactions and it is not recoverable. Instead, the underlying
54 operating system is expected to provide file integrity and durability.
55 </p>
56 <p>
57 The remainder of this section describes the various objects and
58 functions that the BFILE extension makes available to you.
59 In addition, complete examples of using these extensions are
60 available with your Berkeley DB distribution. They are placed in the
61 following location:
62 </p>
63 <pre class="programlisting">&lt;db-dist&gt;/lang/sql/sqlite/ext/bfile/examples</pre>
64 <div class="sect1" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h2 class="title" style="clear: both"><a id="bfile-support"></a>Supported Platforms and Languages</h2>
69 </div>
70 </div>
71 </div>
72 <p>
73 The BFILE extension is currently only supported for *nix platforms.
74 </p>
75 <p>
76 The BFILE extension it is not available in your library by
77 default. Instead, you must enable the extension when you
78 compile Berkeley DB. See the <em class="citetitle">Berkeley DB Installation and Build Guide</em>
79 for information on how to enable this extension when you build
80 Berkeley DB. Once you have enabled the extension, applications will
81 also need to load the BFILE library file:
82 <code class="literal">libbfile_ext.so</code>.
83 </p>
84 <p>
85 By default, the BFILE extension provides support for additional SQL
86 statements. With some extra configuration at Berkeley DB compile
87 time, you can also obtain support for extensions to the SQLite
88 C/C++ interface. Both the SQL extensions and the extensions
89 to the SQLite C/C++ interface are described in the
90 following sections.
91 </p>
92 </div>
93 </div>
94 <div class="navfooter">
95 <hr />
96 <table width="100%" summary="Navigation footer">
97 <tr>
98 <td width="40%" align="left"><a accesskey="p" href="datamigration.html">Prev</a> </td>
99 <td width="20%" align="center"> </td>
100 <td width="40%" align="right"> <a accesskey="n" href="bfile-sql.html">Next</a></td>
101 </tr>
102 <tr>
103 <td width="40%" align="left" valign="top">Data Migration </td>
104 <td width="20%" align="center">
105 <a accesskey="h" href="index.html">Home</a>
106 </td>
107 <td width="40%" align="right" valign="top"> BFILE SQL Objects and Functions</td>
108 </tr>
109 </table>
110 </div>
111 </body>
112 </html>