DBIx::Custom::MySQL - DEPRECATED!
This module is deprecated now because This module is less useful than I expected. Please use DBIx::Custom instead.>
# Connect to the database my $dbi = DBIx::Custom::MySQL->connect( user => 'taro', password => 'kliej&@K', database => 'dbname' ); # Get last insert id my $last_insert_id = $dbi->last_insert_id;
DBIx::Custom::MySQL inherits all attributes from DBIx::Custom and implements the following new ones.
database
my $database = $dbi->database; $dbi = $dbi->database('dbname');
Database name. connect() method use this value to connect the database if data_source is not specified.
connect()
data_source
host
my $host = $dbi->host; $dbi = $dbi->host('somehost');
Host name or IP address. connect() method use this value to connect the database if data_source is not specified.
port
my $port = $dbi->port; $dbi = $dbi->port(1198);
Port number. connect() method use this value to connect the database if data_source is not specified.
DBIx::Custom::MySQL inherits all methods from DBIx::Custom and implements the following new ones.
connect
my $dbi = DBIx::Custom::MySQL->connect( user => 'taro', password => 'kliej&@K', database => 'dbname', host => 'somehost', port => 2000 );
Create a new DBIx::Custom::MySQL object and connect to the database. This method overrides DBIx::Custom::connect() method. You can specify all attributes of DBIx::Custom and DBIx::Custom::MySQL, such as database, host, port.
DBIx::Custom::connect()
To install DBIx::Custom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Custom
CPAN shell
perl -MCPAN -e shell install DBIx::Custom
For more information on module installation, please visit the detailed CPAN module installation guide.