The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

md_rip.pl -- create data dictionary tables

DESCRIPTION

This program assists in the creation and maintenance of metadata (a.k.a. data dictionary) tables used by modules like Schema.

PREREQUISITES

You will need DBI (with appropriate DBD modules), as well as DBIx::Abstract, all of which are available from CPAN.

USAGE

Run this program from the command line, passing in flags as appropriate. This will create and populate a new set of data dictionary tables inside the specified database, or rebuild the existing ones -- reflecting any structural changes the database might have seen since this program was last run -- if they're already present.

Flags

You can use either the -D flag to pass in a whole datasource, or some combination of the other flags to let the program build one.

Example:

$ ./md_rip.pl -d my_db -u root -p RootPassword -h localhost

-D

A DBI-ready datasource string.

-r

A driver DBI will recognize. Defaults to 'mysql'.

-d

The database to be dictionarified. Defaults to 'minti'. (Long story.)

-h

The host upon which this database lives.

-P

The port to use when connecting to said host.

-u

The username the program will use when connecting.

-p

The password the program will use when connecting.

COPYRIGHT

This software is copyright (c) 2000 The Maine InterNetworks, Inc.

AUTHOR

Jason McIntosh <jmac@jmac.org>, with some improvements by Andrew Turner <turner@mikomi.org>.