1 package DBIx::Class::Storage::DBI::Replicated::Replicant;
4 extends 'DBIx::Class::Storage::DBI', 'Moose::Object';
8 DBIx::Class::Storage::DBI::Replicated::Replicant; A replicated DBI Storage
12 This class is used internally by L<DBIx::Class::Storage::DBI::Replicated>. You
13 shouldn't need to create instances of this class.
17 Replicants are DBI Storages that follow a master DBI Storage. Typically this
18 is accomplished via an external replication system. Please see the documents
19 for L<DBIx::Class::Storage::DBI::Replicated> for more details.
21 This class exists to define methods of a DBI Storage that only make sense when
22 it's a classic 'slave' in a pool of slave databases which replicate from a
23 given master database.
27 This class defines the following attributes.
31 This is a boolean which allows you to programmatically activate or deactivate a
32 replicant from the pool. This way to you do stuff like disallow a replicant
33 when it get's too far behind the master, if it stops replicating, etc.
48 This class defines the following methods.
50 =head2 after: _query_start
52 advice iof the _query_start method to add more debuggin
56 around '_query_start' => sub {
57 my ($method, $self, $sql, @bind) = @_;
58 my $dsn = $self->connect_info->[0];
59 $self->$method("DSN: $dsn SQL: $sql", @bind);
65 John Napiorkowski <john.napiorkowski@takkle.com>
69 You may distribute this code under the same terms as Perl itself.