NAME
DbFramework::DataType::Mysql - Mysql data type class
SYNOPSIS
use DbFramework::DataType::Mysql;
$dt = new DbFramework::DataType::ANSII($dbh,$type,$length);
$name = $dt->name($name);
$type = $dt->type($type);
$length = $dt->length($length);
$extra = $dt->extra($extra);
DESCRIPTION
A DbFramework::DataType::Mysql object represents a Mysql data type.
SUPERCLASSES
DbFramework::DefinitionObject
CLASS METHODS
new($dbh,$type,$length,$extra)
Create a new DbFramework::DataType object. $dbh is a DBI database handle. $type is a numeric Mysql type e.g. a type containd in the array reference returned by $sth->{mysql_type}. This method will die() unless $type is a member of the set of Mysql types returned by $dbh. $length is the length of the data type. $extra is any extra stuff which applies to the type e.g. 'AUTO_INCREMENT'.
name($name)
If $name is supplied sets the name of the Mysql data type. Returns the name of the data type.
type($type)
If $type is supplied sets the number of the Mysql data type. Returns the numeric data type.
length($length)
If $length is supplied sets the length of the data type. Returns the length of the data type.
extra($extra)
If $extra is supplied sets any extra information which applies to the data type e.g. AUTO_INCREMENT in they case of a Mysql INTEGER data type. Returns the extra information which applies to the data type.
SEE ALSO
AUTHOR
Paul Sharpe <paul@miraclefish.com>
COPYRIGHT
Copyright (c) 1999 Paul Sharpe. England. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.