Skip to content

Commit 486a447

Browse files
committed
add some doc informations about mariadb
1 parent 1f27791 commit 486a447

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ kick off from a specific filename or position, use `client.setBinlogFilename(fil
8484
> `client.connect()` is blocking (meaning that client will listen for events in the current thread).
8585
`client.connect(timeout)`, on the other hand, spawns a separate thread.
8686

87+
> Note difference between MariaDB and MySQL
88+
```
89+
BinaryLogClient client = new MariadbBinaryLogClient("hostname", 3306, "username", "password");
90+
// ... as same as BinaryLogClient
91+
```
92+
> `client.setGtidSet(gtid)` meaning that client kick off from a specific gtid, MariaDB also support.
93+
> `client.setUseSendAnnotateRowsEvent(true)` meaning that client will send annotate rows events(describe the query which caused the row event), and 'false' by default
94+
8795
#### Controlling event deserialization
8896

8997
> You might need it for several reasons:

src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ public interface LifecycleListener {
13011301
/**
13021302
* Default (no-op) implementation of {@link LifecycleListener}.
13031303
*/
1304-
public static abstract class AbstractLifecycleListener implements LifecycleListener {
1304+
public static abstract class AbstractLifecycleListener implements LifecycleListener {
13051305

13061306
public void onConnect(BinaryLogClient client) { }
13071307

src/main/java/com/github/shyiko/mysql/binlog/MariadbBinaryLogClient.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package com.github.shyiko.mysql.binlog;
22

3-
import com.github.shyiko.mysql.binlog.event.AnnotateRowsEventData;
4-
import com.github.shyiko.mysql.binlog.event.Event;
53
import com.github.shyiko.mysql.binlog.event.EventType;
64
import com.github.shyiko.mysql.binlog.event.deserialization.AnnotateRowsEventDataDeserializer;
7-
import com.github.shyiko.mysql.binlog.event.deserialization.EventDeserializer;
85
import com.github.shyiko.mysql.binlog.event.deserialization.MariadbGtidEventDataDeserializer;
96
import com.github.shyiko.mysql.binlog.event.deserialization.MariadbGtidListEventDataDeserializer;
107
import com.github.shyiko.mysql.binlog.network.protocol.command.Command;

0 commit comments

Comments
 (0)