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


Manual Reference Pages  -  T2::DBSETUP (3)

.ds Aq ’

NAME

T2::DBSetup - deploy T2 store during Makefile.PL

CONTENTS

SYNOPSIS



  # Example using traditional ExtUtils::MakeMaker
  use ExtUtils::MakeMaker;

  use lib "lib";
  eval "use T2::DBSetup";
  goto NOTESTS if $@;

  # get the schema for your project...
  eval "use T2::Schema";
  goto NOTESTS if $@;
  my $schema = $T2::Schema::class_obj;

  T2::DBSetup->deploy("site_name", $schema)
      or goto NOTESTS;

  print("Great, the database was deployed successfully, now"
       ."I can continue with my testing...\n");

  NOTESTS:
  # just spit out a Makefile, so that automatic
  # dependancies work.
  WriteMakefile
    (
     PREREQ_PM        => {
                            T2 => 0.08,
                           },
      ...
    );



DESCRIPTION

The T2::DBSetup module allows for easily writing test suites that require a database to perform.

It prompts the user to provide database connection information, then writes that information to a place that your scripts can easily access.

BUGS

All current versions of Storable have a bug which affects loading of schema files.

See <guest@rt.perl.org/rt3/Ticket/Display.html">http://guest:guest@rt.perl.org/rt3/Ticket/Display.html?id=25145> for the current status of this bug.

Usually, you can re-run the Makefile.PL, and the different random hash seed chosen by Perl will prevent the segfault from occurring.

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


perl v5.20.3 T2::DBSETUP (3) 2005-11-06

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