repo.or.cz
/
gruta.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated TODO.
[gruta.git]
/
examples
/
copy.pl
blob
4a902bf361ef47f23c4e96ad6023766bbbfcdf08
1
#!/usr/bin/perl
2
3
use
Gruta
;
4
use
Gruta
::
Source
::
DBI
;
5
use
Gruta
::
Source
::
FS
;
6
7
my
$g
=
Gruta
->
new
(
8
source
=>
Gruta
::
Source
::
DBI
->
new
(
string
=>
'dbi:SQLite:g.db'
)
9
);
10
11
my
$dst
=
Gruta
::
Source
::
FS
->
new
(
path
=>
'/tmp/gruta_fs'
);
12
13
$dst
->
create
();
14
$g
->
transfer_to_source
(
$dst
);