DatabaseSchema: ezcDbSchemaCommonSqlReader
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDbSchemaCommonSqlReader
|
An abstract class that implements some common functionality required by multiple database backends. [
source]
Implemented Interfaces
Descendents
Method Summary
|
public int |
getReaderType(
)
Returns what type of schema reader this class implements. |
|
public ezcDbSchema |
loadFromDb(
$db )
Returns an ezcDbSchema created from the database schema in the database referenced by $db |
|
protected ezcDbSchema |
processSchema(
$tables )
Loops over all the table names in the array and extracts schema information. |
Methods
getReaderType
int getReaderType(
)
Returns what type of schema reader this class implements.
This method always returns ezcDbSchema::DATABASE
loadFromDb
Returns an ezcDbSchema created from the database schema in the database referenced by $db
This method analyses the current database referenced by $db and creates a schema definition out of this. This schema definition is returned as an (@link ezcDbSchema) object.
Parameters
processSchema
Loops over all the table names in the array and extracts schema information.
This method extracts information about a database's schema from the database itself and returns this schema as an ezcDbSchema object.
Parameters
| Name |
Type |
Description |
$tables |
array(string) |
|
Last updated: Tue, 01 Sep 2009