1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.sql.parser.statement.mysql.dal.replication.binlog;
19
20 import lombok.Getter;
21 import org.apache.shardingsphere.database.connector.core.type.DatabaseType;
22 import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.pagination.limit.LimitSegment;
23 import org.apache.shardingsphere.sql.parser.statement.core.statement.attribute.SQLStatementAttributes;
24 import org.apache.shardingsphere.sql.parser.statement.core.statement.attribute.type.AllowNotUseDatabaseSQLStatementAttribute;
25 import org.apache.shardingsphere.sql.parser.statement.core.statement.type.dal.DALStatement;
26
27
28
29
30 @Getter
31 public final class MySQLShowBinlogEventsStatement extends DALStatement {
32
33 private final String logName;
34
35 private final LimitSegment limit;
36
37 public MySQLShowBinlogEventsStatement(final DatabaseType databaseType, final String logName, final LimitSegment limit) {
38 super(databaseType);
39 this.logName = logName;
40 this.limit = limit;
41 }
42
43 @Override
44 public SQLStatementAttributes getAttributes() {
45 return new SQLStatementAttributes(new AllowNotUseDatabaseSQLStatementAttribute(true));
46 }
47 }