line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
20791
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
64
|
|
2
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
133
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=for testing |
5
|
|
|
|
|
|
|
use_ok('Class::DBI::DataMigration'); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Class::DBI::DataMigration; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Class::DBI::DataMigration - Migrate data from one database to another using Class::DBI. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 Version |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Version 0.02 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 Description |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Class::DBI::DataMigration provides a formalized framework for migrating data |
22
|
|
|
|
|
|
|
from one data storage schema to another. Using an explicit mapping between |
23
|
|
|
|
|
|
|
source and target data in YAML format, Class::DBI::DataMigration performs |
24
|
|
|
|
|
|
|
migration and synchronization bewtween databases. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 Caveat |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
The code on which this framework is based has been used in production by the |
33
|
|
|
|
|
|
|
author for over a year and works quite stably. However, this remains pre-1.00 |
34
|
|
|
|
|
|
|
software. You have been warned. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 Todo |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Write better documentation. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Provide documented examples (for now the tests are a good place to start; hint, hint). |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 Author |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Dan Friedman, C<< >> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 Acknowledgements |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Thanks to Kirrily "Skud" Robert and Mike Schwern for early idea bouncing and |
49
|
|
|
|
|
|
|
encouragement. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Thanks to TransGaming Technologies for supporting the initial development and |
52
|
|
|
|
|
|
|
release of this project. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 Bugs |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
57
|
|
|
|
|
|
|
C, or through the web interface at |
58
|
|
|
|
|
|
|
L. I will be notified, and then you'll automatically |
59
|
|
|
|
|
|
|
be notified of progress on your bug as I make changes. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 Copyright & License |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Copyright 2004 Dan Friedman, All Rights Reserved. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
66
|
|
|
|
|
|
|
under the same terms as Perl itself. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Please note that these modules are not products of or supported by the |
69
|
|
|
|
|
|
|
employers of the various contributors to the code. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |