Documentation Source Text

Check-in [beb03aaf56]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update document to show that the src/shell.c source file no longer exists in the canonical source repository and must now be generated from src/shell.c.in.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: beb03aaf56fe544c885cf23395cc36c08e8646ab0092243539550c6016395a0e
User & Date: drh 2017-10-12 13:55:18
Context
2017-10-12
14:08
Updates to the change log for 3.21.0 check-in: 90735e2235 user: drh tags: trunk
13:55
Update document to show that the src/shell.c source file no longer exists in the canonical source repository and must now be generated from src/shell.c.in. check-in: beb03aaf56 user: drh tags: trunk
2017-10-11
18:22
Updates to the change log, including a typo-fix from Ward Willats. check-in: 6239ca41af user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pages/c_interface.in.

1109
1110
1111
1112
1113
1114
1115

1116
1117
1118
1119
1120

should open its own copy of the database after the <b>fork()</b>.
</p>

<h3>6.0 Usage Examples</h3>

<p>For examples of how the SQLite C/C++ interface can be used,
refer to the source code for the <b>sqlite</b> program in the

file <b>src/shell.c</b> of the source tree.
Additional information about sqlite is available at
<a href="cli.html">cli.html</a>.
See also the sources to the Tcl interface for SQLite in
the source file <b>src/tclsqlite.c</b>.</p>








>
|



|
>
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
should open its own copy of the database after the <b>fork()</b>.
</p>

<h3>6.0 Usage Examples</h3>

<p>For examples of how the SQLite C/C++ interface can be used,
refer to the source code for the <b>sqlite</b> program in the
file [https://sqlite.org/src/file/src/shell.c.in|src/shell.c]
of the source tree.
Additional information about sqlite is available at
<a href="cli.html">cli.html</a>.
See also the sources to the Tcl interface for SQLite in
the source file 
[https://sqlite.org/src/file/src/tclsqlite.c|src/tclsqlite.c].</p>

Changes to pages/cli.in.

806
807
808
809
810
811
812
813
814
815

816
817
818
819
820
821
822
823


<tcl>hd_fragment compiling</tcl>
<h1>Compiling the sqlite3 program from sources</h1>

<p>
The source code to the sqlite3 command line interface is in a single
file named "shell.c" which you can
<a href="http://www.sqlite.org/src/finfo?name=src/shell.c">
download</a> from the SQLite website.  

[how to compile|Compile] this file (together
with the [amalgamation | sqlite3 library source code]) to generate
the executable.  For example:</p>

<tclscript>DisplayCode {
gcc -o sqlite3 shell.c sqlite3.c -ldl -lpthread
} </tclscript>








|
|
|
>
|







806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824


<tcl>hd_fragment compiling</tcl>
<h1>Compiling the sqlite3 program from sources</h1>

<p>
The source code to the sqlite3 command line interface is in a single
file named "shell.c".  The shell.c source file is generated from other
sources, but most of the code for shell.c can be found in
[https://sqlite.org/src/file/src/shell.c.in|src/shell.c.in].
(Regenerate shell.c by typing "make shell.c" from the canonical source tree.)
[how to compile|Compile] the shell.c file (together
with the [amalgamation | sqlite3 library source code]) to generate
the executable.  For example:</p>

<tclscript>DisplayCode {
gcc -o sqlite3 shell.c sqlite3.c -ldl -lpthread
} </tclscript>