classMySqlSchemaReflector
final class MySqlSchemaReflector
implements SchemaReflector, ViewReflector
Fetches MySQL schema information via SQL queries.
Methods§
public function __construct(ConnectionInterface $connection)Configure the dependencies used by this operation.
Parameters
$connection | ConnectionInterface |
public function getCreateStatement(string $tableName): ?string{@inheritDoc}
Parameters
$tableName | string |
Returns
?stringTest cases 3
Called from 1
Calls 2
- method-call ConnectionInterface::query() line 35
- function-call
is_stringline 41
public function reflectAll(): array{@inheritDoc}
Returns
arrayTest cases 1
Called from 1
Calls 4
- method-call ConnectionInterface::query() line 53
- function-call
array_valuesline 62 - function-call
is_stringline 64 - method-call MySqlSchemaReflector::getCreateStatement() line 68
public function reflectViews(): array{@inheritDoc}
Returns
arrayTest cases 2
Called from 1
Calls 6
- method-call ConnectionInterface::query() line 82
- function-call
array_valuesline 89 - function-call
is_stringline 90 - function-call
str_replaceline 94 - method-call MySqlViewDefinitionParser::fromCreateStatement() line 104
- new MySqlViewDefinitionParser line 104
Private surface 1§
Implementation details, listed for orientation only.
private ConnectionInterface $connectionTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
MySqlSchemaReflectorTest::testGetCreateStatementReturnsNullWhenNoRowscallsMySqlSchemaReflectorTest::testGetCreateStatementReturnsNullWhenQueryFailscallsMySqlSchemaReflectorTest::testGetCreateStatementReturnsSqlcallsMySqlSchemaReflectorTest::testReflectAllReturnsEmptyWhenQueryFailscallsMySqlSchemaReflectorTest::testReflectViewsReturnsEmptyWhenQueryFailscallsMySqlSchemaReflectorTest::testReflectViewsSkipsMalformedDefinitionscalls
Other tests reaching this symbol 1
MySqlSessionFactoryTestcalls