GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MySQL::Diff::Database(3) User Contributed Perl Documentation MySQL::Diff::Database(3)

MySQL::Diff::Database - Database Definition Class

  use MySQL::Diff::Database;

  my $db = MySQL::Diff::Database->new(%options);
  my $source    = $db->source_type();
  my $summary   = $db->summary();
  my $name      = $db->name();
  my @tables    = $db->tables();
  my $table_def = $db->table_by_name($table);

  my @dbs = MySQL::Diff::Database::available_dbs();

Parses a database definition into component parts.

new( %options )
Instantiate the objects, providing the command line options for database access and process requirements.

  • source_type()

    Returns 'file' if the data source is a text file, and 'db' if connected directly to a database.

  • summary()

    Provides a summary of the database.

  • name()

    Returns the name of the database.

  • tables()

    Returns a list of tables for the current database.

  • table_by_name( $name )

    Returns the table definition (see MySQL::Diff::Table) for the given table.

available_dbs()

Returns a list of the available databases.

Note that is used as a function call, not a method call.

Copyright (c) 2000-2016 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.

mysqldiff, MySQL::Diff, MySQL::Diff::Table, MySQL::Diff::Utils

Adam Spiers <mysqldiff@adamspiers.org>
2016-07-21 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.