PHP Class LazyRecord\TableParser\BaseTableParser

Mostra file Open project: corneltek/lazyrecord

Protected Properties

Property Type Description
$config
$connection LazyRecord\Connection
$driver LazyRecord\QueryDriver

Public Methods

Method Description
__construct ( PDO $connection, BaseDriver $driver )
getTableSchemaMap ( ) Find all user-defined schema.
getTables ( ) : string[] Implements the query to parse table names from database.
reverseTableSchema ( $table, $referenceSchema = null ) : DeclareSchema[string Implements the logic to reverse table definition to DeclareSchema object.
typenameToIsa ( $typeName )

Method Details

__construct() public method

public __construct ( PDO $connection, BaseDriver $driver )
$connection PDO
$driver SQLBuilder\Driver\BaseDriver

getTableSchemaMap() public method

This is not used right now.
public getTableSchemaMap ( )

getTables() abstract public method

Implements the query to parse table names from database.
abstract public getTables ( ) : string[]
return string[] table names

reverseTableSchema() abstract public method

Implements the logic to reverse table definition to DeclareSchema object.
abstract public reverseTableSchema ( $table, $referenceSchema = null ) : DeclareSchema[string
return LazyRecord\Schema\DeclareSchema[string

typenameToIsa() public method

public typenameToIsa ( $typeName )

Property Details

$config protected_oe property

protected $config

$connection protected_oe property

protected Connection,LazyRecord $connection
return LazyRecord\Connection

$driver protected_oe property

protected QueryDriver,LazyRecord $driver
return LazyRecord\QueryDriver