Skip to content

typing - event.py #80

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

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
029a60d
docs: modify BeginLoadQueryEvent comment
heehehe Aug 20, 2023
1e34edb
docs: add NotImplementedEvent comment
starcat37 Aug 22, 2023
a0fd49c
docs: modify IntvarEvent comment
starcat37 Aug 22, 2023
dd5b232
docs: modify MariadbGtidEvents comments
ebang091 Aug 25, 2023
679543f
docs: modify GtidEvent comments
ebang091 Aug 25, 2023
5456e1d
docs: modify HeartbeatLogEvent comments
ebang091 Aug 25, 2023
de0cc85
docs: modify XAPrepareEvent comments
ebang091 Aug 25, 2023
21ffd3b
docs: modify RotateEvent comments
ebang091 Aug 25, 2023
bc6fbaa
docs: add FormatDescriptionEvent comment
mjs1995 Aug 27, 2023
c6e9bc2
docs: modify ExecuteLoadQueryEvent comment
heehehe Aug 28, 2023
95001ca
docs: remove unnecessary comments from ExecuteLoadQueryEvent
heehehe Aug 28, 2023
e67bb54
docs: modify XidEvent comments
ebang091 Aug 29, 2023
9cb581c
Add docstring to QueryEvent
dongwook-chan Aug 29, 2023
572bcbb
Merge branch 'main' of github.com:23-OSSCA-python-mysql-replication/p…
heehehe Aug 30, 2023
0199f16
fix: modify tab indentation to spaces
heehehe Aug 30, 2023
b52c4d7
docs: modify XidEvent comments
ebang091 Aug 30, 2023
04974bf
docs: add typing in BinLogEvent
ebang091 Aug 30, 2023
c57038d
docs: add typing in GtidEvent
ebang091 Aug 30, 2023
0ed3478
docs: add tying in MaradbGtidEvent
ebang091 Aug 30, 2023
5a37b9e
docs: add tying in MaradbBinLogCheckPointEvent
ebang091 Aug 30, 2023
8811fca
docs: add typing in MariadbGtidListEvent, MariadbAnnotateRowsEvent
ebang091 Aug 30, 2023
bcc65c5
modify BinLogEvent in event.py
ebang091 Aug 30, 2023
07b561d
add type hints to the rest of the events, improve docstring readabili…
jaehyeonpy Aug 31, 2023
6a4ee79
Update event.py
ebang091 Sep 1, 2023
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
Prev Previous commit
Next Next commit
fix: modify tab indentation to spaces
  • Loading branch information
heehehe committed Aug 30, 2023
commit 0199f1672d4efd29052027aed6488fc13714fe4d
8 changes: 4 additions & 4 deletions pymysqlreplication/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class GtidEvent(BinLogEvent):

:ivar commit_flag: 1byte - 00000001 = Transaction may have changes logged with SBR.
In 5.6, 5.7.0-5.7.18, and 8.0.0-8.0.1, this flag is always set. Starting in 5.7.19 and 8.0.2, this flag is cleared if the transaction only contains row events. It is set if any part of the transaction is written in statement format.
:ivar sid: 16 byte sequence - UUID representing the SID
:ivar sid: 16 byte sequence - UUID representing the SID
:ivar gno: int - Group number, second component of GTID.
:ivar lt_type: int(1 byte) - The type of logical timestamp used in the logical clock fields.
:ivar last_committed: Store the transaction's commit parent sequence_number
Expand Down Expand Up @@ -313,7 +313,7 @@ class HeartbeatLogEvent(BinLogEvent):
This is because to make the slave bump its position so that
if a disconnection occurs, the slave will only reconnects from the lasted skipped position. (Baloo's idea)

(see Binlog_sender::send_events in sql/rpl_binlog_sender.cc).
(see Binlog_sender::send_events in sql/rpl_binlog_sender.cc)

Warning:
That makes 106 bytes of data for skipped event in the binlog.
Expand Down Expand Up @@ -543,7 +543,7 @@ class IntvarEvent(BinLogEvent):
This event will be created just before a QueryEvent.

:ivar type: int - 1 byte identifying the type of variable stored.
Can be either LAST_INSERT_ID_EVENT (1) or INSERT_ID_EVENT (2).
Can be either LAST_INSERT_ID_EVENT (1) or INSERT_ID_EVENT (2).
:ivar value: int - The value of the variable
"""
def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs):
Expand Down Expand Up @@ -649,7 +649,7 @@ class NotImplementedEvent(BinLogEvent):
"""
Used as a temporary class for events that have not yet been implemented.

The event referencing this class skips parsing.
The event referencing this class skips parsing.
"""
def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs):
super().__init__(
Expand Down