Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Jifty-DBI-0.48/t/utils.pl

/var/sites/help-site.com/auto/tmp/CPAN/9677/Jifty-DBI-0.48/t/utils.pl


VARIABLES

@supported_drivers

Array of all supported DBD drivers.

@available_drivers

Array that lists only drivers from supported list that user has installed.


functionS

get_handle

Returns new DB specific handle. Takes one argument DB $type. Other arguments uses to construct handle.

handle_to_driver

Returns driver name which gets from $handle object argument.

connect_handle

Connects $handle object to DB.

connect_handle_with_driver($handle, $driver)

Connects $handle using driver $driver; can use this to test the magic that turns a Jifty::DBI::Handle into a Jifty::DBI::Handle::Foo on Connect.

disconnect_handle

Disconnects $handle object.

disconnect_handle_with_driver($handle, $driver)

Disconnects $handle using driver $driver.

should_test $driver

Checks environment for JDBI_TEST_* variables. Returns true if specified DB back-end should be tested. Takes one argument $driver name.

has_schema $class { $driver | $handle }

Returns method name if $class has schema for $driver or $handle. If second argument is handle object then checks also for DB version specific schemas, for example for MySQL 4.1.23 this function will check next methods in the $class: schema_mysql_4_1_23, schema_mysql_4_1, schema_mysql_4 and schema_mysql, but if second argument is $driver name then checks only for schema_mysql.

Returns empty value if couldn't find method.

init_schema

Takes $class and $handle or $driver and inits schema by calling method has_schema returns of the $class. Returns last DBI::st on success or last return value of the SimpleQuery method on error.

cleanup_schema

Takes $class and $handle and cleanup schema by calling cleanup_schema_$driver method of the $class if method exists. Always returns undef.

init_data

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy