]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Added a manpage from A. Rottmann. (CVS 341)
authordrh <drh@noemail.net>
Mon, 7 Jan 2002 19:58:43 +0000 (19:58 +0000)
committerdrh <drh@noemail.net>
Mon, 7 Jan 2002 19:58:43 +0000 (19:58 +0000)
FossilOrigin-Name: 7deb62241300ff23af5a78dd855f0f69e5f16ffd

manifest
manifest.uuid
sqlite.1 [new file with mode: 0644]

index c5bbe0a2d948d8995f56fdeb5281acce3c935b2e..0d468a765928bf6463a8ea33d581d7d19eff32a8 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Makefile\schanges\sfrom\sAndreas\sRottmann\s(CVS\s1725)
-D 2002-01-07T19:04:22
+C Added\sa\smanpage\sfrom\sA.\sRottmann.\s(CVS\s341)
+D 2002-01-07T19:58:44
 F Makefile.in 4b445b9a47f454ecd05220d803ee1b48a81f45ac
 F Makefile.template c88ffcb9c339e718f434d0c7f045bcd7eea125af
 F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
@@ -17,6 +17,7 @@ F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895
 F libtool c56e618713c9510a103bda6b95f3ea3900dcacd6
 F ltmain.sh e9ed72eb1d690f447c13945eaf69e28af531eda1
 F publish.sh cb0f8f7bcb65b8360d0f6668a216a9ac9d5da892
+F sqlite.1 2e2bb0529ef468ade9e4322bd609d0695fb9ded9
 F src/TODO af7f3cab0228e34149cf98e073aa83d45878e7e6
 F src/btree.c c796e387da340cb628dc1e41f684fc20253f561e
 F src/btree.h 9ead7f54c270d8a554e59352ca7318fdaf411390
@@ -118,7 +119,7 @@ F www/speed.tcl 83457b2bf6bb430900bd48ca3dd98264d9a916a5
 F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279
 F www/tclsqlite.tcl 880ef67cb4f2797b95bf1368fc4e0d8ca0fda956
 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P e7004afbf808b6389e67e8a335c610227c76101b
-R bf419d8b9df57fd8ac55e43d882f9c8b
+P 7910bc7885ddbd90400c3c50014bba499e34d53d
+R 4c30dbc37ad8cfa8a80bc76fe7f8ae94
 U drh
-Z c48727dc7a9baf3a6ef017147df1b0c7
+Z 041af271d808d5bcd7b358a0634b5942
index 5d7f3e90fa65562b6a8e385ed994f8bbaf7d041a..401947eedef8794d5088a68093dd04c3faa1a9bc 100644 (file)
@@ -1 +1 @@
-7910bc7885ddbd90400c3c50014bba499e34d53d
\ No newline at end of file
+7deb62241300ff23af5a78dd855f0f69e5f16ffd
\ No newline at end of file
diff --git a/sqlite.1 b/sqlite.1
new file mode 100644 (file)
index 0000000..31f4b1c
--- /dev/null
+++ b/sqlite.1
@@ -0,0 +1,133 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH SQLITE SECTION "January 2, 2002"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+sqlite \- A command line interface for SQLite
+.SH SYNOPSIS
+.B sqlite
+.RI [ options ] " filename " [ SQL ]
+.SS SUMMARY
+.PP
+sqlite is a terminal-based front-end to the SQLite library. It enables
+you to type in queries interactivly, issue them to SQLite and see the
+results. Alternativly, you can specify SQL code on the commandline. In
+addition it provides a number of meta-commands.
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.B sqlite
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.SS GETTING STARTED
+.PP
+To start the sqlite program, just type "sqlite" followed by the name
+the file that holds the SQLite database. If the file does not exist, a
+new one is created automatically. The sqlite program will then prompt
+you to enter SQL. Type in SQL statements (terminated by a semicolon),
+press "Enter" and the SQL will be executed.
+
+For example, to create a new SQLite database named "ex1" with a single
+table named "tbl1", you might do this:
+.sp
+.nf
+$ sqlite ex1
+SQLite version 2.0.0
+Enter ".help" for instructions
+sqlite> create table tbl1(one varchar(10), two smallint);
+sqlite> insert into tbl1 values('hello!',10);
+sqlite> insert into tbl1 values('goodbye', 20);
+sqlite> select * from tbl1;
+hello!|10
+goodbye|20
+sqlite>
+.sp
+.fi
+
+.SS SQLITE META-COMMANDS
+.PP
+Most of the time, sqlite just reads lines of input and passes them on
+to the SQLite library for execution. But if an input line begins with
+a dot ("."), then that line is intercepted and interpreted by the
+sqlite program itself. These "dot commands" are typically used to
+change the output format of queries, or to execute certain prepackaged
+query statements.
+
+For a listing of the available dot commands, you can enter ".help" at
+any time. For example:
+.sp
+.nf
+.cc |
+sqlite> .help
+.dump                  Dump database in a text format
+.exit                  Exit this program
+.explain               Set output mode suitable for EXPLAIN
+.header ON|OFF         Turn display of headers on or off
+.help                  Show this message
+.indices TABLE         Show names of all indices on TABLE
+.mode MODE             Set mode to one of "line", "column", "list", or "html"
+.mode insert TABLE     Generate SQL insert statements for TABLE
+.output FILENAME       Send output to FILENAME
+.output stdout         Send output to the screen
+.schema ?TABLE?        Show the CREATE statements
+.separator STRING      Change separator string for "list" mode
+.tables                List names all tables in the database
+.timeout MS            Try opening locked tables for MS milliseconds
+.width NUM NUM ...     Set column widths for "column" mode
+sqlite>
+|cc .
+.sp
+.fi
+
+.SH OPTIONS
+The program has the following options:
+.TP
+.B \-html
+Set output mode to HTML.
+.TP
+.B \-list
+Set output mode to 'list'.
+.TP
+.B \-line
+Set output mode to 'line'.
+.TP
+.BI \-seperator\  seperator
+Specify which output field seperator for 'list' mode to use. 
+Default is '|'.
+
+.SH OUTPUT MODE
+The SQLite program has different output modes, which define the way
+the output (from queries) is formatted.
+
+In 'list' mode, which is the default, one record per line is output,
+each field seperated by the seperator specified with the
+\fB-seperator\fP option or \fB.seprator\fP command.
+
+In 'line' mode, each column is output on its own line, records are
+seperated by blank lines.
+
+In HTML mode, an XHTML table is generated.
+
+In 'column' mode, one record per line is output, aligned neatly in colums.
+
+.SH SEE ALSO
+http://www.hwaci.com/sw/sqlite/
+.br
+The sqlite-doc package
+.SH AUTHOR
+This manual page was written by Andreas Rottmann <rotty@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).