Skip to content

Instantly share code, notes, and snippets.

@lestrrat
Created March 25, 2009 00:31
Show Gist options
  • Save lestrrat/84459 to your computer and use it in GitHub Desktop.
Save lestrrat/84459 to your computer and use it in GitHub Desktop.
=head1 NAME
DBIx::Class::Storage::Subprocess - Delegate Actual Query To Subprocesses
=head1 SYNOPSIS
my $schema = MyApp::Schema->connection(...);
$schema->storage_type('::Subprocess');
# XXX what should \&callback get?
$schema->resultset('Foo')->insert(\%cols, \&callback);
$schema->resultset('Bar')->update(\%cols, \&callback);
$schema->resultset('Baz')->create(\%cols, \&callback);
my $rs = $schema->resultset('Quux')->search(\%where, \%attrs);
# XXX - hmm, Do I want it to block?
while ($rs->next) {
...
}
=cut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment