classReleases
final class Releases
Answers which replication words and options a MySQL release accepts.
Rule: MYSQL-REPLICATION-RELEASE-001. The legacy vocabulary is the only one of MySQL 5.6 and 5.7; from 8.0 the current words exist and the legacy spellings of CHANGE MASTER, its MASTER_ options and RESET SLAVE are read as their current synonyms, until 8.4 removes them. RESET MASTER has no current spelling before 8.2 and none of its legacy spelling from 8.4. START and STOP keep their spelling: SLAVE up to 8.3, REPLICA from 8.0. An option exists from the release that introduced it: SOURCE_TLS_VERSION from 5.7, the options of 8.0 from 8.0. Terminates: constant work. Source: https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html, https://dev.mysql.com/doc/refman/8.0/en/start-replica.html, https://dev.mysql.com/doc/relnotes/mysql/8.2/en/news-8-2-0.html, https://dev.mysql.com/doc/refman/5.7/en/change-master-to.html. Status: Implemented.
Methods§
public function since(GrammarRelease $release, GrammarRelease $first): boolTells whether a release is the given one or a later one.
Parameters
$release | GrammarRelease | |
$first | GrammarRelease |
Returns
boolTest cases 1
Called from 2
Calls 2
- function-call
array_searchline 37 - static-call GrammarRelease::cases() line 37
public function legacy(GrammarRelease $release): boolTells whether a release is one of the 5.x grammars.
Parameters
$release | GrammarRelease |
Returns
boolTest cases 1
Called from 8
- method-call SqlSemantics\Platform\MySql\Rules\Replication\Releases::source() packages/sql-semantics-mysql/src/Rules/Replication/Releases.php:53
- method-call SqlSemantics\Platform\MySql\Rules\Replication\Releases::replica() packages/sql-semantics-mysql/src/Rules/Replication/Releases.php:69
- method-call SqlSemantics\Platform\MySql\Rules\Replication\Releases::option() packages/sql-semantics-mysql/src/Rules/Replication/Releases.php:88
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Filter\ChangeReplicationFilter::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Filter/ChangeReplicationFilter.php:61
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Group\StartGroupReplication::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Group/StartGroupReplication.php:62
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:61
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetPersist::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetPersist.php:51
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetQueryCache::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetQueryCache.php:32
Calls 2
- class-const GrammarRelease::MySql5651() line 45
- class-const GrammarRelease::MySql5744() line 45
public function source(GrammarRelease $release): TerminologyAnswers the vocabulary of CHANGE REPLICATION SOURCE, RESET REPLICA and the log positions of UNTIL in a release.
Parameters
$release | GrammarRelease |
Returns
Test cases 1
Called from 3
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:85
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetReplica::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetReplica.php:51
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Source\ChangeReplicationSource::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Source/ChangeReplicationSource.php:67
Calls 3
- method-call Releases::legacy() line 53
- class-const Terminology::Legacy() line 53
- class-const Terminology::Current() line 53
public function binaryLogs(GrammarRelease $release): TerminologyAnswers the vocabulary of RESET BINARY LOGS AND GTIDS in a release.
Parameters
$release | GrammarRelease |
Returns
Test cases 1
Called from 1
Calls 4
- method-call Releases::since() line 61
- class-const GrammarRelease::MySql820() line 61
- class-const Terminology::Current() line 61
- class-const Terminology::Legacy() line 61
public function replica(GrammarRelease $release, Terminology $terminology): boolTells whether a release accepts START or STOP written in a vocabulary.
Parameters
$release | GrammarRelease | |
$terminology | Terminology |
Returns
boolTest cases 1
Called from 2
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:80
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StopReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StopReplica.php:58
Calls 4
- class-const Terminology::Legacy() line 69
- method-call Releases::since() line 69
- class-const GrammarRelease::MySql847() line 69
- method-call Releases::legacy() line 69
public function option(GrammarRelease $release, SourceOptionKind $kind): boolTells whether a release accepts an option of CHANGE REPLICATION SOURCE.
Parameters
$release | GrammarRelease | |
$kind | SourceOptionKind |
Returns
boolTest cases 1
Called from 1
Calls 39
- class-const SourceOptionKind::Host() line 78
- class-const SourceOptionKind::Bind() line 78
- class-const SourceOptionKind::User() line 78
- class-const SourceOptionKind::Password() line 78
- class-const SourceOptionKind::Port() line 78
- class-const SourceOptionKind::ConnectRetry() line 79
- class-const SourceOptionKind::RetryCount() line 79
- class-const SourceOptionKind::Delay() line 79
- class-const SourceOptionKind::Ssl() line 79
- class-const SourceOptionKind::SslCa() line 79
- class-const SourceOptionKind::SslCapath() line 80
- class-const SourceOptionKind::SslCert() line 80
- class-const SourceOptionKind::SslCipher() line 80
- class-const SourceOptionKind::SslKey() line 80
- class-const SourceOptionKind::SslVerifyServerCert() line 81
- class-const SourceOptionKind::SslCrl() line 81
- class-const SourceOptionKind::SslCrlpath() line 81
- class-const SourceOptionKind::HeartbeatPeriod() line 81
- class-const SourceOptionKind::IgnoreServerIds() line 82
- class-const SourceOptionKind::AutoPosition() line 82
- class-const SourceOptionKind::LogFile() line 82
- class-const SourceOptionKind::LogPosition() line 82
- class-const SourceOptionKind::RelayLogFile() line 83
- class-const SourceOptionKind::RelayLogPosition() line 83
- class-const SourceOptionKind::TlsVersion() line 84
- class-const GrammarRelease::MySql5651() line 84
- class-const SourceOptionKind::NetworkNamespace() line 85
- class-const SourceOptionKind::TlsCiphersuites() line 85
- class-const SourceOptionKind::PublicKeyPath() line 85
- class-const SourceOptionKind::GetPublicKey() line 85
- class-const SourceOptionKind::CompressionAlgorithms() line 86
- class-const SourceOptionKind::ZstdCompressionLevel() line 86
- class-const SourceOptionKind::PrivilegeChecksUser() line 86
- class-const SourceOptionKind::RequireRowFormat() line 87
- class-const SourceOptionKind::RequireTablePrimaryKeyCheck() line 87
- class-const SourceOptionKind::ConnectionAutoFailover() line 87
- class-const SourceOptionKind::AssignGtidsToAnonymousTransactions() line 88
- class-const SourceOptionKind::GtidOnly() line 88
- method-call Releases::legacy() line 88
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
ReleasesTest::testBinaryLogsAnswersTheVocabularyOfResetMastercallsReleasesTest::testLegacyNamesThe5xGrammarscallsReleasesTest::testOptionAnswersTheReleasesOfAnOptioncallsReleasesTest::testReplicaAcceptsEachSpellingWhereItExistscallsReleasesTest::testSinceComparesTheReleaseOrdercallsReleasesTest::testSourceAnswersTheVocabularyOfChangecalls
Relations§
Instantiated in 10
- new SqlSemantics\Platform\MySql\Rules\Replication\SourceSettings::option() packages/sql-semantics-mysql/src/Rules/Replication/SourceSettings.php:75
- new SqlSemantics\Platform\MySql\Statement\Replication\Filter\ChangeReplicationFilter::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Filter/ChangeReplicationFilter.php:59
- new SqlSemantics\Platform\MySql\Statement\Replication\Group\StartGroupReplication::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Group/StartGroupReplication.php:62
- new SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:79
- new SqlSemantics\Platform\MySql\Statement\Replication\Replica\StopReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StopReplica.php:58
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:59
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetPersist::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetPersist.php:51
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetQueryCache::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetQueryCache.php:32
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetReplica::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetReplica.php:51
- new SqlSemantics\Platform\MySql\Statement\Replication\Source\ChangeReplicationSource::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Source/ChangeReplicationSource.php:65
Method calls 12
- method-call SqlSemantics\Platform\MySql\Rules\Replication\SourceSettings::option() packages/sql-semantics-mysql/src/Rules/Replication/SourceSettings.php:75
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Filter\ChangeReplicationFilter::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Filter/ChangeReplicationFilter.php:61
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Group\StartGroupReplication::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Group/StartGroupReplication.php:62
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:80
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:85
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StopReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StopReplica.php:58
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:60
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:61
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetPersist::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetPersist.php:51
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetQueryCache::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetQueryCache.php:32
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetReplica::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetReplica.php:51
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Source\ChangeReplicationSource::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Source/ChangeReplicationSource.php:67