DatabaseSchema: ezcDbSchemaOracleReader
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDbSchemaOracleReader
|
Handler for Oracle connections representing a DB schema. [
source]
Implemented Interfaces
Method Summary
|
public static string |
convertToGenericType(
$typeString, &$typeLength, $typePrecision, $typeLength )
Converts the native Oracle type in $typeString to a generic DbSchema type. |
|
public int |
getReaderType(
)
Returns what type of schema reader this class implements. |
|
public ezcDbSchema |
loadFromDb(
$db )
Returns a ezcDbSchema object from the database that is referenced with $db. |
Methods
convertToGenericType
string convertToGenericType(
string
$typeString,
&$typeLength, int
$typePrecision, int
$typeLength )
Converts the native Oracle type in $typeString to a generic DbSchema type.
This method converts a string like "VARCHAR2" to the generic DbSchema type and uses parameters $typeLength and $typePrecision to detect emulated types char(1) == 'boolean', number(N) == "decimal".
Parameters
| Name |
Type |
Description |
$typeString |
string |
|
$typeLength |
int |
|
$typePrecision |
int |
|
&$typeLength |
|
|
getReaderType
int getReaderType(
)
Returns what type of schema reader this class implements.
This method always returns ezcDbSchema::DATABASE
loadFromDb
Returns a ezcDbSchema object from the database that is referenced with $db.
Parameters
Last updated: Mon, 17 Dec 2007