-
-
30 Apr 2015 20:48:27 UTC
- Distribution: Jifty
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (17)
- Testers (11 / 233 / 2)
- Kwalitee
Bus factor: 2- % Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (1.24MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Any::Moose
- App::CLI
- CGI
- CGI::Cookie::Splitter
- CGI::Emulate::PSGI
- CSS::Squish
- Cache::Cache
- Cache::Memcached
- Calendar::Simple
- Carp::Clan
- Class::Accessor
- Class::Accessor::Named
- Class::Container
- Class::Data::Inheritable
- Class::Inspector
- Class::Trigger
- Clone
- Compress::Zlib
- Crypt::CBC
- Crypt::Rijndael
- DBD::SQLite
- DBI
- Data::Dump::Streamer
- Data::Page
- Data::UUID
- Date::Manip
- DateTime
- DateTime::Locale
- Devel::Cover
- Email::Abstract
- Email::Folder
- Email::LocalDelivery
- Email::MIME
- Email::MIME::ContentType
- Email::MIME::CreateHTML
- Email::Send
- Email::Simple
- Email::Simple::Creator
- Exception::Class
- Exporter::Lite
- FCGI::ProcManager
- File::Find::Rule
- File::MMagic
- File::ShareDir
- File::Spec
- File::Temp
- HTML::Entities
- HTML::Lint
- HTML::Mason
- HTML::Mason::Plugin
- HTML::TreeBuilder::XPath
- HTTP::Cookies
- HTTP::Date
- Hash::Merge
- Hash::MultiValue
- IO::Handle::Util
- IPC::Run3
- JSON
- JSON::XS
- Jifty::DBI
- LWP::UserAgent
- List::MoreUtils
- Locale::Maketext::Extract
- Locale::Maketext::Lexicon
- Log::Log4perl
- MIME::Types
- Module::CoreList
- Module::Install::Admin
- Module::Pluggable
- Module::Pluggable::Object
- Module::Refresh
- Module::ScanDeps
- Object::Declare
- Params::Validate
- Plack
- Plack::Middleware::Deflater
- Pod::Simple
- SQL::ReservedWords
- SUPER
- Scalar::Defer
- Shell::Command
- String::BufferStack
- String::Koremutake
- Sub::Exporter
- Template::Declare
- Test::Base
- Test::Email
- Test::Exception
- Test::HTML::Lint
- Test::LongString
- Test::MockModule
- Test::MockObject
- Test::More
- Test::Script::Run
- Test::WWW::Mechanize
- Test::WWW::Mechanize::PSGI
- Test::WWW::Selenium
- UNIVERSAL::require
- URI
- URI::Escape
- WWW::Mechanize
- Web::Hippie
- XML::Simple
- XML::Writer
- YAML
- YAML::Syck
- version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Jifty::Handle -- A database handle class for Jifty
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 theDatabase
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.
Module Install Instructions
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm Jifty
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.