.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "SQL::Translator::Schema::Procedure 3pm" .TH SQL::Translator::Schema::Procedure 3pm 2024-01-20 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME SQL::Translator::Schema::Procedure \- SQL::Translator procedure object .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 9 \& use SQL::Translator::Schema::Procedure; \& my $procedure = SQL::Translator::Schema::Procedure\->new( \& name => \*(Aqfoo\*(Aq, \& sql => \*(AqCREATE PROC foo AS SELECT * FROM bar\*(Aq, \& parameters => \*(Aqfoo,bar\*(Aq, \& owner => \*(Aqnomar\*(Aq, \& comments => \*(Aqblah blah blah\*(Aq, \& schema => $schema, \& ); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" \&\f(CW\*(C`SQL::Translator::Schema::Procedure\*(C'\fR is a class for dealing with stored procedures (and possibly other pieces of nameable SQL code?). .SH METHODS .IX Header "METHODS" .SS new .IX Subsection "new" Object constructor. .PP .Vb 1 \& my $schema = SQL::Translator::Schema::Procedure\->new; .Ve .SS parameters .IX Subsection "parameters" Gets and set the parameters of the stored procedure. .PP .Vb 5 \& $procedure\->parameters(\*(Aqid\*(Aq); \& $procedure\->parameters(\*(Aqid\*(Aq, \*(Aqname\*(Aq); \& $procedure\->parameters( \*(Aqid, name\*(Aq ); \& $procedure\->parameters( [ \*(Aqid\*(Aq, \*(Aqname\*(Aq ] ); \& $procedure\->parameters( qw[ id name ] ); \& \& my @parameters = $procedure\->parameters; .Ve .SS name .IX Subsection "name" Get or set the procedure's name. .PP .Vb 2 \& $procedure\->name(\*(Aqfoo\*(Aq); \& my $name = $procedure\->name; .Ve .SS sql .IX Subsection "sql" Get or set the procedure's SQL. .PP .Vb 2 \& $procedure\->sql(\*(Aqselect * from foo\*(Aq); \& my $sql = $procedure\->sql; .Ve .SS order .IX Subsection "order" Get or set the order of the procedure. .PP .Vb 2 \& $procedure\->order( 3 ); \& my $order = $procedure\->order; .Ve .SS owner .IX Subsection "owner" Get or set the owner of the procedure. .PP .Vb 2 \& $procedure\->owner(\*(Aqnomar\*(Aq); \& my $sql = $procedure\->owner; .Ve .SS comments .IX Subsection "comments" Get or set the comments on a procedure. .PP .Vb 3 \& $procedure\->comments(\*(Aqfoo\*(Aq); \& $procedure\->comments(\*(Aqbar\*(Aq); \& print join( \*(Aq, \*(Aq, $procedure\->comments ); # prints "foo, bar" .Ve .SS schema .IX Subsection "schema" Get or set the procedures's schema object. .PP .Vb 2 \& $procedure\->schema( $schema ); \& my $schema = $procedure\->schema; .Ve .SS equals .IX Subsection "equals" Determines if this procedure is the same as another .PP .Vb 1 \& my $isIdentical = $procedure1\->equals( $procedure2 ); .Ve .SH AUTHORS .IX Header "AUTHORS" Ken Youens-Clark , Paul Harrington .