NAME
TSQL::AST - 'Abstract Syntax Tree' for TSQL.
VERSION
Version 0.01_003
SYNOPSIS
DESCRIPTION
DEPENDENCIES
TSQL::AST depends on the following modules:
<Data::Dumper>
<List::MoreUtils>
<List::Util>
<Moose>
<MooseX::Declare>
<MooseX::Method::Signatures>
<autodie>
<indirect>
<version>
AUTHOR
Ded MedVed, <dedmedved at cpan.org>
BUGS
Please report any bugs or feature requests to bug-tsql-ast at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TSQL::AST. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
METHODS
new
TSQL::AST->new()
It creates and returns a new TSQL::AST object.
parse
$ast->parse( array of sqlfragments )
This is the method which () parses the split up SQL code.
It returns a list containing the atomic statements, in the same order they appear in the original SQL code.
my $sql_splitter = TSQL::SplitStatement->new();
my @statements = $sql_splitter->splitSQL( 'SELECT 1;SELECT 2; );
my $sql_parser = TSQL::AST->new();
my $ast = $sql_parser->parse( \@statements );
tokeniser
LIMITATIONS
No limitations are currently known, as far as the intended usage is concerned. You *are* bound to uncover a large number of problems.
Please report any problematic cases.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc TSQL::AST
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
None yet.
SEE ALSO
LICENSE AND COPYRIGHT
Copyright 2012 Ded MedVed.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.