Unix and Linux Discussions Tagged with db2 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
5,523 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,013 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,238 |
Programming |
|
|
|
1 |
5,808 |
Programming |
|
|
|
13 |
4,779 |
Shell Programming and Scripting |
|
|
|
3 |
4,613 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
14,475 |
AIX |
|
|
|
2 |
12,356 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
8,780 |
Shell Programming and Scripting |
|
|
|
7 |
12,958 |
Shell Programming and Scripting |
|
|
|
1 |
2,839 |
Red Hat |
|
|
|
2 |
3,805 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,661 |
Shell Programming and Scripting |
|
|
|
1 |
8,837 |
Programming |
|
|
|
1 |
4,246 |
Shell Programming and Scripting |
|
|
|
4 |
1,997 |
Shell Programming and Scripting |
|
|
|
1 |
3,111 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,361 |
AIX |
|
|
|
4 |
4,030 |
AIX |
|
|
|
6 |
14,755 |
Shell Programming and Scripting |
|
|
|
1 |
10,569 |
Ubuntu |
|
|
|
2 |
4,955 |
AIX |
|
|
|
0 |
2,554 |
Shell Programming and Scripting |
|
|
|
2 |
16,502 |
Ubuntu |
|
|
|
1 |
2,952 |
Shell Programming and Scripting |
|
|
|
1 |
4,646 |
AIX |
|
|
|
0 |
1,252 |
Software Releases - RSS News |
|
|
|
2 |
13,941 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,157 |
Software Releases - RSS News |
|
|
|
2 |
10,446 |
Shell Programming and Scripting |
|
|
|
2 |
8,379 |
AIX |
|
|
|
2 |
9,149 |
AIX |
|
|
|
0 |
1,783 |
Security Advisories (RSS) |
|
|
|
0 |
18,449 |
Shell Programming and Scripting |
|
|
|
2 |
10,579 |
Shell Programming and Scripting |
|
|
|
1 |
6,249 |
Programming |
|
|
|
7 |
14,334 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
10,526 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,971 |
UNIX for Dummies Questions & Answers |
MySQL::Diff(3pm) User Contributed Perl Documentation MySQL::Diff(3pm)
NAME
MySQL::Diff - Generates a database upgrade instruction set
SYNOPSIS
use MySQL::Diff;
my $md = MySQL::Diff->new( %options );
my $db1 = $md->register_db($ARGV[0], 1);
my $db2 = $md->register_db($ARGV[1], 2);
my $diffs = $md->diff();
DESCRIPTION
Generates the SQL instructions required to upgrade the first database to match the second.
METHODS
Constructor
new( %options )
Instantiate the objects, providing the command line options for database access and process requirements.
Public Methods
Fuller documentation will appear here in time :)
o register_db($name,$inx)
Reference the database, and setup a connection. The name can be an already existing 'MySQL::Diff::Database' database object. The index
can be '1' or '2', and refers both to the order of the diff, and to the host, port, username and password arguments that have been
supplied.
o db1()
o db2()
Return the first and second databases registered via "register_db()".
o diff()
Performs the diff, returning a string containing the commands needed to change the schema of the first database into that of the
second.
COPYRIGHT AND LICENSE
Copyright (c) 2000-2011 Adam Spiers. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
SEE ALSO
mysqldiff, MySQL::Diff::Database, MySQL::Diff::Table, MySQL::Diff::Utils
AUTHOR
Adam Spiers <mysqldiff@adamspiers.org>
perl v5.14.2 2012-04-06 MySQL::Diff(3pm)