diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2010-12-09 05:45:21 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2010-12-09 05:45:21 +0100 |
| commit | 6d95a5080e2c51bc759456f9a78991a81a272fe2 (patch) | |
| tree | 85638543de45f2810baae9bfc120a9b33c96897c /docs/sqlformat.1 | |
| parent | 948c855b782242fb0b215f88ed90b4909be5d186 (diff) | |
| download | sqlparse-6d95a5080e2c51bc759456f9a78991a81a272fe2.tar.gz | |
Add sqlformat manpage, by Andriy Senkovych.
Diffstat (limited to 'docs/sqlformat.1')
| -rw-r--r-- | docs/sqlformat.1 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/docs/sqlformat.1 b/docs/sqlformat.1 new file mode 100644 index 0000000..053e166 --- /dev/null +++ b/docs/sqlformat.1 @@ -0,0 +1,63 @@ +.\" Based on template /usr/share/man-db/examples/manpage.example provided by +.\" Tom Christiansen <tchrist@jhereg.perl.com>. +.TH SQLFORMAT "1" "December 2010" "python-sqlparse version: 0.1.2" "User Commands" +.SH NAME +sqlformat \- reformat SQL file +.SH SYNOPSIS +.PP +.B sqlformat +[ +.I "OPTION" +] ... [ +.I "FILE" +] ... +.SH DESCRIPTION +.\" Putting a newline after each sentence can generate better output. +The `sqlformat' command-line tool can be used to reformat SQL file according to +specified options or prepare a snippet in in some programming language (only +Puthon and PHP currently supported). +Use "-" as +.I FILE +to read from stdin. +.SH OPTIONS +.TP +\fB\-i\fR \fICHOICE\fR|\fB\-\-identifiers\fR=\fIFORMAT\fR +Change case of identifiers. +.I FORMAT +is one of "upper", "lower", "capitalize". +.TP +\fB\-k\fR \fICHOICE\fR|\fB\-\-keywords\fR=\fIFORMAT\fR +Change case of keywords. +.I FORMAT +is one of "upper", "lower", "capitalize". +.TP +\fB\-l\fR \fICHOICE\fR|\fB\-\-language\fR=\fILANG\fR +Output a snippet in programming language LANG. +.I LANG +can be "python", "php". +.TP +\fB\-o\fR \fIFILE\fR|\fB\-\-outfile\fR=\fIFILE\fR +Write output to +.I FILE +(defaults to stdout). +.TP +.BR \-r | \-\-reindent +Reindent statements. +.TP +\fB\-\-indent_width\fR=\fIINDENT_WIDTH\fR +Set indent width to +.IR INDENT_WIDTH . +Default is 2 spaces. +.TP +\fB\-\-strip\-comments +Remove comments. +.TP +.BR \-h | \-\-help +Print a short help message and exit. +All subsequent options are ignored. +.TP +.BR --verbose +Verbose output. +.TP +.BR \-\-version +Print program's version number and exit. |
