NAME
Terse::Plugin::DBI - DBI in Terse
VERSION
Version 0.04
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
package MyApp::Plugin::DBI;
use base 'Terse::Plugin::DBI';
sub connect_info {
...
return ($dsn, $user, $password);
}
1;
...
package MyApp::Model::List;
use base 'Terse::Model';
sub get {
my ($self, $t, $name) = @_;
my $sh = $t->plugin('dbi')->prepare(q|select * from lists where name = ?|);
$sh->execute($name) or $t->logError($sh->errstr, 404) && return;
return $sh->fetchrow_array();
}
1;
...
package MyApp::Controller::List
use base 'Terse::Controller';
sub mockery {
my ($self, $t) = @_;
$t->model('list')->get('my-list');
}
1;
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-terse-plugin-dbi at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Terse-Plugin-DBI. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Terse::Plugin::DBI
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2023 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)