Skip to content

Commit d521385

Browse files
committed
comment: add docstring for event class
1 parent 6ec9ee8 commit d521385

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pymysqlreplication/event.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,14 @@ def _dump(self):
437437
print("Value: %d" % (self.value))
438438

439439
class RowsQueryLogEvent(BinLogEvent):
440-
"""Change MySQL bin log file
440+
"""
441+
Record original query for the row events in Row-Based Replication
441442
442-
Attributes:
443-
position: Position inside next binlog
444-
next_binlog: Name of next binlog file
443+
More details are available in the MySQL Knowledge Base:
444+
https://dev.mysql.com/doc/dev/mysql-server/latest/classRows__query__log__event.html
445+
446+
:ivar query_length: uint - Length of the SQL statement
447+
:ivar query: str - The executed SQL statement
445448
"""
446449
def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs):
447450
super(RowsQueryLogEvent, self).__init__(from_packet, event_size, table_map,

0 commit comments

Comments
 (0)