MySQL::Workbench::Parser - parse .mwb files created with MySQL Workbench
version 0.06
The MySQL Workbench is a tool to design database entity relationship models. This parser parses .mwb files created with that tool and extracts all relevant information.
Create a new parser object
my $parser = MySQL::Workbench::Parser->new( file => '/path/to/file.mwb', );
returns an array of MySQL::Workbench::Parser::Table objects
my @tables = $parser->tables;
dump the database structure as YAML
my $yaml = $parser->dump;
get datatype for a workbench column datatype
my $datatype = $table->get_datatype( 'com.mysql.rdbms.mysql.datatype.mediumtext' );
returns the MySQL name of the datatype
MEDIUMTEXT
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2013 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install MySQL::Workbench::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MySQL::Workbench::Parser
CPAN shell
perl -MCPAN -e shell install MySQL::Workbench::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.