Created
March 25, 2009 00:31
-
-
Save lestrrat/84459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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