1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- moved to packages.ent because they are often forgotten...
|
---|
8 | <!ENTITY sqlite-dl-version "3360000">
|
---|
9 | <!ENTITY sqlite-doc-version "3360000">
|
---|
10 |
|
---|
11 | When updating, do not forget the above entities... They are anyway -->
|
---|
12 |
|
---|
13 | <!ENTITY sqlite-download-http "https://sqlite.org/&sqlite-year;/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
14 | <!ENTITY sqlite-download-ftp " ">
|
---|
15 | <!ENTITY sqlite-md5sum "dbbfbc9bd226c7b16721aba968a9a6c6">
|
---|
16 | <!ENTITY sqlite-size "3.2 MB">
|
---|
17 | <!ENTITY sqlite-buildsize "81 MB">
|
---|
18 | <!ENTITY sqlite-time "0.3 SBU (Using parallelism=4)">
|
---|
19 |
|
---|
20 | <!ENTITY sqlite-docs-download "https://sqlite.org/&sqlite-year;/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
21 | <!ENTITY sqlite-docs-md5sum "c83a7c4c8551707cea8ebaac2306a6e8">
|
---|
22 | <!ENTITY sqlite-docs-size "11 MB">
|
---|
23 | ]>
|
---|
24 |
|
---|
25 | <sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
---|
26 | <?dbhtml filename="sqlite.html"?>
|
---|
27 |
|
---|
28 |
|
---|
29 | <title>SQLite-&sqlite-version;</title>
|
---|
30 |
|
---|
31 | <indexterm zone="sqlite">
|
---|
32 | <primary sortas="a-SQLite">SQLite</primary>
|
---|
33 | </indexterm>
|
---|
34 |
|
---|
35 | <sect2 role="package">
|
---|
36 | <title>Introduction to SQLite</title>
|
---|
37 |
|
---|
38 | <para>
|
---|
39 | The <application>SQLite</application> package is a software library that
|
---|
40 | implements a self-contained, serverless, zero-configuration, transactional
|
---|
41 | SQL database engine.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | &lfs122_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (HTTP): <ulink url="&sqlite-download-http;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download (FTP): <ulink url="&sqlite-download-ftp;"/>
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download MD5 sum: &sqlite-md5sum;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Download size: &sqlite-size;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated disk space required: &sqlite-buildsize;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Estimated build time: &sqlite-time;
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
81 | <itemizedlist spacing="compact">
|
---|
82 | <title>Optional Documentation</title>
|
---|
83 | <listitem>
|
---|
84 | <para>
|
---|
85 | Download (HTTP): <ulink url="&sqlite-docs-download;"/>
|
---|
86 | </para>
|
---|
87 | </listitem>
|
---|
88 | <listitem>
|
---|
89 | <para>
|
---|
90 | Download MD5 sum: &sqlite-docs-md5sum;
|
---|
91 | </para>
|
---|
92 | </listitem>
|
---|
93 | <listitem>
|
---|
94 | <para>
|
---|
95 | Download size: &sqlite-docs-size;
|
---|
96 | </para>
|
---|
97 | </listitem>
|
---|
98 | </itemizedlist>
|
---|
99 |
|
---|
100 | <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
---|
101 |
|
---|
102 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
103 | <para role="optional">
|
---|
104 | <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink> and
|
---|
105 | <xref linkend="unzip"/> (required to unzip the documentation)
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2 role="installation">
|
---|
111 | <title>Installation of SQLite</title>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | If you downloaded the optional documentation, issue the following command
|
---|
115 | to install the documentation into the source tree:
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Install <application>SQLite</application> by running the following
|
---|
122 | commands:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen><userinput>./configure --prefix=/usr \
|
---|
126 | --disable-static \
|
---|
127 | --enable-fts{4,5} \
|
---|
128 | CPPFLAGS="-D SQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
129 | -D SQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
130 | -D SQLITE_ENABLE_DBSTAT_VTAB=1 \
|
---|
131 | -D SQLITE_SECURE_DELETE=1" &&
|
---|
132 | make</userinput></screen>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | This package does not come with a test suite.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | If you downloaded the optional documentation, issue the following commands
|
---|
146 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
147 | </para>
|
---|
148 |
|
---|
149 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
150 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
151 |
|
---|
152 | </sect2>
|
---|
153 |
|
---|
154 | <sect2 role="commands">
|
---|
155 | <title>Command Explanations</title>
|
---|
156 |
|
---|
157 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
158 | href="../../xincludes/static-libraries.xml"/>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | <parameter>--enable-fts{4,5}</parameter>: These switches enable
|
---|
162 | support for version 3, 4 and 5 of the full text search (FTS)
|
---|
163 | extension. Note that the <option>--enable-fts4</option> switch
|
---|
164 | enables support for both FTS version 4 and FTS version 3.
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <para>
|
---|
168 | <parameter>CPPFLAGS="-D SQLITE_ENABLE_COLUMN_METADATA=1 ... </parameter>:
|
---|
169 | Some applications require these options to be turned on.
|
---|
170 | The only way to do this is to include them in
|
---|
171 | the <envar>CFLAGS</envar> or <envar>CPPFLAGS</envar>.
|
---|
172 | We use the latter so the default value (or any value set by the user)
|
---|
173 | of <envar>CFLAGS</envar> won't be affected.
|
---|
174 | For further information on what can be specified see <ulink
|
---|
175 | url="https://www.sqlite.org/compile.html"/>.
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="content">
|
---|
181 | <title>Contents</title>
|
---|
182 |
|
---|
183 | <segmentedlist>
|
---|
184 | <segtitle>Installed Program</segtitle>
|
---|
185 | <segtitle>Installed Library</segtitle>
|
---|
186 | <segtitle>Installed Directory</segtitle>
|
---|
187 |
|
---|
188 | <seglistitem>
|
---|
189 | <seg>
|
---|
190 | sqlite3
|
---|
191 | </seg>
|
---|
192 | <seg>
|
---|
193 | libsqlite3.so
|
---|
194 | </seg>
|
---|
195 | <seg>
|
---|
196 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
197 | </seg>
|
---|
198 | </seglistitem>
|
---|
199 | </segmentedlist>
|
---|
200 |
|
---|
201 | <variablelist>
|
---|
202 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
203 | <?dbfo list-presentation="list"?>
|
---|
204 | <?dbhtml list-presentation="table"?>
|
---|
205 |
|
---|
206 | <varlistentry id="sqlite3">
|
---|
207 | <term><command>sqlite3</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>
|
---|
210 | is a terminal-based front-end to the <application>SQLite</application>
|
---|
211 | library that can evaluate queries interactively and display the
|
---|
212 | results
|
---|
213 | </para>
|
---|
214 | <indexterm zone="sqlite sqlite3">
|
---|
215 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="libsqlite3">
|
---|
221 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
222 | <listitem>
|
---|
223 | <para>
|
---|
224 | contains the <application>SQLite</application> API functions
|
---|
225 | </para>
|
---|
226 | <indexterm zone="sqlite libsqlite3">
|
---|
227 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
228 | </indexterm>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 |
|
---|
232 | </variablelist>
|
---|
233 |
|
---|
234 | </sect2>
|
---|
235 |
|
---|
236 | </sect1>
|
---|