The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

blx::xsdsql::generator - generate the files for create table ,drop table ,add primary key,drop sequence,create sequence,drop view,create view

SYNOPSIS

use blx::xsdsql::generator

DESCRIPTION

this package is a class - instance it with the method new

FUNCTIONS

new - constructor

        PARAMS:
                ROOT_TABLE - tree of objects generated by blx::xsdsql::parser::parse
                OUTPUT_NAMESPACE => default sql
                DB_NAMESPACE     => default <none>
                FD  => streamer class, file descriptor  , array or string  (default *STDOUT)

generate - generate a file

        PARAMS:
                ROOT_TABLE   => <root_object> - tree of objects generated by blx::xsdsql::parser::parse
                COMMAND      => create_table|drop_table|addpk|drop_sequence|create_sequence 
                LEVEL_FILTER  => <n> -  produce code only for tables at level <n> (n >= 0) - root has level 0  (default none)
                TABLES_FILTER  => [<name>] - produce code only for tables in  <name> - <name> is a table_name or a xml_path 


        the method return a self to object

get_namespaces - static method

        the method return an array of namespace founded 

EXPORT

None by default.

EXPORT_OK

None

SEE ALSO

See blx::xsdsql::parser for parse a xsd file (schema file) and blx::xsdsql::xml for read/write a xml file into/from a database

AUTHOR

lorenzo.bellotti, <pauseblx@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by lorenzo.bellotti

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html