1Data::ObjectDriver::DriUvseerr::CMounlttriipbluDetaxetedar:(P:3eOprbmlj)eDcotcDurmievnetra:t:iDorniver::Multiplexer(3pm)
2
3
4

NAME

6       Data::ObjectDriver::Driver::Multiplexer - Multiplex multiple
7       partitioned drivers
8

SYNOPSIS

10           package MappingTable;
11
12           use Foo;
13           use Bar;
14
15           my $foo_driver = Foo->driver;
16           my $bar_driver = Bar->driver;
17
18           __PACKAGE__->install_properties({
19               columns => [ qw( foo_id bar_id value ) ],
20               primary_key => 'foo_id',
21               driver => Data::ObjectDriver::Driver::Multiplexer->new(
22                   on_search => {
23                       foo_id => $foo_driver,
24                       bar_id => $bar_driver,
25                   },
26                   on_lookup => $foo_driver,
27                   drivers => [ $foo_driver, $bar_driver ],
28               ),
29           });
30

DESCRIPTION

32       Data::ObjectDriver::Driver::Multiplexer associates a set of drivers to
33       a particular class. In practice, this means that all INSERTs and
34       DELETEs are propagated to all associated drivers (for example, all
35       associated databases or tables in a database), and that SELECTs are
36       sent to the appropriate multiplexed driver, based on partitioning
37       criteria.
38
39       Note that this driver has the following limitations currently:
40
41       1. It's very experimental.
42       2. It's very experimental.
43       3. IT'S VERY EXPERIMENTAL.
44       4. This documentation you're reading is incomplete. the api is likely
45       to evolve
46
47
48
49perl v5.28.0                      2D0a1t7a-:0:4O-b1j9ectDriver::Driver::Multiplexer(3pm)
Impressum