1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
'\" t
.\" Title: sqlobject-admin
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
.\" Date: 06/03/2010
.\" Language: English
.\"
.TH "SQLOBJECT\-ADMIN" "1" "06/03/2010"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
sqlobject-admin \- manage your database as defined with SQLObject classes
.SH "SYNOPSIS"
.sp
\fBsqlobject\-admin\fR [\fIoptions\fR] \fIcommand\fR
.SH "DESCRIPTION"
.sp
The sqlobject\-admin tool included with SQLObject allows you to manage your database as defined with SQLObject classes\&.
.sp
Some of the features include creating tables, checking the status of the database, recording a version of a schema, and updating the database to match the version of the schema in your code\&.
.SH "COMMANDS"
.sp
The following commands are recognized:
.PP
\fBhelp\fR
.RS 4
Show the help text\&.
.RE
.PP
\fBcreate\fR
.RS 4
Find the tables and create them\&. Existing tables are simply skipped\&.
.RE
.PP
\fBsql\fR
.RS 4
Show the SQL to create all the tables\&.
.RE
.PP
\fBdrop\fR
.RS 4
Drop tables\&. Missing tables are skipped\&.
.RE
.PP
\fBexecute\fR
.RS 4
Execute an arbitrary SQL expression\&.
.RE
.PP
\fBlist\fR
.RS 4
List out all the found classes\&.
.RE
.PP
\fBstatus\fR
.RS 4
Show if tables are present in the database\&.
.RE
.PP
\fBrecord\fR
.RS 4
Record historical information about the database status
.RE
.PP
\fBupgrade\fR
.RS 4
Update the database to a new version (as created by record)
.RE
.SH "OPTIONS"
.PP
\fB\-c\fR \fICONNECTION\fR\fB, \-\-connection\fR=\fICONNECTION\fR
.RS 4
Connection string for the database \&.
.RE
.PP
\fB\-f\fR \fIFILENAME\fR\fB, \-\-config\-file=\fR\fIFILENAME\fR
.RS 4
Configuration file from which to get the connection to the database\&.
.RE
.PP
\fB\-m\fR \fIMODULE\fR\fB, \-\-module=\fR\fIMODULE\fR
.RS 4
A module to look in for classes\&.
.RE
.PP
\fB\-p\fR \fIPACKAGE\fR\fB, \-\-package=\fR\fIPACKAGE\fR
.RS 4
A package to look in\&.
.RE
.PP
\fB\-\-class\fR=\fICLASSMATCH\fR
.RS 4
Restricting the found classes to the matching classes\&.
.RE
.PP
\fB\-\-egg\fR=\fIEGG_SPEC\fR
.RS 4
Egg description that should be loaded\&.
.RE
.SH "AUTHORS"
.sp
.if n \{\
.RS 4
.\}
.nf
This manual page was written by Carl Chenet <chaica@ohmytux\&.com>\&.
.fi
.if n \{\
.RE
.\}
.SH "LICENSE"
.sp
.if n \{\
.RS 4
.\}
.nf
This package is licensed under the GNU Lesser General Public License version
2.1 (or later)\&. You can find the full text of the LGPL in
/usr/share/common\-licenses/LGPL in your Debian system\&.
.fi
.if n \{\
.RE
.\}
|