NAME
Terse::Plugin::DBI - DBI in Terse
VERSION
Version 0.01
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
package Corruption::Plugin::DBI;
use base 'Terse::Plugin::DBI';
1;
...
package Corruption::Model::Elementalist;
use base 'Terse::Model';
sub get {
my ($self, $t, $name) = @_;
my $sh = $t->plugin('dbi')->prepare(q|select mind, movement, sense, sight, smell, taste from secrets where name = ?|);
$sh->execute($name) or $t->logError($sh->errstr, 404) && return;
return $sh->fetchrow_array();
}
1;
...
package Corruption::Controller::Hospital;
use base 'Terse::Controller';
sub mockery {
my ($self, $t) = @_;
$t->model('elementalist')->get('simon peter');
}
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)