DBIO-PostgreSQL-Age
view release on metacpan or search on metacpan
t/32-async-load-age.t view on Meta::CPAN
sub pool {
my $self = shift;
$self->{pool} ||= RecPool->new(
storage => $self,
conninfo => 'fake',
size => $self->{_pool_size} || 2,
);
}
}
my $schema = DBIO::Test->init_schema; # kept alive: storages weaken their refs
# The owning SYNC storage is the composed Age storage (Age LAYER over the PG
# driver) -- it carries connect_call_load_age via the layer.
my $owner_class = DBIO::Storage::Composed->compose(
'DBIO::PostgreSQL::Storage', ['DBIO::PostgreSQL::Age::Storage'],
);
my $owner = $owner_class->new($schema);
my $backend = RecAgeBackend->new($schema);
$owner->on_connect_call('load_age');
( run in 1.244 second using v1.01-cache-2.11-cpan-600a1bdf6e4 )