NAME

DBIx::Sharding::Strategy::Remainder - Key based sharding strategy.

SYNOPSIS

use DBIx::Sharding;

DBIx::Sharding->load('/path/to/config.yaml');

my $odd_number = 7;
my $conn_info  = DBIx::Sharding->connect_info('MASTER', +{ strategy => 'Remainder', key => $odd_number });

DESCRIPTION

DBIx::Sharding::Strategy::Remainder is key based sharding strategy depends on remainder divided key by number of nodes.

AUTHOR

Kosuke Arisawa <arisawa@gmail.com>

SEE ALSO

DBIx::Sharding
DBI

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.