DBIx::SearchBuilder::Handle::Oracle.3pm

Langue: en

Autres versions - même langue

Version: 2009-03-20 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

   DBIx::SearchBuilder::Handle::Oracle - An oracle specific Handle object
 
 

SYNOPSIS

DESCRIPTION

This module provides a subclass of DBIx::SearchBuilder::Handle that compensates for some of the idiosyncrasies of Oracle.

METHODS

Connect PARAMHASH: Driver, Database, Host, User, Password

Takes a paramhash and connects to your DBI datasource.

Insert

Takes a table name as the first argument and assumes that the rest of the arguments are an array of key-value pairs to be inserted.

BuildDSN PARAMHASH

Takes a bunch of parameters:

Required: Driver, Database or Host/SID, Optional: Port and RequireSSL

Builds a DSN suitable for an Oracle DBI connection

KnowsBLOBs

Returns 1 if the current database supports inserts of BLOBs automatically. Returns undef if the current database must be informed of BLOBs for inserts.

BLOBParams FIELD_NAME FIELD_TYPE

Returns a hash ref for the bind_param call to identify BLOB types used by the current database for a particular column type. The current Oracle implementation only supports ORA_CLOB types (112).

ApplyLimits STATEMENTREF ROWS_PER_PAGE FIRST_ROW

takes an SQL SELECT statement and massages it to return ROWS_PER_PAGE starting with FIRST_ROW;

DistinctQuery STATEMENTREF

takes an incomplete SQL SELECT statement and massages it to return a DISTINCT result set.

BinarySafeBLOBs

Return undef, as Oracle doesn't support binary-safe CLOBS

DatabaseVersion

Returns value of ORA_OCI constant, see ``Constants'' in DBI.

AUTHOR

Jesse Vincent, jesse@fsck.com

SEE ALSO

perl(1), DBIx::SearchBuilder