[e2a0e91] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[2222949] | 7 | <!-- moved to packages.ent because they are often forgotten...
|
---|
[aa5c3a7] | 8 | <!ENTITY sqlite-dl-version "3360000">
|
---|
| 9 | <!ENTITY sqlite-doc-version "3360000">
|
---|
[b00c15b] | 10 |
|
---|
[2222949] | 11 | When updating, do not forget the above entities... They are anyway -->
|
---|
[8cce479c] | 12 |
|
---|
[79a6c292] | 13 | <!ENTITY sqlite-download-http "https://sqlite.org/&sqlite-year;/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
[e2a0e91] | 14 | <!ENTITY sqlite-download-ftp " ">
|
---|
[0ff4c32] | 15 | <!ENTITY sqlite-md5sum "77e61befe9c3298da0504f87772a24b0">
|
---|
[8bd37c26] | 16 | <!ENTITY sqlite-size "3.0 MB">
|
---|
[0ff4c32] | 17 | <!ENTITY sqlite-buildsize "126 MB">
|
---|
| 18 | <!ENTITY sqlite-time "0.4 SBU (Using parallelism=4)">
|
---|
[e5085ae1] | 19 |
|
---|
[79a6c292] | 20 | <!ENTITY sqlite-docs-download "https://sqlite.org/&sqlite-year;/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
[0ff4c32] | 21 | <!ENTITY sqlite-docs-md5sum "e1cd7dd84d3a73e6dca464004bdd8b8f">
|
---|
| 22 | <!ENTITY sqlite-docs-size "10 MB">
|
---|
[e2a0e91] | 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 |
|
---|
[a26f3f8f] | 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>
|
---|
[e2a0e91] | 43 |
|
---|
[ddf1885b] | 44 | &lfs120_checked;
|
---|
[49f7d8b] | 45 |
|
---|
[e2a0e91] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[a26f3f8f] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&sqlite-download-http;"/>
|
---|
| 51 | </para>
|
---|
[e2a0e91] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[a26f3f8f] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&sqlite-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[e2a0e91] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[a26f3f8f] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &sqlite-md5sum;
|
---|
| 61 | </para>
|
---|
[e2a0e91] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[a26f3f8f] | 64 | <para>
|
---|
| 65 | Download size: &sqlite-size;
|
---|
| 66 | </para>
|
---|
[e2a0e91] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[a26f3f8f] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &sqlite-buildsize;
|
---|
| 71 | </para>
|
---|
[e2a0e91] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[a26f3f8f] | 74 | <para>
|
---|
| 75 | Estimated build time: &sqlite-time;
|
---|
| 76 | </para>
|
---|
[e2a0e91] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[10e02da] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <title>Optional Documentation</title>
|
---|
| 83 | <listitem>
|
---|
[a26f3f8f] | 84 | <para>
|
---|
| 85 | Download (HTTP): <ulink url="&sqlite-docs-download;"/>
|
---|
| 86 | </para>
|
---|
[10e02da] | 87 | </listitem>
|
---|
| 88 | <listitem>
|
---|
[a26f3f8f] | 89 | <para>
|
---|
| 90 | Download MD5 sum: &sqlite-docs-md5sum;
|
---|
| 91 | </para>
|
---|
[10e02da] | 92 | </listitem>
|
---|
| 93 | <listitem>
|
---|
[a26f3f8f] | 94 | <para>
|
---|
| 95 | Download size: &sqlite-docs-size;
|
---|
| 96 | </para>
|
---|
[10e02da] | 97 | </listitem>
|
---|
| 98 | </itemizedlist>
|
---|
[e2a0e91] | 99 |
|
---|
[780294af] | 100 | <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
---|
| 101 |
|
---|
| 102 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a26f3f8f] | 103 | <para role="optional">
|
---|
[90fb8f6] | 104 | <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink> and
|
---|
[85e109d] | 105 | <xref linkend="unzip"/> (required to unzip the documentation)
|
---|
[a26f3f8f] | 106 | </para>
|
---|
[e2a0e91] | 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="installation">
|
---|
| 111 | <title>Installation of SQLite</title>
|
---|
| 112 |
|
---|
[a26f3f8f] | 113 | <para>
|
---|
| 114 | If you downloaded the optional documentation, issue the following command
|
---|
| 115 | to install the documentation into the source tree:
|
---|
| 116 | </para>
|
---|
[e5085ae1] | 117 |
|
---|
[5b50432] | 118 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
[e5085ae1] | 119 |
|
---|
[a26f3f8f] | 120 | <para>
|
---|
| 121 | Install <application>SQLite</application> by running the following
|
---|
| 122 | commands:
|
---|
| 123 | </para>
|
---|
[e2a0e91] | 124 |
|
---|
[b596c229] | 125 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 126 | --disable-static \
|
---|
[2363ba8] | 127 | --enable-fts{4,5} \
|
---|
| 128 | CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
[179d426d] | 129 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
| 130 | -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
---|
| 131 | -DSQLITE_SECURE_DELETE=1 \
|
---|
| 132 | -DSQLITE_ENABLE_FTS3_TOKENIZER=1" &&
|
---|
[41745476] | 133 | make</userinput></screen>
|
---|
[e2a0e91] | 134 |
|
---|
[a26f3f8f] | 135 | <para>
|
---|
| 136 | This package does not come with a test suite.
|
---|
| 137 | </para>
|
---|
[e2a0e91] | 138 |
|
---|
[a26f3f8f] | 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
[e2a0e91] | 142 |
|
---|
| 143 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 144 |
|
---|
[a26f3f8f] | 145 | <para>
|
---|
| 146 | If you downloaded the optional documentation, issue the following commands
|
---|
| 147 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
| 148 | </para>
|
---|
[e5085ae1] | 149 |
|
---|
[780294af] | 150 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
[5b50432] | 151 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
[85e109d] | 152 |
|
---|
[e2a0e91] | 153 | </sect2>
|
---|
| 154 |
|
---|
[bdf24aa4] | 155 | <sect2 role="commands">
|
---|
| 156 | <title>Command Explanations</title>
|
---|
| 157 |
|
---|
[a26f3f8f] | 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[10a480a] | 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
[a26f3f8f] | 160 |
|
---|
| 161 | <para>
|
---|
[ffe5cb0] | 162 | <parameter>--enable-fts{4,5}</parameter>: These switches enable
|
---|
[2363ba8] | 163 | support for version 3, 4 and 5 of the full text search (FTS)
|
---|
| 164 | extension. Note that the <option>--enable-fts4</option> switch
|
---|
| 165 | enables support for both FTS version 4 and FTS version 3.
|
---|
[f4ac439a] | 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
[2363ba8] | 169 | <parameter>CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1
|
---|
[f4ac439a] | 170 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
---|
[2363ba8] | 171 | -DSQLITE_ENABLE_DBSTAT_VTAB=1
|
---|
| 172 | -DSQLITE_SECURE_DELETE=1
|
---|
| 173 | -DSQLITE_ENABLE_FTS3_TOKENIZER=1"</parameter>: Applications such as
|
---|
[3927e328] | 174 | <application>SeaMonkey</application> require these options
|
---|
[477e9f51] | 175 | to be turned on.
|
---|
| 176 | The only way to do this is to include them in
|
---|
[f622c396] | 177 | the <envar>CFLAGS</envar> or <envar>CPPFLAGS</envar>.
|
---|
| 178 | We use the latter so the default value (or any value set by the user)
|
---|
| 179 | of <envar>CFLAGS</envar> won't be affected.
|
---|
| 180 | For further information on what can be specified see <ulink
|
---|
[90fb8f6] | 181 | url="https://www.sqlite.org/compile.html"/>.
|
---|
[a26f3f8f] | 182 | </para>
|
---|
| 183 |
|
---|
[bdf24aa4] | 184 | </sect2>
|
---|
| 185 |
|
---|
[e2a0e91] | 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Program</segtitle>
|
---|
[985d9e0] | 191 | <segtitle>Installed Library</segtitle>
|
---|
| 192 | <segtitle>Installed Directory</segtitle>
|
---|
[e2a0e91] | 193 |
|
---|
| 194 | <seglistitem>
|
---|
[8cce479c] | 195 | <seg>
|
---|
| 196 | sqlite3
|
---|
| 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[985d9e0] | 199 | libsqlite3.so
|
---|
[8cce479c] | 200 | </seg>
|
---|
| 201 | <seg>
|
---|
| 202 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
| 203 | </seg>
|
---|
[e2a0e91] | 204 | </seglistitem>
|
---|
| 205 | </segmentedlist>
|
---|
| 206 |
|
---|
| 207 | <variablelist>
|
---|
| 208 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 209 | <?dbfo list-presentation="list"?>
|
---|
| 210 | <?dbhtml list-presentation="table"?>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="sqlite3">
|
---|
| 213 | <term><command>sqlite3</command></term>
|
---|
| 214 | <listitem>
|
---|
[a26f3f8f] | 215 | <para>
|
---|
[cceceaaf] | 216 | is a terminal-based front-end to the <application>SQLite</application>
|
---|
[a26f3f8f] | 217 | library that can evaluate queries interactively and display the
|
---|
[4c24eb0a] | 218 | results
|
---|
[a26f3f8f] | 219 | </para>
|
---|
[e2a0e91] | 220 | <indexterm zone="sqlite sqlite3">
|
---|
| 221 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="libsqlite3">
|
---|
[8cce479c] | 227 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
[e2a0e91] | 228 | <listitem>
|
---|
[a26f3f8f] | 229 | <para>
|
---|
[4c24eb0a] | 230 | contains the <application>SQLite</application> API functions
|
---|
[a26f3f8f] | 231 | </para>
|
---|
[e2a0e91] | 232 | <indexterm zone="sqlite libsqlite3">
|
---|
[1f95134] | 233 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
[e2a0e91] | 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
[8cce479c] | 237 |
|
---|
[e2a0e91] | 238 | </variablelist>
|
---|
[8cce479c] | 239 |
|
---|
[e2a0e91] | 240 | </sect2>
|
---|
[8cce479c] | 241 |
|
---|
[e2a0e91] | 242 | </sect1>
|
---|