root/trunk/antimatter/tim/Bot-BasicBot-Pluggable/bin/storable2dbi.pl
| Revision 53, 337 bytes (checked in by bkuhn, 10 months ago) |
|---|
| Line | |
|---|---|
| 1 | #!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 ); |
Note: See TracBrowser for help on using the browser.