PHP Class LazyRecord\TableParser\BaseTableParser

Afficher le fichier Open project: corneltek/lazyrecord

Protected Properties

Свойство Type Description
$config
$connection LazyRecord\Connection
$driver LazyRecord\QueryDriver

Méthodes publiques

Méthode 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 méthode

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

getTableSchemaMap() public méthode

This is not used right now.
public getTableSchemaMap ( )

getTables() abstract public méthode

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

reverseTableSchema() abstract public méthode

Implements the logic to reverse table definition to DeclareSchema object.
abstract public reverseTableSchema ( $table, $referenceSchema = null ) : DeclareSchema[string
Résultat lazyrecord\schema\DeclareSchema[string

typenameToIsa() public méthode

public typenameToIsa ( $typeName )

Property Details

$config protected_oe property

protected $config

$connection protected_oe property

protected Connection,LazyRecord $connection
Résultat LazyRecord\Connection

$driver protected_oe property

protected QueryDriver,LazyRecord $driver
Résultat LazyRecord\QueryDriver