FeyX::Active::SQL - A role to represent an active SQL statement
This is a role that all the FeyX::Active::SQL::* objects consume, it contains all the basic logic to manage and execute the SQL commands.
This is a DBI database handle.
This is the return value of execute on the given DBI statement handle in our execute method.
execute
This simply calls sql to get the SQL code that Fey::SQL will generate for us.
sql
This calls prepare_sql and passes that SQL to the prepare method of our dbh. It will return a DBI statement handle.
prepare_sql
prepare
dbh
This will call prepare to get the DBI statement handle, then it will call execute on the statement handle and pass in the bind params that Fey::SQL will generate for us.
This will save any return value of execute in the execute_rv attribute and then return the DBI statement handle.
execute_rv
This just wraps the Fey::SQL sql method to make sure that we are passing in our dbh.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Stevan Little <stevan.little@iinteractive.com>
Copyright 2009-2010 Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install FeyX::Active, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FeyX::Active
CPAN shell
perl -MCPAN -e shell install FeyX::Active
For more information on module installation, please visit the detailed CPAN module installation guide.