DBIx::Skinny::ProxyTable::Rule
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, +{ });
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.
It's just shortcut for Proj::DB->proxy_table->copy_table($rule->{base_table}, $rule->table_name)
Keiji Yoshimi <walf443 at gmail dot com>
DBIx::Skinny::ProxyTable, DBIx::Skinny::Schema::ProxyTableRule
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::Skinny::ProxyTable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Skinny::ProxyTable
CPAN shell
perl -MCPAN -e shell install DBIx::Skinny::ProxyTable
For more information on module installation, please visit the detailed CPAN module installation guide.