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  -  JIFTY::HANDLE (3)

.ds Aq ’

NAME

Jifty::Handle -- A database handle class for Jifty

CONTENTS

DESCRIPTION

A wrapper around Jifty::DBI::Handle which is aware of versions in the database

METHODS

    new PARAMHASH

This class method instantiates a new Jifty::Handle object. This object deals with database handles for the system. After it is created, it will be a subclass of Jifty::DBI::Handle.

    canonical_database_name

Returns the canonical name of the application’s database (the actual name that will be given to the database driver). This name is a lower-case version of the Database argument in the Database section of the framework config.

For SQLite databases (where the database name is actually a filename), this also converts a relative path into an absolute path based at the application root.

    connect ARGS

Like Jifty::DBI’s connect method but pulls the name of the database from the current Jifty::Config.

    check_schema_version [pretend => 0|1]

Make sure that we have a recent enough database schema. If we don’t, then error out.

If pretend = 1> is passed, then any auto-upgrade action this might take is dry-run only.

    create_database MODE

MODE is either print or execute.

This method either prints the commands necessary to create the database or actually creates it, depending on the value of MODE. Returns undef on failure.

    drop_database MODE

MODE is either print or execute.

This method either prints the commands necessary to drop the database or actually drops it, depending on the value of MODE. Returns undef on failure.

AUTHOR

Various folks at BestPractical Solutions, LLC.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::HANDLE (3) 2011-01-24

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