Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Test::TempDatabase 0.1

    Download button

    No screenshots available
    Downloads: 278  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Boris Sukholitko | More programs
    Perl Artistic License / FREE
    May 8th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::TempDatabase description

    Test::TempDatabase is a Perl module for temporary database creation and destruction.

    Test::TempDatabase is a Perl module for temporary database creation and destruction.

    SYNOPSIS

    use Test::TempDatabase;

    my $td = Test::TempDatabase->create(dbname => 'temp_db');
    my $dbh = $td->handle;

    ... some tests ...
    # Test::TempDatabase drops database

    This module automates creation and dropping of test databases.

    USAGE

    Create test database using Test::TempDatabase->create. Use handle to get a handle to the database. Database will be automagically dropped when Test::TempDatabase instance goes out of scope.

    $class->become_postgres_user

    When running as root, this function becomes different user. It decides on the user name by probing TEST_TEMP_DB_USER, SUDO_USER environment variables. If these variables are empty, default "postgres" user is used.
    create

    Creates temporary database. It will be dropped when the resulting instance will go out of scope.

    Arguments are passed in as a keyword-value pairs. Available keywords are:
    dbname: the name of the temporary database.

    rest: the rest of the database connection string. It can be used to connect to a different host, etc.

    username, password: self-explanatory.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    temporary database creation | temporary database destruction | Perl module | Test::TempDatabase | temporary | database

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM