File: storable2dbi.pl

package info (click to toggle)
libbot-basicbot-pluggable-perl 1.30%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 516 kB
  • sloc: perl: 3,153; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl
use warnings;
use strict;
use Bot::BasicBot::Pluggable::Store::Storable;
use Bot::BasicBot::Pluggable::Store::DBI;

my $from = Bot::BasicBot::Pluggable::Store::Storable->new;
my $to =   Bot::BasicBot::Pluggable::Store::DBI->new(
  dsn => "dbi:mysql:test",
  table => "basicbot",
  user => "root",
);

$to->restore( $from->dump );