lookup into different dataset
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 31 Mar 2011 16:01:40 +0000 (18:01 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 31 Mar 2011 16:01:40 +0000 (18:01 +0200)
commitf4bb559d81a635a33fce8fa20830df0f67f6314c
tree0dbc2557cc3cac0b8e233161bef3edd999a6f80f
parentd5b656c839c84a5ea75a7c54fb23c2cbdc989263
lookup into different dataset

using syntax like:

lookup($row->{from}, 'on_path' => 'on_col', sub {
# $on is record from on_path dataset
# where $on_col matches $row->{$from}

map {
push @{$update->{on_id}} => $_;
} @{$on->{id2}}
});
lib/MojoFacets/Data.pm
public/code/alpha.on_id.pl [new file with mode: 0644]