mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser & wall filter
This commit is contained in:
@@ -34,6 +34,10 @@ public class WallSqlTableStat {
|
||||
public void incrementSelectCount() {
|
||||
this.selectCount++;
|
||||
}
|
||||
|
||||
public void addSelectCount(int value) {
|
||||
this.selectCount += value;
|
||||
}
|
||||
|
||||
public int getSelectIntoCount() {
|
||||
return selectIntoCount;
|
||||
@@ -42,6 +46,10 @@ public class WallSqlTableStat {
|
||||
public void incrementSelectIntoCount() {
|
||||
this.selectIntoCount++;
|
||||
}
|
||||
|
||||
public void addSelectIntoCount(int value) {
|
||||
this.selectIntoCount += value;
|
||||
}
|
||||
|
||||
public int getInsertCount() {
|
||||
return insertCount;
|
||||
@@ -50,6 +58,10 @@ public class WallSqlTableStat {
|
||||
public void incrementInsertCount() {
|
||||
this.insertCount++;
|
||||
}
|
||||
|
||||
public void addInsertCount(int value) {
|
||||
this.insertCount += value;
|
||||
}
|
||||
|
||||
public int getUpdateCount() {
|
||||
return updateCount;
|
||||
@@ -59,6 +71,10 @@ public class WallSqlTableStat {
|
||||
this.updateCount++;
|
||||
}
|
||||
|
||||
public void addUpdateCount(int value) {
|
||||
this.deleteCount += value;
|
||||
}
|
||||
|
||||
public int getDeleteCount() {
|
||||
return deleteCount;
|
||||
}
|
||||
@@ -67,6 +83,10 @@ public class WallSqlTableStat {
|
||||
this.deleteCount++;
|
||||
}
|
||||
|
||||
public void addDeleteCount(int value) {
|
||||
this.deleteCount += value;
|
||||
}
|
||||
|
||||
public int getTruncateCount() {
|
||||
return truncateCount;
|
||||
}
|
||||
@@ -75,6 +95,10 @@ public class WallSqlTableStat {
|
||||
this.truncateCount++;
|
||||
}
|
||||
|
||||
public void addTruncateCount(int value) {
|
||||
this.truncateCount += value;
|
||||
}
|
||||
|
||||
public int getCreateCount() {
|
||||
return createCount;
|
||||
}
|
||||
@@ -83,6 +107,10 @@ public class WallSqlTableStat {
|
||||
this.createCount++;
|
||||
}
|
||||
|
||||
public void addCreateCount(int value) {
|
||||
this.createCount += value;
|
||||
}
|
||||
|
||||
public int getAlterCount() {
|
||||
return alterCount;
|
||||
}
|
||||
@@ -91,6 +119,10 @@ public class WallSqlTableStat {
|
||||
this.alterCount++;
|
||||
}
|
||||
|
||||
public void addAlterCount(int value) {
|
||||
this.alterCount += value;
|
||||
}
|
||||
|
||||
public int getDropCount() {
|
||||
return dropCount;
|
||||
}
|
||||
@@ -99,4 +131,7 @@ public class WallSqlTableStat {
|
||||
this.dropCount++;
|
||||
}
|
||||
|
||||
public void addDropCount(int value) {
|
||||
this.dropCount += value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user