Eidolon::Driver::DB::MySQL - MySQL database driver.
Somewhere in application controller:
my ($r, $db); $r = Eidolon::Core::Registry->get_instance; $db = $r->{"driver"}->get_object("Eidolon::Driver::DB::MySQL"); $db->execute("SELECT * FROM news LIMIT ?, ?", 20, 10); $news = $db->fetch_all; foreach (@$news) { # ... } $db->free;
The Eidolon::Driver::DB::MySQL is the MySQL database driver for Eidolon. MySQL versions 4.0+ are supported.
To use this driver you must have DBI and DBD::mysql packages installed.
Class constructor. Sets initial class data. Only a wrapper over generic class constructor - see "new($dbd, $db, $user, $password, $host, $port, $cfg)" in Eidolon::Driver::DB for more information.
Inherited from "execute($query, @params)" in Eidolon::Driver::DB.
Inherited from "execute_prepared(@params)" in Eidolon::Driver::DB.
Inherited from "fetch()" in Eidolon::Driver::DB.
Inherited from "fetch_all()" in Eidolon::Driver::DB.
Inherited from "free()" in Eidolon::Driver::DB.
Inherited from "call($function, @params)" in Eidolon::Driver::DB. Warning! Do not use this function, it is not yet implemented for MySQL DBMS.
Eidolon, Eidolon::Driver::DB
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
To install Eidolon::Driver::DB::MySQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eidolon::Driver::DB::MySQL
CPAN shell
perl -MCPAN -e shell install Eidolon::Driver::DB::MySQL
For more information on module installation, please visit the detailed CPAN module installation guide.