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