Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / man / man3 / DBI::Shell.3
CommitLineData
86530b38
AT
1.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
2.\"
3.\" Standard preamble:
4.\" ========================================================================
5.de Sh \" Subsection heading
6.br
7.if t .Sp
8.ne 5
9.PP
10\fB\\$1\fR
11.PP
12..
13.de Sp \" Vertical space (when we can't use .PP)
14.if t .sp .5v
15.if n .sp
16..
17.de Vb \" Begin verbatim text
18.ft CW
19.nf
20.ne \\$1
21..
22.de Ve \" End verbatim text
23.ft R
24.fi
25..
26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31.\" expand to `' in nroff, nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\
35. ds -- \(*W-
36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39. ds L" ""
40. ds R" ""
41. ds C` ""
42. ds C' ""
43'br\}
44.el\{\
45. ds -- \|\(em\|
46. ds PI \(*p
47. ds L" ``
48. ds R" ''
49'br\}
50.\"
51.\" If the F register is turned on, we'll generate index entries on stderr for
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53.\" entries marked with X<> in POD. Of course, you'll have to process the
54.\" output yourself in some meaningful fashion.
55.if \nF \{\
56. de IX
57. tm Index:\\$1\t\\n%\t"\\$2"
58..
59. nr % 0
60. rr F
61.\}
62.\"
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes
64.\" way too many mistakes in technical documents.
65.hy 0
66.if n .na
67.\"
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69.\" Fear. Run. Save yourself. No user-serviceable parts.
70. \" fudge factors for nroff and troff
71.if n \{\
72. ds #H 0
73. ds #V .8m
74. ds #F .3m
75. ds #[ \f1
76. ds #] \fP
77.\}
78.if t \{\
79. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80. ds #V .6m
81. ds #F 0
82. ds #[ \&
83. ds #] \&
84.\}
85. \" simple accents for nroff and troff
86.if n \{\
87. ds ' \&
88. ds ` \&
89. ds ^ \&
90. ds , \&
91. ds ~ ~
92. ds /
93.\}
94.if t \{\
95. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101.\}
102. \" troff and (daisy-wheel) nroff accents
103.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110.ds ae a\h'-(\w'a'u*4/10)'e
111.ds Ae A\h'-(\w'A'u*4/10)'E
112. \" corrections for vroff
113.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115. \" for low resolution devices (crt and lpr)
116.if \n(.H>23 .if \n(.V>19 \
117\{\
118. ds : e
119. ds 8 ss
120. ds o a
121. ds d- d\h'-1'\(ga
122. ds D- D\h'-1'\(hy
123. ds th \o'bp'
124. ds Th \o'LP'
125. ds ae ae
126. ds Ae AE
127.\}
128.rm #[ #] #H #V #F C
129.\" ========================================================================
130.\"
131.IX Title "DBI::Shell 3"
132.TH DBI::Shell 3 "2002-10-01" "perl v5.8.0" "User Contributed Perl Documentation"
133.SH "NAME"
134DBI::Shell \- Interactive command shell for the DBI
135.SH "SYNOPSIS"
136.IX Header "SYNOPSIS"
137.Vb 1
138\& perl -MDBI::Shell -e shell [<DBI data source> [<user> [<password>]]]
139.Ve
140.PP
141or
142.PP
143.Vb 1
144\& dbish [<DBI data source> [<user> [<password>]]]
145.Ve
146.SH "DESCRIPTION"
147.IX Header "DESCRIPTION"
148The DBI::Shell module (and dbish command, if installed) provide a
149simple but effective command line interface for the Perl \s-1DBI\s0 module.
150.PP
151DBI::Shell is very new, very experimental and very subject to change.
152Your milage \fIwill\fR vary. Interfaces \fIwill\fR change with each release.
153.SH "TO DO"
154.IX Header "TO DO"
155Proper docs \- but not yet, too much is changing.
156.PP
157\&\*(L"/source file\*(R" command to read command file.
158Allow to nest via stack of command file handles.
159Add command log facility to create batch files.
160.PP
161Commands:
162 load (query?) from file
163 save (query?) to file
164.PP
165Use Data::ShowTable if available.
166.PP
167Define DBI::Shell plug-in semantics.
168 Implement import/export as plug-in module
169.PP
170Clarify meaning of batch mode
171.PP
172Completion hooks
173.PP
174Set/Get \s-1DBI\s0 handle attributes
175.PP
176Portability
177.PP
178Emulate popular command shell modes (Oracle, Ingres etc)?
179.SH "COMMANDS"
180.IX Header "COMMANDS"
181Many commands \- few documented, yet!
182.IP "help" 4
183.IX Item "help"
184.Vb 1
185\& /help
186.Ve
187.IP "chistory" 4
188.IX Item "chistory"
189.Vb 2
190\& /chistory (display history of all commands entered)
191\& /chistory | YourPager (display history with paging)
192.Ve
193.IP "clear" 4
194.IX Item "clear"
195.Vb 1
196\& /clear (Clears the current command buffer)
197.Ve
198.IP "commit" 4
199.IX Item "commit"
200.Vb 1
201\& /commit (commit changes to the database)
202.Ve
203.IP "connect" 4
204.IX Item "connect"
205.Vb 3
206\& /connect (pick from available drivers and sources)
207\& /connect dbi:Oracle (pick source from based on driver)
208\& /connect dbi:YourDriver:YourSource i.e. dbi:Oracle:mysid
209.Ve
210.Sp
211Use this option to change userid or password.
212.IP "current" 4
213.IX Item "current"
214.Vb 1
215\& /current (Display current statement in the buffer)
216.Ve
217.IP "do" 4
218.IX Item "do"
219.Vb 1
220\& /do (execute the current (non-select) statement)
221.Ve
222.Sp
223.Vb 2
224\& dbish> create table foo ( mykey integer )
225\& dbish> /do
226.Ve
227.Sp
228.Vb 1
229\& dbish> truncate table OldTable /do (Oracle truncate)
230.Ve
231.IP "drivers" 4
232.IX Item "drivers"
233.Vb 1
234\& /drivers (Display available DBI drivers)
235.Ve
236.IP "edit" 4
237.IX Item "edit"
238.Vb 1
239\& /edit (Edit current statement in an external editor)
240.Ve
241.Sp
242Editor is defined using the enviroment variable \f(CW$VISUAL\fR or
243\&\f(CW$EDITOR\fR or default is vi. Use /option editor=new editor to change
244in the current session.
245.Sp
246To read a file from the operating system invoke the editor (/edit)
247and read the file into the editor buffer.
248.IP "exit" 4
249.IX Item "exit"
250.Vb 1
251\& /exit (Exits the shell)
252.Ve
253.IP "get" 4
254.IX Item "get"
255.Vb 1
256\& /get (Retrieve a previous command to the current buffer)
257.Ve
258.IP "go" 4
259.IX Item "go"
260.Vb 1
261\& /go (Execute the current statement)
262.Ve
263.Sp
264Run (execute) the statement in the current buffer. This is the default
265action if the statement ends with /
266.Sp
267.Vb 1
268\& dbish> select * from user_views/
269.Ve
270.Sp
271.Vb 3
272\& dbish> select table_name from user_tables
273\& dbish> where table_name like 'DSP%'
274\& dbish> /
275.Ve
276.Sp
277.Vb 1
278\& dbish> select table_name from all_tables/ | more
279.Ve
280.IP "history" 4
281.IX Item "history"
282.Vb 2
283\& /history (Display combined command and result history)
284\& /history | more
285.Ve
286.IP "option" 4
287.IX Item "option"
288.Vb 4
289\& /option [option1[=value]] [option2 ...]
290\& /option (Displays the current options)
291\& /option MyOption (Displays the value, if exists, of MyOption)
292\& /option MyOption=4 (defines and/or sets value for MyOption)
293.Ve
294.IP "perl" 4
295.IX Item "perl"
296.Vb 1
297\& /perl (Evaluate the current statement as perl code)
298.Ve
299.IP "quit" 4
300.IX Item "quit"
301.Vb 1
302\& /quit (Leaves shell. Same as exit)
303.Ve
304.IP "redo" 4
305.IX Item "redo"
306.Vb 1
307\& /redo (Re-execute the previously executed statement)
308.Ve
309.IP "rhistory" 4
310.IX Item "rhistory"
311.Vb 1
312\& /rhistory (Display result history)
313.Ve
314.IP "rollback" 4
315.IX Item "rollback"
316.Vb 1
317\& /rollback (rollback changes to the database)
318.Ve
319.Sp
320For this to be useful, turn the autocommit off. /option autocommit=0
321.IP "table_info" 4
322.IX Item "table_info"
323.Vb 2
324\& /table_info (display all tables that exist in current database)
325\& /table_info | more (for paging)
326.Ve
327.IP "trace" 4
328.IX Item "trace"
329.Vb 1
330\& /trace (set DBI trace level for current database)
331.Ve
332.Sp
333Adjust the trace level for \s-1DBI\s0 0 \- 4. 0 off. 4 is lots of information.
334Useful for determining what is really happening in \s-1DBI\s0. See \s-1DBI\s0.
335.IP "type_info" 4
336.IX Item "type_info"
337.Vb 1
338\& /type_info (display data types supported by current server)
339.Ve
340.SH "AUTHORS and ACKNOWLEDGEMENTS"
341.IX Header "AUTHORS and ACKNOWLEDGEMENTS"
342The DBI::Shell has a long lineage.
343.PP
344It started life around 1994\-1997 as the pmsql script written by Andreas
345