MySQL::Diff::Database(3pm)

MySQL::Diff::Database3pm

Database definition class

Usage

  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();

Overview

Parses a database definition into component parts.

Methods

Constructor

new( %options )

Instantiate the objects, providing the command line options for database access and process requirements.

Public Methods

•

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.

Functions

Public Functions

•

available_dbs()

Returns a list of the available databases.

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–8
  2. 9
  3. 10–13

Author

Adam Spiers <[email protected]>

From libmysql-diff-perl 0.60-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.