NAME
DBIx::Fast::Base - Base class for DBIx::Fast components
SYNOPSIS
package DBIx::Fast::MyExtension;
use v5.38;
use Object::Pad 0.807;
class DBIx::Fast::MyExtension :isa(DBIx::Fast::Base) {
method user_count () { $self->dbix->val('SELECT COUNT(*) FROM users') }
}
my $ext = $db->load_extension('MyExtension');
say $ext->user_count;
DESCRIPTION
Abstract base class that all DBIx::Fast submodules inherit from. It holds a reference to the parent DBIx::Fast instance and validates that the required parameter is provided during construction.
METHODS
dbix
Accessor that returns the DBIx::Fast instance passed at construction time.
SEE ALSO
DBIx::Fast, "load_extension" in DBIx::Fast, Object::Pad
AUTHOR
SeHarrys
LICENSE
This is free software under the Artistic License 2.0.