« blib/lib/Bot/BasicBot/Pluggable/Module/Base.pm
↑ Summary
blib/lib/Bot/BasicBot/Pluggable/Store/Memory.pm »
| 1 | #!/usr/local/bin/perl | ||
| 2 | use warnings; | ||
| 3 | use strict; | ||
| 4 | use Bot::BasicBot::Pluggable::Store::Storable; | ||
| 5 | use Bot::BasicBot::Pluggable::Store::DBI; | ||
| 6 | |||
| 7 | my $from = Bot::BasicBot::Pluggable::Store::Storable->new; | ||
| 8 | my $to = Bot::BasicBot::Pluggable::Store::DBI->new( | ||
| 9 | dsn => "dbi:mysql:test", | ||
| 10 | table => "basicbot", | ||
| 11 | user => "root", | ||
| 12 | ); | ||
| 13 | |||
| 14 | $to->restore( $from->dump ); |