| 1 | package DBD::Gofer::Transport::corostream; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | our $VERSION = "2.165300"; | ||
| 7 | |||
| 8 | use Carp; | ||
| 9 | |||
| 10 | use Coro::Select; # a slow but coro-aware replacement for CORE::select (global effect!) | ||
| 11 | |||
| 12 | use Coro; | ||
| 13 | use Coro::Handle; | ||
| 14 | |||
| 15 | use base qw(DBD::Gofer::Transport::stream); | ||
| 16 | |||
| 17 | # XXX ensure DBI_PUREPERL for parent doesn't pass to child | ||
| 18 | sub start_pipe_command { | ||
| 19 | local $ENV{DBI_PUREPERL} = $ENV{DBI_PUREPERL_COROCHILD}; # typically undef | ||
| 20 | my $connection = shift->SUPER::start_pipe_command(@_); | ||
| 21 | return $connection; | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ |