NAME
DBIx::Skinny::ProxyTable::Rule
SYNOPSIS
my $rule = Proj::DB->proxy_table->rule('access_log', accessed_on => DateTime->today);
$rule->table_name; #=> "access_log_200901"
# create table that name is "access_log_200901"
$rule->copy_table;
my $iter = Proj::DB->search($rule->table_name, +{ });
DESCRIPTION
When DBIx::Skinny::ProxyTable::Rule was created, it decide table name by rule and set schema information to your project skinny's schema.
You can handle dynamic table by natural interface.
METHOD
copy_table
It's just shortcut for Proj::DB->proxy_table->copy_table($rule->{base_table}, $rule->table_name)
AUTHOR
Keiji Yoshimi <walf443 at gmail dot com>
SEE ALSO
DBIx::Skinny::ProxyTable, DBIx::Skinny::Schema::ProxyTableRule
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.