Skip to content

Update and extend links to mysql documentation #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MySQLReplication/Definitions/ConstEventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace MySQLReplication\Definitions;

/**
* @see https://dev.mysql.com/doc/internals/en/event-classes-and-types.html
* @see https://github.com/mysql/mysql-server/blob/824e2b4064053f7daf17d7f3f84b7a3ed92e5fb4/libs/mysql/binlog/event/binlog_event.h#L285 (MySQL binlog_event.h)
*/
enum ConstEventType: int
{
Expand Down
5 changes: 4 additions & 1 deletion src/MySQLReplication/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function consume(): void
{
$binaryDataReader = new BinaryDataReader($this->binLogSocketConnect->getResponse());

// check EOF_Packet -> https://dev.mysql.com/doc/internals/en/packet-EOF_Packet.html
// check EOF_Packet -> https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_eof_packet.html
if ($binaryDataReader->readUInt8() === self::EOF_HEADER_VALUE) {
return;
}
Expand Down Expand Up @@ -127,6 +127,9 @@ private function makeEvent(BinaryDataReader $binaryDataReader): ?EventDTO
return null;
}

/**
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_binlog_event_header
*/
private function createEventInfo(BinaryDataReader $binaryDataReader): EventInfo
{
return new EventInfo(
Expand Down
2 changes: 1 addition & 1 deletion src/MySQLReplication/Event/QueryEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use MySQLReplication\Event\DTO\QueryDTO;

/**
* @see https://dev.mysql.com/doc/internals/en/query-event.html
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_query
*/
class QueryEvent extends EventCommon
{
Expand Down
2 changes: 1 addition & 1 deletion src/MySQLReplication/Event/RotateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use MySQLReplication\Event\DTO\RotateDTO;

/**
* @see https://dev.mysql.com/doc/internals/en/rotate-event.html
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_rotate
*/
class RotateEvent extends EventCommon
{
Expand Down
3 changes: 3 additions & 0 deletions src/MySQLReplication/Event/XidEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use MySQLReplication\Event\DTO\XidDTO;

/**
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_xid
*/
class XidEvent extends EventCommon
{
public function makeXidDTO(): XidDTO
Expand Down