Anton Belousov > Eidolon-Driver-DB-MySQL > Eidolon::Driver::DB::MySQL

Download:
Eidolon-Driver-DB-MySQL-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Eidolon::Driver::DB::MySQL - MySQL database driver.

SYNOPSIS ^

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;

DESCRIPTION ^

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.

METHODS ^

new($dbd, $db, $user, $password, $host, $port, $cfg)

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.

execute($query, @params)

Inherited from "execute($query, @params)" in Eidolon::Driver::DB.

execute_prepared(@params)

Inherited from "execute_prepared(@params)" in Eidolon::Driver::DB.

fetch()

Inherited from "fetch()" in Eidolon::Driver::DB.

fetch_all()

Inherited from "fetch_all()" in Eidolon::Driver::DB.

free()

Inherited from "free()" in Eidolon::Driver::DB.

call($function, @params)

Inherited from "call($function, @params)" in Eidolon::Driver::DB. Warning! Do not use this function, it is not yet implemented for MySQL DBMS.

SEE ALSO ^

Eidolon, Eidolon::Driver::DB

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Anton Belousov, <abel@cpan.org>

COPYRIGHT ^

Copyright (c) 2009, Atma 7, http://www.atma7.com

syntax highlighting: