MySQL::Workbench::Parser::Column - A column of the ER model
version 1.11
return info about a column as a hash
my %info = $column->as_hash;
returns
( name => 'id', datatype => 'INT', length => '', precision => '0', not_null => '1', autoincrement => '1', default_value => '', )
Returns a stringified version of the column information
id INT NOT NULL AUTOINCREMENT
autoincrement
comment
datatype
default_value
flags
Any extra flags like binary, unsigned and/or zerofill.
id
length
name
node
not_null
precision
table
type_info
More information about the datatype:
args
The length, precision or a list of possible values (for enums).
gui_name
The column type as shown in Workbench. For user defined types it is the label shown in the dropdowns.
E.g. for VARCHAR columns, the max length of the value
VARCHAR
The SQL definition name. For user defined types, this is the underlying data type.
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2018 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.