PHP Класс LazyRecord\TableParser\BaseTableParser

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$config
$connection LazyRecord\Connection
$driver LazyRecord\QueryDriver

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный метод

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

getTableSchemaMap() публичный метод

This is not used right now.
public getTableSchemaMap ( )

getTables() абстрактный публичный метод

Implements the query to parse table names from database.
abstract public getTables ( ) : string[]
Результат string[] table names

reverseTableSchema() абстрактный публичный метод

Implements the logic to reverse table definition to DeclareSchema object.
abstract public reverseTableSchema ( $table, $referenceSchema = null ) : DeclareSchema[string
Результат lazyrecord\schema\DeclareSchema[string

typenameToIsa() публичный метод

public typenameToIsa ( $typeName )

Описание свойств

$config защищенное свойство

protected $config

$connection защищенное свойство

protected Connection,LazyRecord $connection
Результат LazyRecord\Connection

$driver защищенное свойство

protected QueryDriver,LazyRecord $driver
Результат LazyRecord\QueryDriver