| 1 | package Oracle::SQL; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use POSIX qw(strftime); | ||
| 6 | use Carp; | ||
| 7 | use warnings; | ||
| 8 | use DBI; | ||
| 9 | |||
| 10 | our @ISA = qw(Exporter DynaLoader); | ||
| 11 | |||
| 12 | our @EXPORT = qw( | ||
| 13 | |||
| 14 | ); | ||
| 15 | our @EXPORT_OK = qw( | ||
| 16 | ); | ||
| 17 | our %EXPORT_TAGS = ( | ||
| 18 | sql => [qw( | ||
| 19 | )], | ||
| 20 | all => [@EXPORT_OK], | ||
| 21 | ); | ||
| 22 | our @IMPORT_OK = qw( | ||
| 23 | ); | ||
| 24 | |||
| 25 | our $VERSION = '0.01'; | ||
| 26 | |||
| 27 | # bootstrap Oracle::SQL::Builder $VERSION; | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | Oracle::SQL - Perl extension for building SQL statements. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | use Oracle::SQL; | ||
| 36 | |||
| 37 | No automatically exported routines. You have to specifically to import | ||
| 38 | the methods into your package. | ||
| 39 | |||
| 40 | use Oracle::SQL qw(:sql); | ||
| 41 | use Oracle::SQL /:sql/; | ||
| 42 | use Oracle::SQL ':sql'; | ||
| 43 | |||
| 44 | =head1 DESCRIPTION | ||
| 45 | |||
| 46 | This is a package initializing object for Oracle::SQL::Builder. | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | =head3 new (%arg) | ||
| 51 | |||
| 52 | Input variables: | ||
| 53 | |||
| 54 | any input variable and value pairs | ||
| 55 | |||
| 56 | Variables used or routines called: | ||
| 57 | |||
| 58 | None | ||
| 59 | |||
| 60 | How to use: | ||
| 61 | |||
| 62 | my $obj = new Oracle::SQL; # or | ||
| 63 | my $obj = Oracle::SQL->new; # or | ||
| 64 | |||
| 65 | Return: new empty or initialized Oracle::SQL object. | ||
| 66 | |||
| 67 | =cut | ||
| 68 | |||
| 69 | sub new { | ||
| 70 | my $caller = shift; | ||
| 71 | my $caller_is_obj = ref($caller); | ||
| 72 | my $class = $caller_is_obj || $caller; | ||
| 73 | my $self = bless {}, $class; | ||
| 74 | my %arg = @_; # convert rest of inputs into hash array | ||
| 75 | foreach my $k ( keys %arg ) { $self->{$k} = $arg{$k}; } | ||
| 76 | return $self; | ||
| 77 | } | ||
| 78 | |||
| 79 | 1; | ||
| 80 | |||
| 81 | =head1 SEE ALSO (some of docs that I check often) | ||
| 82 | |||
| 83 | Oracle::Trigger, Oracle:DDL, Oracle::DML, Oracle::DML::Common, | ||
| 84 | Oracle::Loader, etc. | ||
| 85 | |||
| 86 | =head1 AUTHOR | ||
| 87 | |||
| 88 | Copyright (c) 2005 Hanming Tu. All rights reserved. | ||
| 89 | |||
| 90 | This package is free software and is provided "as is" without express | ||
| 91 | or implied warranty. It may be used, redistributed and/or modified | ||
| 92 | under the terms of the Perl Artistic License (see | ||
| 93 | http://www.perl.com/perl/misc/Artistic.html) | ||
| 94 | |||
| 95 | =cut | ||
| 96 | |||
| 97 |