package DBIx::Class::Storage::DBI::Replicated::WithDSN;
-use Moose::Role;
-use Scalar::Util 'reftype';
+use Try::Tiny qw(try);
+use Scalar::Util ();
+use Role::Tiny;
requires qw/_query_start/;
-use namespace::clean -except => 'meta';
-use Try::Tiny;
-
=head1 NAME
DBIx::Class::Storage::DBI::Replicated::WithDSN - A DBI Storage Role with DSN
my $storage_type = $self->can('active') ? 'REPLICANT' : 'MASTER';
my $query = do {
- if ((reftype($dsn)||'') ne 'CODE') {
+ if ((Scalar::Util::reftype($dsn)||'') ne 'CODE') {
"$op [DSN_$storage_type=$dsn]$rest";
}
elsif (my $id = try { $self->id }) {
=head1 AUTHOR
-John Napiorkowski <john.napiorkowski@takkle.com>
+John Napiorkowski <jjnapiork@cpan.org>
=head1 LICENSE