classSqlGeneratorFactory
final class SqlGeneratorFactory
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Assembles the dialect collaborators used by the Faker providers.
Methods§
public static function forMySql(
Generator $faker,
Grammar $grammar,
string $version,
?GrammarCoverage $coverage = null,
): SqlGeneratorBinds the release's grammar and lexical behavior to a SQL generator.
Parameters
$faker | Generator | |
$grammar | Grammar | |
$version | string | |
$coverage | ?GrammarCoverage |
Returns
Test cases 1
Called from 1
Calls 2
public static function forPostgreSql(
Generator $faker,
Grammar $grammar,
string $version,
?GrammarCoverage $coverage = null,
): SqlGeneratorBinds the release's grammar and lexical behavior to a SQL generator.
Parameters
$faker | Generator | |
$grammar | Grammar | |
$version | string | |
$coverage | ?GrammarCoverage |
Returns
Test cases 1
Called from 1
Calls 2
public static function forSqlite(
Generator $faker,
Grammar $grammar,
string $version,
?GrammarCoverage $coverage = null,
): SqlGeneratorBinds the release's grammar and lexical behavior to a SQL generator.
Parameters
$faker | Generator | |
$grammar | Grammar | |
$version | string | |
$coverage | ?GrammarCoverage |
Returns
Test cases 1
Called from 1
Calls 2
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
SqlGeneratorFactoryTest::testForMySqlPreservesTheGrammarEntryPointAndBindsLexicalDefinitionscovers and callsSqlGeneratorFactoryTest::testForPostgreSqlPreservesTheGrammarEntryPointAndBindsLexicalDefinitionscovers and callsSqlGeneratorFactoryTest::testForSqlitePreservesTheGrammarEntryPointAndBindsLexicalDefinitionscovers and calls
Other tests reaching this symbol 3
MySqlProviderTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls