Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove unused check argument (#15322)

Danny Xu54da4fc5368b
diff --git a/backend/plugin/advisor/advisor.go b/backend/plugin/advisor/advisor.go
index e1524715c1..2d2005a263 100644
--- a/backend/plugin/advisor/advisor.go
+++ b/backend/plugin/advisor/advisor.go
@@ -73,7 +73,7 @@ type Context struct {
// Advisor is the interface for advisor.
type Advisor interface {
- Check(ctx Context, statement string) ([]*storepb.Advice, error)
+ Check(ctx Context) ([]*storepb.Advice, error)
}
var (
@@ -104,7 +104,7 @@ func Register(dbType storepb.Engine, advType Type, f Advisor) {
}
// Check runs the advisor and returns the advices.
-func Check(dbType storepb.Engine, advType Type, ctx Context, statement string) (adviceList []*storepb.Advice, err error) {
+func Check(dbType storepb.Engine, advType Type, ctx Context) (adviceList []*storepb.Advice, err error) {
defer func() {
if panicErr := recover(); panicErr != nil {
panicErr, ok := panicErr.(error)
@@ -129,5 +129,5 @@ func Check(dbType storepb.Engine, advType Type, ctx Context, statement string) (
return nil, errors.Errorf("advisor: unknown advisor %v for %v", advType, dbType)
}
- return f.Check(ctx, statement)
+ return f.Check(ctx)
}
diff --git a/backend/plugin/advisor/generator/mssql.template b/backend/plugin/advisor/generator/mssql.template
index f4fec647f8..3f4a7f48d2 100644
--- a/backend/plugin/advisor/generator/mssql.template
+++ b/backend/plugin/advisor/generator/mssql.template
@@ -23,7 +23,7 @@ type %AdvisorName struct {
}
// Check checks for %AdvisorComment.
-func (*%AdvisorName) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*%AdvisorName) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/generator/mysql.template b/backend/plugin/advisor/generator/mysql.template
index f57e8ef6ed..03035a5a42 100644
--- a/backend/plugin/advisor/generator/mysql.template
+++ b/backend/plugin/advisor/generator/mysql.template
@@ -25,7 +25,7 @@ type %AdvisorName struct {
}
// Check checks for %AdvisorComment
-func (*%AdvisorName) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*%AdvisorName) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/generator/oracle.template b/backend/plugin/advisor/generator/oracle.template
index eb0237f2b3..e4bf50ce81 100644
--- a/backend/plugin/advisor/generator/oracle.template
+++ b/backend/plugin/advisor/generator/oracle.template
@@ -24,7 +24,7 @@ type %AdvisorName struct {
}
// Check checks for %AdvisorComment
-func (*%AdvisorName) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*%AdvisorName) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/generator/postgresql.template b/backend/plugin/advisor/generator/postgresql.template
index a5ac29dd06..3a22739ebb 100644
--- a/backend/plugin/advisor/generator/postgresql.template
+++ b/backend/plugin/advisor/generator/postgresql.template
@@ -24,7 +24,7 @@ type %AdvisorName struct {
}
// Check checks for %AdvisorComment
-func (*%AdvisorName) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*%AdvisorName) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/generator/snowflake.template b/backend/plugin/advisor/generator/snowflake.template
index db302704c4..809c0e38d0 100644
--- a/backend/plugin/advisor/generator/snowflake.template
+++ b/backend/plugin/advisor/generator/snowflake.template
@@ -23,7 +23,7 @@ type %AdvisorName struct {
}
// Check checks for %AdvisorComment
-func (*%AdvisorName) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*%AdvisorName) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_builtin_prior_backup_check.go b/backend/plugin/advisor/mssql/advisor_builtin_prior_backup_check.go
index a88a3528eb..80121dd125 100644
--- a/backend/plugin/advisor/mssql/advisor_builtin_prior_backup_check.go
+++ b/backend/plugin/advisor/mssql/advisor_builtin_prior_backup_check.go
@@ -32,7 +32,7 @@ func init() {
type StatementPriorBackupCheckAdvisor struct {
}
-func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
if ctx.PreUpdateBackupDetail == nil || ctx.ChangeType != storepb.PlanCheckRunConfig_DML {
return nil, nil
}
diff --git a/backend/plugin/advisor/mssql/advisor_column_maximum_varchar_length.go b/backend/plugin/advisor/mssql/advisor_column_maximum_varchar_length.go
index 5124b8151a..8a4208b32f 100644
--- a/backend/plugin/advisor/mssql/advisor_column_maximum_varchar_length.go
+++ b/backend/plugin/advisor/mssql/advisor_column_maximum_varchar_length.go
@@ -30,7 +30,7 @@ type ColumnMaximumVarcharLengthAdvisor struct {
}
// Check checks for maximum varchar length..
-func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_column_no_null.go b/backend/plugin/advisor/mssql/advisor_column_no_null.go
index 146683e28b..6c5f11ef99 100644
--- a/backend/plugin/advisor/mssql/advisor_column_no_null.go
+++ b/backend/plugin/advisor/mssql/advisor_column_no_null.go
@@ -26,7 +26,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value..
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_column_require.go b/backend/plugin/advisor/mssql/advisor_column_require.go
index a2e542f315..c42ab15a1f 100644
--- a/backend/plugin/advisor/mssql/advisor_column_require.go
+++ b/backend/plugin/advisor/mssql/advisor_column_require.go
@@ -27,7 +27,7 @@ type ColumnRequireAdvisor struct {
}
// Check checks for column requirement..
-func (*ColumnRequireAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_column_type_disallow_list.go b/backend/plugin/advisor/mssql/advisor_column_type_disallow_list.go
index cd048c0909..f8f34293b9 100644
--- a/backend/plugin/advisor/mssql/advisor_column_type_disallow_list.go
+++ b/backend/plugin/advisor/mssql/advisor_column_type_disallow_list.go
@@ -25,7 +25,7 @@ func init() {
type ColumnTypeDisallowListAdvisor struct {
}
-func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_function_disallow_create_or_alter.go b/backend/plugin/advisor/mssql/advisor_function_disallow_create_or_alter.go
index e145bc2367..d6fb435da7 100644
--- a/backend/plugin/advisor/mssql/advisor_function_disallow_create_or_alter.go
+++ b/backend/plugin/advisor/mssql/advisor_function_disallow_create_or_alter.go
@@ -24,7 +24,7 @@ type FunctionDisallowCreateOrAlterChecker struct {
}
// Check implements advisor.Advisor.
-func (*FunctionDisallowCreateOrAlterAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*FunctionDisallowCreateOrAlterAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_index_not_redundant.go b/backend/plugin/advisor/mssql/advisor_index_not_redundant.go
index 6927af2503..02ab2a4bc4 100644
--- a/backend/plugin/advisor/mssql/advisor_index_not_redundant.go
+++ b/backend/plugin/advisor/mssql/advisor_index_not_redundant.go
@@ -35,7 +35,7 @@ type IndexNotRedundantChecker struct {
}
// TODO(zp): we currently don't have runtime checks for indexes created in the statements.
-func (IndexNotRedundantAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (IndexNotRedundantAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to AST tree")
diff --git a/backend/plugin/advisor/mssql/advisor_migration_compatibility.go b/backend/plugin/advisor/mssql/advisor_migration_compatibility.go
index 37d1dfe6a5..5d52ebbc63 100644
--- a/backend/plugin/advisor/mssql/advisor_migration_compatibility.go
+++ b/backend/plugin/advisor/mssql/advisor_migration_compatibility.go
@@ -27,7 +27,7 @@ type MigrationCompatibilityAdvisor struct {
}
// Check checks for migration compatibility..
-func (*MigrationCompatibilityAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*MigrationCompatibilityAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_naming_identifier_no_keyword.go b/backend/plugin/advisor/mssql/advisor_naming_identifier_no_keyword.go
index 23e3532a3a..23aa38c351 100644
--- a/backend/plugin/advisor/mssql/advisor_naming_identifier_no_keyword.go
+++ b/backend/plugin/advisor/mssql/advisor_naming_identifier_no_keyword.go
@@ -26,7 +26,7 @@ type NamingIdentifierNoKeywordAdvisor struct {
}
// Check checks for identifier naming convention without keyword..
-func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_naming_table.go b/backend/plugin/advisor/mssql/advisor_naming_table.go
index 7f62dd1fc5..e689bf8d88 100644
--- a/backend/plugin/advisor/mssql/advisor_naming_table.go
+++ b/backend/plugin/advisor/mssql/advisor_naming_table.go
@@ -29,7 +29,7 @@ type NamingTableAdvisor struct {
}
// Check checks for table naming convention..
-func (*NamingTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_naming_table_no_keyword.go b/backend/plugin/advisor/mssql/advisor_naming_table_no_keyword.go
index 7a6a86ed7f..98a45f46eb 100644
--- a/backend/plugin/advisor/mssql/advisor_naming_table_no_keyword.go
+++ b/backend/plugin/advisor/mssql/advisor_naming_table_no_keyword.go
@@ -26,7 +26,7 @@ type NamingTableNoKeywordAdvisor struct {
}
// Check checks for table naming convention without keyword..
-func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_procedure_disallow_create_or_alter.go b/backend/plugin/advisor/mssql/advisor_procedure_disallow_create_or_alter.go
index 64c80a6642..28bdfe01fb 100644
--- a/backend/plugin/advisor/mssql/advisor_procedure_disallow_create_or_alter.go
+++ b/backend/plugin/advisor/mssql/advisor_procedure_disallow_create_or_alter.go
@@ -23,7 +23,7 @@ type ProcedureDisallowCreateOrAlterChecker struct {
adviceList []*storepb.Advice
}
-func (*ProcedureDisallowCreateOrAlterAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ProcedureDisallowCreateOrAlterAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_select_no_select_all.go b/backend/plugin/advisor/mssql/advisor_select_no_select_all.go
index 7d0c3f052b..654f23178b 100644
--- a/backend/plugin/advisor/mssql/advisor_select_no_select_all.go
+++ b/backend/plugin/advisor/mssql/advisor_select_no_select_all.go
@@ -23,7 +23,7 @@ type SelectNoSelectAllAdvisor struct {
}
// Check checks for no select all.
-func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_statement_disallow_cross_db_queries.go b/backend/plugin/advisor/mssql/advisor_statement_disallow_cross_db_queries.go
index 5cd4cc2b9f..21af0f90e0 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_disallow_cross_db_queries.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_disallow_cross_db_queries.go
@@ -27,7 +27,7 @@ type DisallowCrossDBQueriesChecker struct {
adviceList []*storepb.Advice
}
-func (*DisallowCrossDBQueriesAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DisallowCrossDBQueriesAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_ddl.go b/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_ddl.go
index 2f7135900f..c06227fca7 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_ddl.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_ddl.go
@@ -22,7 +22,7 @@ func init() {
type StatementDisallowMixInDDLAdvisor struct {
}
-func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DDL, storepb.PlanCheckRunConfig_SDL, storepb.PlanCheckRunConfig_DDL_GHOST:
default:
diff --git a/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_dml.go b/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_dml.go
index bcbb4dd548..c7b8a9413c 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_dml.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_disallow_mix_in_dml.go
@@ -22,7 +22,7 @@ func init() {
type StatementDisallowMixInDMLAdvisor struct {
}
-func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DML:
default:
diff --git a/backend/plugin/advisor/mssql/advisor_statement_where_disallow_functions_and_calculations.go b/backend/plugin/advisor/mssql/advisor_statement_where_disallow_functions_and_calculations.go
index 25ecc1b3fb..e5729a3fdc 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_where_disallow_functions_and_calculations.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_where_disallow_functions_and_calculations.go
@@ -34,7 +34,7 @@ type DisallowFuncAndCalculationsChecker struct {
var _ advisor.Advisor = (*DisallowFuncAndCalculationsAdvisor)(nil)
-func (*DisallowFuncAndCalculationsAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DisallowFuncAndCalculationsAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to AST tree")
diff --git a/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_select.go b/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_select.go
index 48794f1b6e..e12e0dc052 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_select.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_select.go
@@ -23,7 +23,7 @@ type WhereRequirementForSelectAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_update_delete.go b/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_update_delete.go
index 198038508e..ec5fe4a827 100644
--- a/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_update_delete.go
+++ b/backend/plugin/advisor/mssql/advisor_statement_where_requirement_for_update_delete.go
@@ -23,7 +23,7 @@ type WhereRequirementForUpdateDeleteAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_table_disallow_ddl.go b/backend/plugin/advisor/mssql/advisor_table_disallow_ddl.go
index a518f65deb..55f01806dc 100644
--- a/backend/plugin/advisor/mssql/advisor_table_disallow_ddl.go
+++ b/backend/plugin/advisor/mssql/advisor_table_disallow_ddl.go
@@ -25,7 +25,7 @@ func init() {
type TableDisallowDDLAdvisor struct {
}
-func (*TableDisallowDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_table_disallow_dml.go b/backend/plugin/advisor/mssql/advisor_table_disallow_dml.go
index e33cf73c91..62cc998aea 100644
--- a/backend/plugin/advisor/mssql/advisor_table_disallow_dml.go
+++ b/backend/plugin/advisor/mssql/advisor_table_disallow_dml.go
@@ -25,7 +25,7 @@ func init() {
type TableDisallowDMLAdvisor struct {
}
-func (*TableDisallowDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_table_drop_naming_convention.go b/backend/plugin/advisor/mssql/advisor_table_drop_naming_convention.go
index 638e2b39ad..9b682f9047 100644
--- a/backend/plugin/advisor/mssql/advisor_table_drop_naming_convention.go
+++ b/backend/plugin/advisor/mssql/advisor_table_drop_naming_convention.go
@@ -27,7 +27,7 @@ type TableDropNamingConventionAdvisor struct {
}
// Check checks for table drop with naming convention..
-func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_table_no_foreign_key.go b/backend/plugin/advisor/mssql/advisor_table_no_foreign_key.go
index 1f6eca6f53..3d9436d326 100644
--- a/backend/plugin/advisor/mssql/advisor_table_no_foreign_key.go
+++ b/backend/plugin/advisor/mssql/advisor_table_no_foreign_key.go
@@ -26,7 +26,7 @@ type TableNoForeignKeyAdvisor struct {
}
// Check checks for table disallow foreign key..
-func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mssql/advisor_table_require_pk.go b/backend/plugin/advisor/mssql/advisor_table_require_pk.go
index 31d3f95e46..36860685e4 100644
--- a/backend/plugin/advisor/mssql/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/mssql/advisor_table_require_pk.go
@@ -26,7 +26,7 @@ type TableRequirePkAdvisor struct {
}
// Check checks for table require primary key..
-func (*TableRequirePkAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePkAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mysql/advisor_builtin_prior_backup_check.go b/backend/plugin/advisor/mysql/advisor_builtin_prior_backup_check.go
index 38415f03f0..7af8ac69a8 100644
--- a/backend/plugin/advisor/mysql/advisor_builtin_prior_backup_check.go
+++ b/backend/plugin/advisor/mysql/advisor_builtin_prior_backup_check.go
@@ -24,7 +24,7 @@ func init() {
type StatementPriorBackupCheckAdvisor struct {
}
-func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
if ctx.PreUpdateBackupDetail == nil || ctx.ChangeType != storepb.PlanCheckRunConfig_DML {
return nil, nil
}
diff --git a/backend/plugin/advisor/mysql/advisor_charset_allowlist.go b/backend/plugin/advisor/mysql/advisor_charset_allowlist.go
index db9b206f58..2a36c768cc 100644
--- a/backend/plugin/advisor/mysql/advisor_charset_allowlist.go
+++ b/backend/plugin/advisor/mysql/advisor_charset_allowlist.go
@@ -28,7 +28,7 @@ type CharsetAllowlistAdvisor struct {
}
// Check checks for charset allowlist.
-func (*CharsetAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CharsetAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_collation_allowlist.go b/backend/plugin/advisor/mysql/advisor_collation_allowlist.go
index b67f0a9bc8..72967f6c08 100644
--- a/backend/plugin/advisor/mysql/advisor_collation_allowlist.go
+++ b/backend/plugin/advisor/mysql/advisor_collation_allowlist.go
@@ -28,7 +28,7 @@ type CollationAllowlistAdvisor struct {
}
// Check checks for collation allowlist.
-func (*CollationAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CollationAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_colum_require_default.go b/backend/plugin/advisor/mysql/advisor_colum_require_default.go
index ef8e8d13d8..d4b9af3d31 100644
--- a/backend/plugin/advisor/mysql/advisor_colum_require_default.go
+++ b/backend/plugin/advisor/mysql/advisor_colum_require_default.go
@@ -27,7 +27,7 @@ type ColumnRequireDefaultAdvisor struct {
}
// Check checks for column default requirement.
-func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_auto_increment_initial_value.go b/backend/plugin/advisor/mysql/advisor_column_auto_increment_initial_value.go
index 8c22d92692..f45fe6c329 100644
--- a/backend/plugin/advisor/mysql/advisor_column_auto_increment_initial_value.go
+++ b/backend/plugin/advisor/mysql/advisor_column_auto_increment_initial_value.go
@@ -31,7 +31,7 @@ type ColumnAutoIncrementInitialValueAdvisor struct {
}
// Check checks for auto-increment column initial value.
-func (*ColumnAutoIncrementInitialValueAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementInitialValueAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_integer.go b/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_integer.go
index d9e67cf12f..a72ea0b806 100644
--- a/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_integer.go
+++ b/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_integer.go
@@ -30,7 +30,7 @@ type ColumnAutoIncrementMustIntegerAdvisor struct {
}
// Check checks for auto-increment column type.
-func (*ColumnAutoIncrementMustIntegerAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementMustIntegerAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_unsigned.go b/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_unsigned.go
index 7685a47346..720894f157 100644
--- a/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_unsigned.go
+++ b/backend/plugin/advisor/mysql/advisor_column_auto_increment_must_unsigned.go
@@ -30,7 +30,7 @@ type ColumnAutoIncrementMustUnsignedAdvisor struct {
}
// Check checks for unsigned auto-increment column.
-func (*ColumnAutoIncrementMustUnsignedAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementMustUnsignedAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_comment_convention.go b/backend/plugin/advisor/mysql/advisor_column_comment_convention.go
index eda5f27cdb..fbeda2c981 100644
--- a/backend/plugin/advisor/mysql/advisor_column_comment_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_column_comment_convention.go
@@ -31,7 +31,7 @@ type ColumnCommentConventionAdvisor struct {
}
// Check checks for column comment convention.
-func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_current_time_count_limit.go b/backend/plugin/advisor/mysql/advisor_column_current_time_count_limit.go
index 3161de914f..7af88fb8c5 100644
--- a/backend/plugin/advisor/mysql/advisor_column_current_time_count_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_column_current_time_count_limit.go
@@ -36,7 +36,7 @@ type ColumnCurrentTimeCountLimitAdvisor struct {
}
// Check checks for current time column count limit.
-func (*ColumnCurrentTimeCountLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCurrentTimeCountLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_changing.go b/backend/plugin/advisor/mysql/advisor_column_disallow_changing.go
index ad2b4346a3..895d45fc25 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_changing.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_changing.go
@@ -30,7 +30,7 @@ type ColumnDisallowChangingAdvisor struct {
}
// Check checks for disallow CHANGE COLUMN statement.
-func (*ColumnDisallowChangingAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_changing_order.go b/backend/plugin/advisor/mysql/advisor_column_disallow_changing_order.go
index 636f47220e..99957003e9 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_changing_order.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_changing_order.go
@@ -30,7 +30,7 @@ type ColumnDisallowChangingOrderAdvisor struct {
}
// Check checks for disallow changing column order.
-func (*ColumnDisallowChangingOrderAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingOrderAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_changing_type.go b/backend/plugin/advisor/mysql/advisor_column_disallow_changing_type.go
index 8236d736aa..eeaaaf2201 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_changing_type.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_changing_type.go
@@ -32,7 +32,7 @@ type ColumnDisallowChangingTypeAdvisor struct {
}
// Check checks for disallow changing column type..
-func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_drop.go b/backend/plugin/advisor/mysql/advisor_column_disallow_drop.go
index c5a8093d08..b6192b54e2 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_drop.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_drop.go
@@ -28,7 +28,7 @@ type ColumnDisallowDropAdvisor struct {
}
// Check checks for disallow DROP COLUMN statement.
-func (*ColumnDisallowDropAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowDropAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_drop_in_index.go b/backend/plugin/advisor/mysql/advisor_column_disallow_drop_in_index.go
index b29b9a53de..ee92143977 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_drop_in_index.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_drop_in_index.go
@@ -31,7 +31,7 @@ type ColumnDisallowDropInIndexAdvisor struct {
}
// Check checks for disallow Drop COLUMN in index statement.
-func (*ColumnDisallowDropInIndexAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowDropInIndexAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_disallow_set_charset.go b/backend/plugin/advisor/mysql/advisor_column_disallow_set_charset.go
index 66eedf3ca8..a03d024551 100644
--- a/backend/plugin/advisor/mysql/advisor_column_disallow_set_charset.go
+++ b/backend/plugin/advisor/mysql/advisor_column_disallow_set_charset.go
@@ -30,7 +30,7 @@ type ColumnDisallowSetCharsetAdvisor struct {
}
// Check checks for disallow set column charset.
-func (*ColumnDisallowSetCharsetAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowSetCharsetAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_maximum_character_length.go b/backend/plugin/advisor/mysql/advisor_column_maximum_character_length.go
index 5055ed9a77..718036374e 100644
--- a/backend/plugin/advisor/mysql/advisor_column_maximum_character_length.go
+++ b/backend/plugin/advisor/mysql/advisor_column_maximum_character_length.go
@@ -29,7 +29,7 @@ type ColumnMaximumCharacterLengthAdvisor struct {
}
// Check checks for maximum character length.
-func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_maximum_varchar_length.go b/backend/plugin/advisor/mysql/advisor_column_maximum_varchar_length.go
index c0d0de8ee7..3b03b320e2 100644
--- a/backend/plugin/advisor/mysql/advisor_column_maximum_varchar_length.go
+++ b/backend/plugin/advisor/mysql/advisor_column_maximum_varchar_length.go
@@ -29,7 +29,7 @@ type ColumnMaximumVarcharLengthAdvisor struct {
}
// Check checks for maximum varchar length.
-func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_no_null.go b/backend/plugin/advisor/mysql/advisor_column_no_null.go
index 040b34a0aa..afbf4f4447 100644
--- a/backend/plugin/advisor/mysql/advisor_column_no_null.go
+++ b/backend/plugin/advisor/mysql/advisor_column_no_null.go
@@ -29,7 +29,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value.
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_require_charset.go b/backend/plugin/advisor/mysql/advisor_column_require_charset.go
index 9e14a00b19..7aa39cc674 100644
--- a/backend/plugin/advisor/mysql/advisor_column_require_charset.go
+++ b/backend/plugin/advisor/mysql/advisor_column_require_charset.go
@@ -25,7 +25,7 @@ func init() {
type ColumnRequireCharsetAdvisor struct {
}
-func (*ColumnRequireCharsetAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireCharsetAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_require_collation.go b/backend/plugin/advisor/mysql/advisor_column_require_collation.go
index e8c3583f48..599a1acb6b 100644
--- a/backend/plugin/advisor/mysql/advisor_column_require_collation.go
+++ b/backend/plugin/advisor/mysql/advisor_column_require_collation.go
@@ -25,7 +25,7 @@ func init() {
type ColumnRequireCollationAdvisor struct {
}
-func (*ColumnRequireCollationAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireCollationAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_required.go b/backend/plugin/advisor/mysql/advisor_column_required.go
index 1d796f991a..b9a0508d00 100644
--- a/backend/plugin/advisor/mysql/advisor_column_required.go
+++ b/backend/plugin/advisor/mysql/advisor_column_required.go
@@ -29,7 +29,7 @@ type ColumnRequirementAdvisor struct {
}
// Check checks for the column requirement.
-func (*ColumnRequirementAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequirementAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_set_default_for_not_null.go b/backend/plugin/advisor/mysql/advisor_column_set_default_for_not_null.go
index 3e6f22a3a8..ce1d0e7365 100644
--- a/backend/plugin/advisor/mysql/advisor_column_set_default_for_not_null.go
+++ b/backend/plugin/advisor/mysql/advisor_column_set_default_for_not_null.go
@@ -30,7 +30,7 @@ type ColumnSetDefaultForNotNullAdvisor struct {
}
// Check checks for set default value for not null column.
-func (*ColumnSetDefaultForNotNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnSetDefaultForNotNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_column_type_disallow_list.go b/backend/plugin/advisor/mysql/advisor_column_type_disallow_list.go
index 08ba743a01..f93a0f53a2 100644
--- a/backend/plugin/advisor/mysql/advisor_column_type_disallow_list.go
+++ b/backend/plugin/advisor/mysql/advisor_column_type_disallow_list.go
@@ -31,7 +31,7 @@ type ColumnTypeDisallowListAdvisor struct {
}
// Check checks for column type restriction.
-func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_database_drop_empty_db.go b/backend/plugin/advisor/mysql/advisor_database_drop_empty_db.go
index 55a375c72f..d8c096fad6 100644
--- a/backend/plugin/advisor/mysql/advisor_database_drop_empty_db.go
+++ b/backend/plugin/advisor/mysql/advisor_database_drop_empty_db.go
@@ -28,7 +28,7 @@ type DatabaseAllowDropIfEmptyAdvisor struct {
}
// Check checks for drop table naming convention.
-func (*DatabaseAllowDropIfEmptyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DatabaseAllowDropIfEmptyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql ParseResult")
diff --git a/backend/plugin/advisor/mysql/advisor_disallow_procedure.go b/backend/plugin/advisor/mysql/advisor_disallow_procedure.go
index 24f9b1df2a..028351075a 100644
--- a/backend/plugin/advisor/mysql/advisor_disallow_procedure.go
+++ b/backend/plugin/advisor/mysql/advisor_disallow_procedure.go
@@ -26,7 +26,7 @@ type ProcedureDisallowCreateAdvisor struct {
}
// Check checks for disallow create procedure.
-func (*ProcedureDisallowCreateAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ProcedureDisallowCreateAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_event_disallow_create.go b/backend/plugin/advisor/mysql/advisor_event_disallow_create.go
index 0b32261c03..91c124d088 100644
--- a/backend/plugin/advisor/mysql/advisor_event_disallow_create.go
+++ b/backend/plugin/advisor/mysql/advisor_event_disallow_create.go
@@ -26,7 +26,7 @@ type EventDisallowCreateAdvisor struct {
}
// Check checks for disallow creating event.
-func (*EventDisallowCreateAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*EventDisallowCreateAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_function_disallow_create.go b/backend/plugin/advisor/mysql/advisor_function_disallow_create.go
index 8e965215f7..5acbe5c9d7 100644
--- a/backend/plugin/advisor/mysql/advisor_function_disallow_create.go
+++ b/backend/plugin/advisor/mysql/advisor_function_disallow_create.go
@@ -26,7 +26,7 @@ type FunctionDisallowCreateAdvisor struct {
}
// Check checks for disallow creating function.
-func (*FunctionDisallowCreateAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*FunctionDisallowCreateAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_function_disallowed_list.go b/backend/plugin/advisor/mysql/advisor_function_disallowed_list.go
index 0445d31917..3be80a964d 100644
--- a/backend/plugin/advisor/mysql/advisor_function_disallowed_list.go
+++ b/backend/plugin/advisor/mysql/advisor_function_disallowed_list.go
@@ -27,7 +27,7 @@ func init() {
type FunctionDisallowedListAdvisor struct {
}
-func (*FunctionDisallowedListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*FunctionDisallowedListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_key_number_limit.go b/backend/plugin/advisor/mysql/advisor_index_key_number_limit.go
index 41baa225a0..2f6d80733f 100644
--- a/backend/plugin/advisor/mysql/advisor_index_key_number_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_index_key_number_limit.go
@@ -30,7 +30,7 @@ type IndexKeyNumberLimitAdvisor struct {
}
// Check checks for index key number limit.
-func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_no_duplicate_column.go b/backend/plugin/advisor/mysql/advisor_index_no_duplicate_column.go
index 0bc795e288..bba39090d2 100644
--- a/backend/plugin/advisor/mysql/advisor_index_no_duplicate_column.go
+++ b/backend/plugin/advisor/mysql/advisor_index_no_duplicate_column.go
@@ -30,7 +30,7 @@ type IndexNoDuplicateColumnAdvisor struct {
}
// Check checks for no duplicate columns in index.
-func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_pk_type.go b/backend/plugin/advisor/mysql/advisor_index_pk_type.go
index ab2be66f47..273fb72525 100644
--- a/backend/plugin/advisor/mysql/advisor_index_pk_type.go
+++ b/backend/plugin/advisor/mysql/advisor_index_pk_type.go
@@ -32,7 +32,7 @@ type IndexPkTypeAdvisor struct {
}
// Check checks for correct type of PK.
-func (*IndexPkTypeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexPkTypeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_primary_key_type_allowlist.go b/backend/plugin/advisor/mysql/advisor_index_primary_key_type_allowlist.go
index 44a0f90739..5f9652059c 100644
--- a/backend/plugin/advisor/mysql/advisor_index_primary_key_type_allowlist.go
+++ b/backend/plugin/advisor/mysql/advisor_index_primary_key_type_allowlist.go
@@ -31,7 +31,7 @@ type IndexPrimaryKeyTypeAllowlistAdvisor struct {
}
// Check checks for primary key type allowlist.
-func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_total_number_limit.go b/backend/plugin/advisor/mysql/advisor_index_total_number_limit.go
index 74d0fc5372..6b18666929 100644
--- a/backend/plugin/advisor/mysql/advisor_index_total_number_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_index_total_number_limit.go
@@ -32,7 +32,7 @@ type IndexTotalNumberLimitAdvisor struct {
}
// Check checks for index total number limit.
-func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_type_allow_list.go b/backend/plugin/advisor/mysql/advisor_index_type_allow_list.go
index eb5ca62c00..0da6a40221 100644
--- a/backend/plugin/advisor/mysql/advisor_index_type_allow_list.go
+++ b/backend/plugin/advisor/mysql/advisor_index_type_allow_list.go
@@ -28,7 +28,7 @@ func init() {
type IndexTypeAllowListAdvisor struct {
}
-func (*IndexTypeAllowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTypeAllowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_index_type_no_blob.go b/backend/plugin/advisor/mysql/advisor_index_type_no_blob.go
index ff4666af56..b5b2769936 100644
--- a/backend/plugin/advisor/mysql/advisor_index_type_no_blob.go
+++ b/backend/plugin/advisor/mysql/advisor_index_type_no_blob.go
@@ -32,7 +32,7 @@ type IndexTypeNoBlobAdvisor struct {
}
// Check checks for index type no blob.
-func (*IndexTypeNoBlobAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTypeNoBlobAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_insert_disallow_order_by_rand.go b/backend/plugin/advisor/mysql/advisor_insert_disallow_order_by_rand.go
index dd081545cf..c137f7ac07 100644
--- a/backend/plugin/advisor/mysql/advisor_insert_disallow_order_by_rand.go
+++ b/backend/plugin/advisor/mysql/advisor_insert_disallow_order_by_rand.go
@@ -33,7 +33,7 @@ type InsertDisallowOrderByRandAdvisor struct {
}
// Check checks for to disallow order by rand in INSERT statements.
-func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_insert_must_specify_column.go b/backend/plugin/advisor/mysql/advisor_insert_must_specify_column.go
index c5f724e2e6..1e78df7eeb 100644
--- a/backend/plugin/advisor/mysql/advisor_insert_must_specify_column.go
+++ b/backend/plugin/advisor/mysql/advisor_insert_must_specify_column.go
@@ -30,7 +30,7 @@ type InsertMustSpecifyColumnAdvisor struct {
}
// Check checks for to enforce column specified.
-func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_insert_row_limit.go b/backend/plugin/advisor/mysql/advisor_insert_row_limit.go
index eb90cedc58..25fa18bf04 100644
--- a/backend/plugin/advisor/mysql/advisor_insert_row_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_insert_row_limit.go
@@ -31,7 +31,7 @@ type InsertRowLimitAdvisor struct {
}
// Check checks for table naming convention.
-func (*InsertRowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertRowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql ParseResult")
diff --git a/backend/plugin/advisor/mysql/advisor_migration_compatibility.go b/backend/plugin/advisor/mysql/advisor_migration_compatibility.go
index 9e1babc8de..6eccf97590 100644
--- a/backend/plugin/advisor/mysql/advisor_migration_compatibility.go
+++ b/backend/plugin/advisor/mysql/advisor_migration_compatibility.go
@@ -28,7 +28,7 @@ type CompatibilityAdvisor struct {
}
// Check checks schema backward compatibility.
-func (*CompatibilityAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CompatibilityAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_auto_increment_column.go b/backend/plugin/advisor/mysql/advisor_naming_auto_increment_column.go
index a7ada10e35..342800669e 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_auto_increment_column.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_auto_increment_column.go
@@ -31,7 +31,7 @@ type NamingAutoIncrementColumnAdvisor struct {
}
// Check checks for auto-increment naming convention.
-func (*NamingAutoIncrementColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingAutoIncrementColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_column.go b/backend/plugin/advisor/mysql/advisor_naming_column.go
index 057c983963..d595b945a8 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_column.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_column.go
@@ -26,7 +26,7 @@ type NamingColumnConventionAdvisor struct {
}
// Check checks for column naming convention.
-func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql ParseResult")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go b/backend/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
index c395eee11c..61055b78c3 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
@@ -29,7 +29,7 @@ type NamingFKConventionAdvisor struct {
}
// Check checks for foreign key naming convention.
-func (*NamingFKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingFKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_identifier_no_keyword.go b/backend/plugin/advisor/mysql/advisor_naming_identifier_no_keyword.go
index 77409ef054..55a5d8a0d3 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_identifier_no_keyword.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_identifier_no_keyword.go
@@ -26,7 +26,7 @@ type NamingIdentifierNoKeywordAdvisor struct {
}
// Check checks for identifier naming convention without keyword.
-func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_index_convention.go b/backend/plugin/advisor/mysql/advisor_naming_index_convention.go
index 778abc056c..43912f3faf 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_index_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_index_convention.go
@@ -37,7 +37,7 @@ type NamingIndexConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_table.go b/backend/plugin/advisor/mysql/advisor_naming_table.go
index 314ad9d287..aad8f55bba 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_table.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_table.go
@@ -28,7 +28,7 @@ type NamingTableConventionAdvisor struct {
}
// Check checks for table naming convention.
-func (*NamingTableConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mysql/advisor_naming_unique_key_convention.go b/backend/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
index 05aaafff64..771b35aa07 100644
--- a/backend/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
@@ -30,7 +30,7 @@ type NamingUKConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingUKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingUKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_online_migration.go b/backend/plugin/advisor/mysql/advisor_online_migration.go
index 61ba88e724..171adf30ea 100644
--- a/backend/plugin/advisor/mysql/advisor_online_migration.go
+++ b/backend/plugin/advisor/mysql/advisor_online_migration.go
@@ -37,7 +37,7 @@ type OnlineMigrationAdvisor struct {
}
// Check checks for using gh-ost to migrate large tables.
-func (*OnlineMigrationAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*OnlineMigrationAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_add_column_without_position.go b/backend/plugin/advisor/mysql/advisor_statement_add_column_without_position.go
index effd459fdd..48841402f8 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_add_column_without_position.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_add_column_without_position.go
@@ -28,7 +28,7 @@ type StatementAddColumnWithoutPositionAdvisor struct {
}
// Check checks for checking no position in ADD COLUMN clause.
-func (*StatementAddColumnWithoutPositionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementAddColumnWithoutPositionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_affected_row_limit.go b/backend/plugin/advisor/mysql/advisor_statement_affected_row_limit.go
index 6815f4691f..9a0c28bcce 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_affected_row_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_affected_row_limit.go
@@ -32,7 +32,7 @@ type StatementAffectedRowLimitAdvisor struct {
}
// Check checks for UPDATE/DELETE affected row limit.
-func (*StatementAffectedRowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementAffectedRowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_ddl.go b/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_ddl.go
index 7d7b3f5ca1..14366ac73f 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_ddl.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_ddl.go
@@ -22,7 +22,7 @@ func init() {
type StatementDisallowMixInDDLAdvisor struct {
}
-func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DDL, storepb.PlanCheckRunConfig_SDL, storepb.PlanCheckRunConfig_DDL_GHOST:
default:
diff --git a/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_dml.go b/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_dml.go
index 4368728a61..242d445f0d 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_dml.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_disallow_mix_in_dml.go
@@ -22,7 +22,7 @@ func init() {
type StatementDisallowMixInDMLAdvisor struct {
}
-func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DML:
default:
diff --git a/backend/plugin/advisor/mysql/advisor_statement_disallow_using_filesort.go b/backend/plugin/advisor/mysql/advisor_statement_disallow_using_filesort.go
index ca3c7637d0..85860a19cc 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_disallow_using_filesort.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_disallow_using_filesort.go
@@ -28,7 +28,7 @@ func init() {
type StatementDisallowUsingFilesortAdvisor struct {
}
-func (*StatementDisallowUsingFilesortAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowUsingFilesortAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql ParseResult")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_disallow_using_temporary.go b/backend/plugin/advisor/mysql/advisor_statement_disallow_using_temporary.go
index 991030f66a..786445afd2 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_disallow_using_temporary.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_disallow_using_temporary.go
@@ -28,7 +28,7 @@ func init() {
type StatementDisallowUsingTemporaryAdvisor struct {
}
-func (*StatementDisallowUsingTemporaryAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowUsingTemporaryAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql ParseResult")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_dml_dry_run.go b/backend/plugin/advisor/mysql/advisor_statement_dml_dry_run.go
index cb1e9b1f3d..c915fc9845 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_dml_dry_run.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_dml_dry_run.go
@@ -33,7 +33,7 @@ type StatementDmlDryRunAdvisor struct {
}
// Check checks for DML dry run.
-func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_join_strict_column_attrs.go b/backend/plugin/advisor/mysql/advisor_statement_join_strict_column_attrs.go
index 97126de037..53f5397693 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_join_strict_column_attrs.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_join_strict_column_attrs.go
@@ -26,7 +26,7 @@ func init() {
type StatementJoinStrictColumnAttrsAdvisor struct {
}
-func (*StatementJoinStrictColumnAttrsAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementJoinStrictColumnAttrsAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_maximum_join_table_count.go b/backend/plugin/advisor/mysql/advisor_statement_maximum_join_table_count.go
index fb0a1dbb80..0eee59dc4a 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_maximum_join_table_count.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_maximum_join_table_count.go
@@ -24,7 +24,7 @@ func init() {
type StatementMaximumJoinTableCountAdvisor struct {
}
-func (*StatementMaximumJoinTableCountAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMaximumJoinTableCountAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_maximum_limit_value.go b/backend/plugin/advisor/mysql/advisor_statement_maximum_limit_value.go
index e0c4803ed0..ad10c81053 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_maximum_limit_value.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_maximum_limit_value.go
@@ -27,7 +27,7 @@ func init() {
type StatementMaximumLimitValueAdvisor struct {
}
-func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_maximum_statements_in_transaction.go b/backend/plugin/advisor/mysql/advisor_statement_maximum_statements_in_transaction.go
index 2c4f87b6d4..e52035f81b 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_maximum_statements_in_transaction.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_maximum_statements_in_transaction.go
@@ -22,7 +22,7 @@ func init() {
type StatementMaximumStatementsInTransactionAdvisor struct {
}
-func (*StatementMaximumStatementsInTransactionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMaximumStatementsInTransactionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_merge_alter_table.go b/backend/plugin/advisor/mysql/advisor_statement_merge_alter_table.go
index 2692e0632f..c289371c11 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_merge_alter_table.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_merge_alter_table.go
@@ -31,7 +31,7 @@ type StatementMergeAlterTableAdvisor struct {
}
// Check checks for merging ALTER TABLE statements.
-func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_query_minumum_plan_level.go b/backend/plugin/advisor/mysql/advisor_statement_query_minumum_plan_level.go
index bcdd711fda..ceddef5e92 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_query_minumum_plan_level.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_query_minumum_plan_level.go
@@ -28,7 +28,7 @@ func init() {
type StatementQueryMinumumPlanLevelAdvisor struct {
}
-func (*StatementQueryMinumumPlanLevelAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementQueryMinumumPlanLevelAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go b/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
index c5887112e8..9fe56a45be 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
@@ -30,7 +30,7 @@ func init() {
type StatementSelectFullTableScanAdvisor struct {
}
-func (*StatementSelectFullTableScanAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementSelectFullTableScanAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_where_disallow_using_function.go b/backend/plugin/advisor/mysql/advisor_statement_where_disallow_using_function.go
index 186de02e8a..a1fe369121 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_where_disallow_using_function.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_where_disallow_using_function.go
@@ -24,7 +24,7 @@ func init() {
type StatementWhereDisallowUsingFunctionAdvisor struct {
}
-func (*StatementWhereDisallowUsingFunctionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementWhereDisallowUsingFunctionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_where_maximum_logical_operator_count.go b/backend/plugin/advisor/mysql/advisor_statement_where_maximum_logical_operator_count.go
index 43ff277ac4..4038690335 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_where_maximum_logical_operator_count.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_where_maximum_logical_operator_count.go
@@ -24,7 +24,7 @@ func init() {
type StatementWhereMaximumLogicalOperatorCountAdvisor struct {
}
-func (*StatementWhereMaximumLogicalOperatorCountAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementWhereMaximumLogicalOperatorCountAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_statement_where_no_equal_null.go b/backend/plugin/advisor/mysql/advisor_statement_where_no_equal_null.go
index 52c5d7d9ec..2fea7857c5 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_where_no_equal_null.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_where_no_equal_null.go
@@ -24,7 +24,7 @@ func init() {
type StatementWhereNoEqualNullAdvisor struct {
}
-func (*StatementWhereNoEqualNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementWhereNoEqualNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_disallow_commit.go b/backend/plugin/advisor/mysql/advisor_stmt_disallow_commit.go
index c56d2f31a5..d6465ef10c 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_disallow_commit.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_disallow_commit.go
@@ -29,7 +29,7 @@ type StatementDisallowCommitAdvisor struct {
}
// Check checks for index type no blob.
-func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_disallow_limit.go b/backend/plugin/advisor/mysql/advisor_stmt_disallow_limit.go
index 118cd5743a..6bcd36c57e 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_disallow_limit.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_disallow_limit.go
@@ -29,7 +29,7 @@ type StatementDisallowLimitAdvisor struct {
}
// Check checks for no LIMIT clause in INSERT/UPDATE statement.
-func (*StatementDisallowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_disallow_order_by.go b/backend/plugin/advisor/mysql/advisor_stmt_disallow_order_by.go
index da3976dfd3..2f3cf8cef0 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_disallow_order_by.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_disallow_order_by.go
@@ -30,7 +30,7 @@ type DisallowOrderByAdvisor struct {
}
// Check checks for no ORDER BY clause in DELETE/UPDATE statements.
-func (*DisallowOrderByAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DisallowOrderByAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_max_execution_time.go b/backend/plugin/advisor/mysql/advisor_stmt_max_execution_time.go
index 44c8c290be..9e487496bd 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_max_execution_time.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_max_execution_time.go
@@ -27,7 +27,7 @@ func init() {
type MaxExecutionTimeAdvisor struct {
}
-func (*MaxExecutionTimeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*MaxExecutionTimeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to stmt list")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_no_leading_wildcard_like.go b/backend/plugin/advisor/mysql/advisor_stmt_no_leading_wildcard_like.go
index c940f5069c..c83d8101eb 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_no_leading_wildcard_like.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_no_leading_wildcard_like.go
@@ -29,7 +29,7 @@ type NoLeadingWildcardLikeAdvisor struct {
}
// Check checks for no leading wildcard LIKE.
-func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_no_select_all.go b/backend/plugin/advisor/mysql/advisor_stmt_no_select_all.go
index d05f21e7b5..c230cea8c9 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_no_select_all.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_no_select_all.go
@@ -27,7 +27,7 @@ type NoSelectAllAdvisor struct {
}
// Check checks for no "select *".
-func (*NoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_require_algorithm_or_lock_options.go b/backend/plugin/advisor/mysql/advisor_stmt_require_algorithm_or_lock_options.go
index 458ae89ab5..f89bbf4052 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_require_algorithm_or_lock_options.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_require_algorithm_or_lock_options.go
@@ -26,7 +26,7 @@ func init() {
type RequireAlgorithmOrLockOptionAdvisor struct {
}
-func (*RequireAlgorithmOrLockOptionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*RequireAlgorithmOrLockOptionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to stmt list")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_where_required.go b/backend/plugin/advisor/mysql/advisor_stmt_where_required.go
index d7310c553f..f935a3b083 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_where_required.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_where_required.go
@@ -27,7 +27,7 @@ type WhereRequirementAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_select.go b/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_select.go
index 45021aa0c4..fb8acee463 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_select.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_select.go
@@ -27,7 +27,7 @@ type WhereRequirementForSelectAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_update_delete.go b/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_update_delete.go
index 9863c5c0cd..e748f4426a 100644
--- a/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_update_delete.go
+++ b/backend/plugin/advisor/mysql/advisor_stmt_where_requirement_for_update_delete.go
@@ -27,7 +27,7 @@ type WhereRequirementForUpdateDeleteAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/mysql/advisor_table_comment_convention.go b/backend/plugin/advisor/mysql/advisor_table_comment_convention.go
index 6ca2516ba1..72d553f146 100644
--- a/backend/plugin/advisor/mysql/advisor_table_comment_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_table_comment_convention.go
@@ -28,7 +28,7 @@ type TableCommentConventionAdvisor struct {
}
// Check checks for table comment convention.
-func (*TableCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_disallow_ddl.go b/backend/plugin/advisor/mysql/advisor_table_disallow_ddl.go
index 05f5deac7c..b5a0f3fb13 100644
--- a/backend/plugin/advisor/mysql/advisor_table_disallow_ddl.go
+++ b/backend/plugin/advisor/mysql/advisor_table_disallow_ddl.go
@@ -24,7 +24,7 @@ func init() {
type TableDisallowDDLAdvisor struct {
}
-func (*TableDisallowDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_disallow_dml.go b/backend/plugin/advisor/mysql/advisor_table_disallow_dml.go
index 3837e93cc4..3484ae45e6 100644
--- a/backend/plugin/advisor/mysql/advisor_table_disallow_dml.go
+++ b/backend/plugin/advisor/mysql/advisor_table_disallow_dml.go
@@ -24,7 +24,7 @@ func init() {
type TableDisallowDMLAdvisor struct {
}
-func (*TableDisallowDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_disallow_partition.go b/backend/plugin/advisor/mysql/advisor_table_disallow_partition.go
index 5047d5f9f0..2ccc74d3bf 100644
--- a/backend/plugin/advisor/mysql/advisor_table_disallow_partition.go
+++ b/backend/plugin/advisor/mysql/advisor_table_disallow_partition.go
@@ -28,7 +28,7 @@ type TableDisallowPartitionAdvisor struct {
}
// Check checks for disallow table partition.
-func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_disallow_set_charset.go b/backend/plugin/advisor/mysql/advisor_table_disallow_set_charset.go
index 20b34ef579..18da5f2ef9 100644
--- a/backend/plugin/advisor/mysql/advisor_table_disallow_set_charset.go
+++ b/backend/plugin/advisor/mysql/advisor_table_disallow_set_charset.go
@@ -24,7 +24,7 @@ func init() {
type TableDisallowSetCharsetAdvisor struct {
}
-func (*TableDisallowSetCharsetAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowSetCharsetAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_disallow_trigger.go b/backend/plugin/advisor/mysql/advisor_table_disallow_trigger.go
index 1ff89b9f49..c2df32f617 100644
--- a/backend/plugin/advisor/mysql/advisor_table_disallow_trigger.go
+++ b/backend/plugin/advisor/mysql/advisor_table_disallow_trigger.go
@@ -26,7 +26,7 @@ type TableDisallowTriggerAdvisor struct {
}
// Check checks for disallow table trigger.
-func (*TableDisallowTriggerAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowTriggerAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_drop_naming_convention.go b/backend/plugin/advisor/mysql/advisor_table_drop_naming_convention.go
index 52554c583b..41d8aa9012 100644
--- a/backend/plugin/advisor/mysql/advisor_table_drop_naming_convention.go
+++ b/backend/plugin/advisor/mysql/advisor_table_drop_naming_convention.go
@@ -28,7 +28,7 @@ type TableDropNamingConventionAdvisor struct {
}
// Check checks for drop table naming convention.
-func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_limit_size.go b/backend/plugin/advisor/mysql/advisor_table_limit_size.go
index fe03f15ac0..6cae6dc29c 100644
--- a/backend/plugin/advisor/mysql/advisor_table_limit_size.go
+++ b/backend/plugin/advisor/mysql/advisor_table_limit_size.go
@@ -32,7 +32,7 @@ var (
)
// If table size > xx bytes, then warning/error.
-func (*MaximumTableSizeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*MaximumTableSizeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
var adviceList []*storepb.Advice
payload, err := advisor.UnmarshalNumberTypeRulePayload(ctx.Rule.Payload)
diff --git a/backend/plugin/advisor/mysql/advisor_table_no_duplicate_index.go b/backend/plugin/advisor/mysql/advisor_table_no_duplicate_index.go
index e1ef6efbe6..93ea3a36f5 100644
--- a/backend/plugin/advisor/mysql/advisor_table_no_duplicate_index.go
+++ b/backend/plugin/advisor/mysql/advisor_table_no_duplicate_index.go
@@ -29,7 +29,7 @@ type TableNoDuplicateIndexAdvisor struct {
}
// Check checks for no duplicate index in table.
-func (*TableNoDuplicateIndexAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoDuplicateIndexAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_no_fk.go b/backend/plugin/advisor/mysql/advisor_table_no_fk.go
index 34e221369a..060cbfddf6 100644
--- a/backend/plugin/advisor/mysql/advisor_table_no_fk.go
+++ b/backend/plugin/advisor/mysql/advisor_table_no_fk.go
@@ -29,7 +29,7 @@ type TableNoFKAdvisor struct {
}
// Check checks table disallow foreign key.
-func (*TableNoFKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoFKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_require_charset.go b/backend/plugin/advisor/mysql/advisor_table_require_charset.go
index 228a25854d..a81deadc98 100644
--- a/backend/plugin/advisor/mysql/advisor_table_require_charset.go
+++ b/backend/plugin/advisor/mysql/advisor_table_require_charset.go
@@ -25,7 +25,7 @@ func init() {
type TableRequireCharsetAdvisor struct {
}
-func (*TableRequireCharsetAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequireCharsetAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_require_collation.go b/backend/plugin/advisor/mysql/advisor_table_require_collation.go
index cb66185d89..0fb1c09c2c 100644
--- a/backend/plugin/advisor/mysql/advisor_table_require_collation.go
+++ b/backend/plugin/advisor/mysql/advisor_table_require_collation.go
@@ -25,7 +25,7 @@ func init() {
type TableRequireCollationAdvisor struct {
}
-func (*TableRequireCollationAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequireCollationAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_require_pk.go b/backend/plugin/advisor/mysql/advisor_table_require_pk.go
index 887f83ccc6..e1ed4887b1 100644
--- a/backend/plugin/advisor/mysql/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/mysql/advisor_table_require_pk.go
@@ -34,7 +34,7 @@ type TableRequirePKAdvisor struct {
}
// Check checks table requires PK.
-func (*TableRequirePKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_table_text_fields_total_length.go b/backend/plugin/advisor/mysql/advisor_table_text_fields_total_length.go
index 6307d4ba4b..cb7c022a13 100644
--- a/backend/plugin/advisor/mysql/advisor_table_text_fields_total_length.go
+++ b/backend/plugin/advisor/mysql/advisor_table_text_fields_total_length.go
@@ -28,7 +28,7 @@ func init() {
type TableMaximumVarcharLengthAdvisor struct {
}
-func (*TableMaximumVarcharLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableMaximumVarcharLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parse result")
diff --git a/backend/plugin/advisor/mysql/advisor_use_innodb.go b/backend/plugin/advisor/mysql/advisor_use_innodb.go
index dc1bf2c4f6..c18b914b66 100644
--- a/backend/plugin/advisor/mysql/advisor_use_innodb.go
+++ b/backend/plugin/advisor/mysql/advisor_use_innodb.go
@@ -31,7 +31,7 @@ type UseInnoDBAdvisor struct {
}
// Check checks for using InnoDB engine.
-func (*UseInnoDBAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*UseInnoDBAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
list, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/mysql/advisor_view_disallow_create.go b/backend/plugin/advisor/mysql/advisor_view_disallow_create.go
index bc3d7d6341..f021fa4c31 100644
--- a/backend/plugin/advisor/mysql/advisor_view_disallow_create.go
+++ b/backend/plugin/advisor/mysql/advisor_view_disallow_create.go
@@ -26,7 +26,7 @@ type ViewDisallowCreateAdvisor struct {
}
// Check checks for disallow creating view.
-func (*ViewDisallowCreateAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ViewDisallowCreateAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/oceanbase/advisor_disallow_offline_ddl.go b/backend/plugin/advisor/oceanbase/advisor_disallow_offline_ddl.go
index 76fad60f0a..ac1d845644 100644
--- a/backend/plugin/advisor/oceanbase/advisor_disallow_offline_ddl.go
+++ b/backend/plugin/advisor/oceanbase/advisor_disallow_offline_ddl.go
@@ -31,7 +31,7 @@ type DisallowOfflineDdlAdvisor struct {
}
// Check checks for disallow Offline DDL.
-func (*DisallowOfflineDdlAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DisallowOfflineDdlAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]*mysqlparser.ParseResult)
if !ok {
return nil, errors.Errorf("failed to convert to mysql parser result")
diff --git a/backend/plugin/advisor/oracle/advisor_builtin_prior_backup_check.go b/backend/plugin/advisor/oracle/advisor_builtin_prior_backup_check.go
index aec600bcc5..2ab20ea274 100644
--- a/backend/plugin/advisor/oracle/advisor_builtin_prior_backup_check.go
+++ b/backend/plugin/advisor/oracle/advisor_builtin_prior_backup_check.go
@@ -26,7 +26,7 @@ func init() {
type StatementPriorBackupCheckAdvisor struct {
}
-func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
if ctx.PreUpdateBackupDetail == nil || ctx.ChangeType != storepb.PlanCheckRunConfig_DML {
return nil, nil
}
diff --git a/backend/plugin/advisor/oracle/advisor_column_add_not_null_column_require_default.go b/backend/plugin/advisor/oracle/advisor_column_add_not_null_column_require_default.go
index e4b0b95825..8afc92ec24 100644
--- a/backend/plugin/advisor/oracle/advisor_column_add_not_null_column_require_default.go
+++ b/backend/plugin/advisor/oracle/advisor_column_add_not_null_column_require_default.go
@@ -27,7 +27,7 @@ type ColumnAddNotNullColumnRequireDefaultAdvisor struct {
}
// Check checks for adding not null column requires default.
-func (*ColumnAddNotNullColumnRequireDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAddNotNullColumnRequireDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_comment_convention.go b/backend/plugin/advisor/oracle/advisor_column_comment_convention.go
index cedee853ea..0b42ac34cd 100644
--- a/backend/plugin/advisor/oracle/advisor_column_comment_convention.go
+++ b/backend/plugin/advisor/oracle/advisor_column_comment_convention.go
@@ -27,7 +27,7 @@ func init() {
type ColumnCommentConventionAdvisor struct {
}
-func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_maximum_character_length.go b/backend/plugin/advisor/oracle/advisor_column_maximum_character_length.go
index c091aaca10..d55498d97b 100644
--- a/backend/plugin/advisor/oracle/advisor_column_maximum_character_length.go
+++ b/backend/plugin/advisor/oracle/advisor_column_maximum_character_length.go
@@ -28,7 +28,7 @@ type ColumnMaximumCharacterLengthAdvisor struct {
}
// Check checks for maximum character length.
-func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_maximum_varchar_length.go b/backend/plugin/advisor/oracle/advisor_column_maximum_varchar_length.go
index 2d42a2ab9a..a4508901d5 100644
--- a/backend/plugin/advisor/oracle/advisor_column_maximum_varchar_length.go
+++ b/backend/plugin/advisor/oracle/advisor_column_maximum_varchar_length.go
@@ -28,7 +28,7 @@ type ColumnMaximumVarcharLengthAdvisor struct {
}
// Check checks for maximum varchar length.
-func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_no_null.go b/backend/plugin/advisor/oracle/advisor_column_no_null.go
index 2c61c9a56a..d0f460af6b 100644
--- a/backend/plugin/advisor/oracle/advisor_column_no_null.go
+++ b/backend/plugin/advisor/oracle/advisor_column_no_null.go
@@ -30,7 +30,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value.
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_require.go b/backend/plugin/advisor/oracle/advisor_column_require.go
index b19f91a12b..56f2bc99cf 100644
--- a/backend/plugin/advisor/oracle/advisor_column_require.go
+++ b/backend/plugin/advisor/oracle/advisor_column_require.go
@@ -29,7 +29,7 @@ type ColumnRequireAdvisor struct {
}
// Check checks for column requirement.
-func (*ColumnRequireAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_require_default.go b/backend/plugin/advisor/oracle/advisor_column_require_default.go
index c3525afded..b74d7f4f98 100644
--- a/backend/plugin/advisor/oracle/advisor_column_require_default.go
+++ b/backend/plugin/advisor/oracle/advisor_column_require_default.go
@@ -28,7 +28,7 @@ type ColumnRequireDefaultAdvisor struct {
}
// Check checks for column default requirement.
-func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_column_type_disallow_list.go b/backend/plugin/advisor/oracle/advisor_column_type_disallow_list.go
index 38759de5e8..3a149b9f66 100644
--- a/backend/plugin/advisor/oracle/advisor_column_type_disallow_list.go
+++ b/backend/plugin/advisor/oracle/advisor_column_type_disallow_list.go
@@ -28,7 +28,7 @@ type ColumnTypeDisallowListAdvisor struct {
}
// Check checks for column type disallow list.
-func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_index_key_number_limit.go b/backend/plugin/advisor/oracle/advisor_index_key_number_limit.go
index be3d2ad992..5c91286fe9 100644
--- a/backend/plugin/advisor/oracle/advisor_index_key_number_limit.go
+++ b/backend/plugin/advisor/oracle/advisor_index_key_number_limit.go
@@ -27,7 +27,7 @@ type IndexKeyNumberLimitAdvisor struct {
}
// Check checks for index key number limit.
-func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_insert_must_specify_column.go b/backend/plugin/advisor/oracle/advisor_insert_must_specify_column.go
index 9f96da8148..8fcc981144 100644
--- a/backend/plugin/advisor/oracle/advisor_insert_must_specify_column.go
+++ b/backend/plugin/advisor/oracle/advisor_insert_must_specify_column.go
@@ -25,7 +25,7 @@ type InsertMustSpecifyColumnAdvisor struct {
}
// Check checks for to enforce column specified.
-func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_naming_identifier_case.go b/backend/plugin/advisor/oracle/advisor_naming_identifier_case.go
index a130731638..84c11f97b3 100644
--- a/backend/plugin/advisor/oracle/advisor_naming_identifier_case.go
+++ b/backend/plugin/advisor/oracle/advisor_naming_identifier_case.go
@@ -28,7 +28,7 @@ type NamingIdentifierCaseAdvisor struct {
}
// Check checks for identifier case.
-func (*NamingIdentifierCaseAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierCaseAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_naming_identifier_no_keyword.go b/backend/plugin/advisor/oracle/advisor_naming_identifier_no_keyword.go
index e34870892e..f8a0ab59b1 100644
--- a/backend/plugin/advisor/oracle/advisor_naming_identifier_no_keyword.go
+++ b/backend/plugin/advisor/oracle/advisor_naming_identifier_no_keyword.go
@@ -28,7 +28,7 @@ type NamingIdentifierNoKeywordAdvisor struct {
}
// Check checks for identifier naming convention without keyword.
-func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_naming_table.go b/backend/plugin/advisor/oracle/advisor_naming_table.go
index 03b45be038..7d1a18ee31 100644
--- a/backend/plugin/advisor/oracle/advisor_naming_table.go
+++ b/backend/plugin/advisor/oracle/advisor_naming_table.go
@@ -28,7 +28,7 @@ type NamingTableAdvisor struct {
}
// Check checks for table naming convention.
-func (*NamingTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_naming_table_no_keyword.go b/backend/plugin/advisor/oracle/advisor_naming_table_no_keyword.go
index 5b390cac66..fadbba71c2 100644
--- a/backend/plugin/advisor/oracle/advisor_naming_table_no_keyword.go
+++ b/backend/plugin/advisor/oracle/advisor_naming_table_no_keyword.go
@@ -28,7 +28,7 @@ type NamingTableNoKeywordAdvisor struct {
}
// Check checks for table naming convention without keyword.
-func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_select_no_select_all.go b/backend/plugin/advisor/oracle/advisor_select_no_select_all.go
index d1efae60a6..8efdf756e9 100644
--- a/backend/plugin/advisor/oracle/advisor_select_no_select_all.go
+++ b/backend/plugin/advisor/oracle/advisor_select_no_select_all.go
@@ -25,7 +25,7 @@ type SelectNoSelectAllAdvisor struct {
}
// Check checks for no select all.
-func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_ddl.go b/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_ddl.go
index e2ec0c715c..f3a65bdd65 100644
--- a/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_ddl.go
+++ b/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_ddl.go
@@ -23,7 +23,7 @@ func init() {
type StatementDisallowMixInDDLAdvisor struct {
}
-func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DDL, storepb.PlanCheckRunConfig_SDL, storepb.PlanCheckRunConfig_DDL_GHOST:
default:
diff --git a/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_dml.go b/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_dml.go
index 4327a47326..92149e84c7 100644
--- a/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_dml.go
+++ b/backend/plugin/advisor/oracle/advisor_statement_disallow_mix_in_dml.go
@@ -23,7 +23,7 @@ func init() {
type StatementDisallowMixInDMLAdvisor struct {
}
-func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DML:
default:
diff --git a/backend/plugin/advisor/oracle/advisor_statement_dml_dry_run.go b/backend/plugin/advisor/oracle/advisor_statement_dml_dry_run.go
index ae9f3dee87..fafc70aad3 100644
--- a/backend/plugin/advisor/oracle/advisor_statement_dml_dry_run.go
+++ b/backend/plugin/advisor/oracle/advisor_statement_dml_dry_run.go
@@ -27,7 +27,7 @@ func init() {
type StatementDmlDryRunAdvisor struct {
}
-func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_table_comment_convention.go b/backend/plugin/advisor/oracle/advisor_table_comment_convention.go
index 3281d62e65..81e9413710 100644
--- a/backend/plugin/advisor/oracle/advisor_table_comment_convention.go
+++ b/backend/plugin/advisor/oracle/advisor_table_comment_convention.go
@@ -27,7 +27,7 @@ func init() {
type TableCommentConventionAdvisor struct {
}
-func (*TableCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_table_no_foreign_key.go b/backend/plugin/advisor/oracle/advisor_table_no_foreign_key.go
index 7f24ea4a29..65e3d19320 100644
--- a/backend/plugin/advisor/oracle/advisor_table_no_foreign_key.go
+++ b/backend/plugin/advisor/oracle/advisor_table_no_foreign_key.go
@@ -27,7 +27,7 @@ type TableNoForeignKeyAdvisor struct {
}
// Check checks for table disallow foreign key.
-func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_table_require_pk.go b/backend/plugin/advisor/oracle/advisor_table_require_pk.go
index 8e99a8c835..8898c5368c 100644
--- a/backend/plugin/advisor/oracle/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/oracle/advisor_table_require_pk.go
@@ -27,7 +27,7 @@ type TableRequirePKAdvisor struct {
}
// Check checks table requires PK.
-func (*TableRequirePKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_where_no_leading_wildcard_like.go b/backend/plugin/advisor/oracle/advisor_where_no_leading_wildcard_like.go
index 6a88a9b33a..7209a73441 100644
--- a/backend/plugin/advisor/oracle/advisor_where_no_leading_wildcard_like.go
+++ b/backend/plugin/advisor/oracle/advisor_where_no_leading_wildcard_like.go
@@ -27,7 +27,7 @@ type WhereNoLeadingWildcardLikeAdvisor struct {
}
// Check checks for no leading wildcard LIKE.
-func (*WhereNoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereNoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_where_require_for_select.go b/backend/plugin/advisor/oracle/advisor_where_require_for_select.go
index 566fdd0d93..acf6213898 100644
--- a/backend/plugin/advisor/oracle/advisor_where_require_for_select.go
+++ b/backend/plugin/advisor/oracle/advisor_where_require_for_select.go
@@ -27,7 +27,7 @@ type WhereRequireForSelectAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequireForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequireForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/oracle/advisor_where_require_for_update_delete.go b/backend/plugin/advisor/oracle/advisor_where_require_for_update_delete.go
index dda0cd45a7..049b75720c 100644
--- a/backend/plugin/advisor/oracle/advisor_where_require_for_update_delete.go
+++ b/backend/plugin/advisor/oracle/advisor_where_require_for_update_delete.go
@@ -25,7 +25,7 @@ type WhereRequireForUpdateDeleteAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequireForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequireForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/pg/advisor_builtin_prior_backup_check.go b/backend/plugin/advisor/pg/advisor_builtin_prior_backup_check.go
index 6b7687981d..da8fd2afb5 100644
--- a/backend/plugin/advisor/pg/advisor_builtin_prior_backup_check.go
+++ b/backend/plugin/advisor/pg/advisor_builtin_prior_backup_check.go
@@ -36,7 +36,7 @@ type BuiltinPriorBackupCheckAdvisor struct {
}
// Check checks for disallow mix DDL and DML.
-func (*BuiltinPriorBackupCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*BuiltinPriorBackupCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
if ctx.PreUpdateBackupDetail == nil || ctx.ChangeType != storepb.PlanCheckRunConfig_DML {
return nil, nil
}
diff --git a/backend/plugin/advisor/pg/advisor_collation_allowlist.go b/backend/plugin/advisor/pg/advisor_collation_allowlist.go
index 410daa1774..788f7aec09 100644
--- a/backend/plugin/advisor/pg/advisor_collation_allowlist.go
+++ b/backend/plugin/advisor/pg/advisor_collation_allowlist.go
@@ -26,7 +26,7 @@ type CollationAllowlistAdvisor struct {
}
// Check checks for collation allowlist.
-func (*CollationAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CollationAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_comment_convention.go b/backend/plugin/advisor/pg/advisor_column_comment_convention.go
index e68aebdada..5546142b33 100644
--- a/backend/plugin/advisor/pg/advisor_column_comment_convention.go
+++ b/backend/plugin/advisor/pg/advisor_column_comment_convention.go
@@ -24,7 +24,7 @@ func init() {
type ColumnCommentConventionAdvisor struct {
}
-func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_default_disallow_volatile.go b/backend/plugin/advisor/pg/advisor_column_default_disallow_volatile.go
index 32218df556..65f1226d3f 100644
--- a/backend/plugin/advisor/pg/advisor_column_default_disallow_volatile.go
+++ b/backend/plugin/advisor/pg/advisor_column_default_disallow_volatile.go
@@ -28,7 +28,7 @@ type ColumnDefaultDisallowVolatileAdvisor struct {
}
// Check checks for column default requirement.
-func (*ColumnDefaultDisallowVolatileAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDefaultDisallowVolatileAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_disallow_changing_type.go b/backend/plugin/advisor/pg/advisor_column_disallow_changing_type.go
index a3a0421121..843bcd3a11 100644
--- a/backend/plugin/advisor/pg/advisor_column_disallow_changing_type.go
+++ b/backend/plugin/advisor/pg/advisor_column_disallow_changing_type.go
@@ -26,7 +26,7 @@ type ColumnDisallowChangingTypeAdvisor struct {
}
// Check checks for disallow changing column type.
-func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_maximum_character_length.go b/backend/plugin/advisor/pg/advisor_column_maximum_character_length.go
index 628fad232c..84b0da79a7 100644
--- a/backend/plugin/advisor/pg/advisor_column_maximum_character_length.go
+++ b/backend/plugin/advisor/pg/advisor_column_maximum_character_length.go
@@ -26,7 +26,7 @@ type ColumnMaximumCharacterLengthAdvisor struct {
}
// Check checks for maximum character length.
-func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_no_null.go b/backend/plugin/advisor/pg/advisor_column_no_null.go
index 383b6adc1e..00f8051da9 100644
--- a/backend/plugin/advisor/pg/advisor_column_no_null.go
+++ b/backend/plugin/advisor/pg/advisor_column_no_null.go
@@ -26,7 +26,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value.
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_require_default.go b/backend/plugin/advisor/pg/advisor_column_require_default.go
index 8eb2cf5fd9..a356ec800d 100644
--- a/backend/plugin/advisor/pg/advisor_column_require_default.go
+++ b/backend/plugin/advisor/pg/advisor_column_require_default.go
@@ -28,7 +28,7 @@ type ColumnRequireDefaultAdvisor struct {
}
// Check checks for column default requirement.
-func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_required.go b/backend/plugin/advisor/pg/advisor_column_required.go
index 01bdb466f8..a898df261c 100644
--- a/backend/plugin/advisor/pg/advisor_column_required.go
+++ b/backend/plugin/advisor/pg/advisor_column_required.go
@@ -28,7 +28,7 @@ type ColumnRequirementAdvisor struct {
}
// Check checks for the column requirement.
-func (*ColumnRequirementAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequirementAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_column_type_disallow_list.go b/backend/plugin/advisor/pg/advisor_column_type_disallow_list.go
index e64270d5c5..3f9c48a887 100644
--- a/backend/plugin/advisor/pg/advisor_column_type_disallow_list.go
+++ b/backend/plugin/advisor/pg/advisor_column_type_disallow_list.go
@@ -20,7 +20,7 @@ type ColumnTypeDisallowListAdvisor struct {
}
// Check checks for column type restriction.
-func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_comment_convention.go b/backend/plugin/advisor/pg/advisor_comment_convention.go
index ab7eea4f6b..5e3db091fa 100644
--- a/backend/plugin/advisor/pg/advisor_comment_convention.go
+++ b/backend/plugin/advisor/pg/advisor_comment_convention.go
@@ -26,7 +26,7 @@ type CommentConventionAdvisor struct {
}
// Check checks for comment convention.
-func (*CommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_encoding_allowlist.go b/backend/plugin/advisor/pg/advisor_encoding_allowlist.go
index 7a64d21bd3..913740fe79 100644
--- a/backend/plugin/advisor/pg/advisor_encoding_allowlist.go
+++ b/backend/plugin/advisor/pg/advisor_encoding_allowlist.go
@@ -25,7 +25,7 @@ type EncodingAllowlistAdvisor struct {
}
// Check checks for encoding allowlist.
-func (*EncodingAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*EncodingAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_index_create_concurrently.go b/backend/plugin/advisor/pg/advisor_index_create_concurrently.go
index d9001799d8..6e9bea8aad 100644
--- a/backend/plugin/advisor/pg/advisor_index_create_concurrently.go
+++ b/backend/plugin/advisor/pg/advisor_index_create_concurrently.go
@@ -24,7 +24,7 @@ type IndexCreateConcurrentlyAdvisor struct {
}
// Check checks for to create index concurrently.
-func (*IndexCreateConcurrentlyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexCreateConcurrentlyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_index_key_number_limit.go b/backend/plugin/advisor/pg/advisor_index_key_number_limit.go
index 21362f505a..597c00d800 100644
--- a/backend/plugin/advisor/pg/advisor_index_key_number_limit.go
+++ b/backend/plugin/advisor/pg/advisor_index_key_number_limit.go
@@ -24,7 +24,7 @@ type IndexKeyNumberLimitAdvisor struct {
}
// Check checks for index key number limit.
-func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_index_no_duplicate_column.go b/backend/plugin/advisor/pg/advisor_index_no_duplicate_column.go
index e6759c72e9..a005d93bca 100644
--- a/backend/plugin/advisor/pg/advisor_index_no_duplicate_column.go
+++ b/backend/plugin/advisor/pg/advisor_index_no_duplicate_column.go
@@ -19,7 +19,7 @@ type IndexNoDuplicateColumnAdvisor struct {
}
// Check checks for no duplicate columns in index.
-func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_index_primary_key_type_allowlist.go b/backend/plugin/advisor/pg/advisor_index_primary_key_type_allowlist.go
index 8e6745e43c..723fcc0367 100644
--- a/backend/plugin/advisor/pg/advisor_index_primary_key_type_allowlist.go
+++ b/backend/plugin/advisor/pg/advisor_index_primary_key_type_allowlist.go
@@ -28,7 +28,7 @@ type IndexPrimaryKeyTypeAllowlistAdvisor struct {
}
// Check checks for primary key type allowlist.
-func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_index_total_number_limit.go b/backend/plugin/advisor/pg/advisor_index_total_number_limit.go
index 307d67a9a4..b49e3e5440 100644
--- a/backend/plugin/advisor/pg/advisor_index_total_number_limit.go
+++ b/backend/plugin/advisor/pg/advisor_index_total_number_limit.go
@@ -28,7 +28,7 @@ type IndexTotalNumberLimitAdvisor struct {
}
// Check checks for index total number limit.
-func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_insert_disallow_order_by_rand.go b/backend/plugin/advisor/pg/advisor_insert_disallow_order_by_rand.go
index ea446e8487..8fa5adca24 100644
--- a/backend/plugin/advisor/pg/advisor_insert_disallow_order_by_rand.go
+++ b/backend/plugin/advisor/pg/advisor_insert_disallow_order_by_rand.go
@@ -27,7 +27,7 @@ type InsertDisallowOrderByRandAdvisor struct {
}
// Check checks for to disallow order by rand in INSERT statements.
-func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_insert_must_specify_column.go b/backend/plugin/advisor/pg/advisor_insert_must_specify_column.go
index 06715913d4..a4042ee9f5 100644
--- a/backend/plugin/advisor/pg/advisor_insert_must_specify_column.go
+++ b/backend/plugin/advisor/pg/advisor_insert_must_specify_column.go
@@ -26,7 +26,7 @@ type InsertMustSpecifyColumnAdvisor struct {
}
// Check checks for to enforce column specified.
-func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_insert_row_limit.go b/backend/plugin/advisor/pg/advisor_insert_row_limit.go
index 2eeac7d728..9d744d8106 100644
--- a/backend/plugin/advisor/pg/advisor_insert_row_limit.go
+++ b/backend/plugin/advisor/pg/advisor_insert_row_limit.go
@@ -29,7 +29,7 @@ type InsertRowLimitAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*InsertRowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertRowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_migration_compatibility.go b/backend/plugin/advisor/pg/advisor_migration_compatibility.go
index b7100c0c90..403019ebcf 100644
--- a/backend/plugin/advisor/pg/advisor_migration_compatibility.go
+++ b/backend/plugin/advisor/pg/advisor_migration_compatibility.go
@@ -24,7 +24,7 @@ type CompatibilityAdvisor struct {
}
// Check checks schema backward compatibility.
-func (*CompatibilityAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CompatibilityAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_column.go b/backend/plugin/advisor/pg/advisor_naming_column.go
index 8289e624df..2a53dc35de 100644
--- a/backend/plugin/advisor/pg/advisor_naming_column.go
+++ b/backend/plugin/advisor/pg/advisor_naming_column.go
@@ -25,7 +25,7 @@ type NamingColumnConventionAdvisor struct {
}
// Check checks for column naming convention.
-func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_foreign_key_convention.go b/backend/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
index 522bb6fffb..053e07bb50 100644
--- a/backend/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
+++ b/backend/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
@@ -26,7 +26,7 @@ type NamingFKConventionAdvisor struct {
}
// Check checks for foreign key naming convention.
-func (*NamingFKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingFKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_fully_qualified.go b/backend/plugin/advisor/pg/advisor_naming_fully_qualified.go
index 4775314fc7..a3d5cbaa05 100644
--- a/backend/plugin/advisor/pg/advisor_naming_fully_qualified.go
+++ b/backend/plugin/advisor/pg/advisor_naming_fully_qualified.go
@@ -126,7 +126,7 @@ var (
_ ast.Visitor = (*FullyQualifiedObjectNameChecker)(nil)
)
-func (*FullyQualifiedObjectNameAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*FullyQualifiedObjectNameAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
checker := &FullyQualifiedObjectNameChecker{}
status, err := advisor.NewStatusBySQLReviewRuleLevel(ctx.Rule.Level)
if err != nil {
diff --git a/backend/plugin/advisor/pg/advisor_naming_index_convention.go b/backend/plugin/advisor/pg/advisor_naming_index_convention.go
index 9844a5e82a..078ebf7392 100644
--- a/backend/plugin/advisor/pg/advisor_naming_index_convention.go
+++ b/backend/plugin/advisor/pg/advisor_naming_index_convention.go
@@ -26,7 +26,7 @@ type NamingIndexConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_primary_key_convention.go b/backend/plugin/advisor/pg/advisor_naming_primary_key_convention.go
index 3cd0291655..8eece5fd36 100644
--- a/backend/plugin/advisor/pg/advisor_naming_primary_key_convention.go
+++ b/backend/plugin/advisor/pg/advisor_naming_primary_key_convention.go
@@ -26,7 +26,7 @@ type NamingPKConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingPKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingPKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_table.go b/backend/plugin/advisor/pg/advisor_naming_table.go
index 8e2b5e7269..4324f9c97e 100644
--- a/backend/plugin/advisor/pg/advisor_naming_table.go
+++ b/backend/plugin/advisor/pg/advisor_naming_table.go
@@ -25,7 +25,7 @@ type NamingTableConventionAdvisor struct {
}
// Check checks for table naming convention.
-func (*NamingTableConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_naming_unique_key_convention.go b/backend/plugin/advisor/pg/advisor_naming_unique_key_convention.go
index 7a372c6dad..7ec3c20092 100644
--- a/backend/plugin/advisor/pg/advisor_naming_unique_key_convention.go
+++ b/backend/plugin/advisor/pg/advisor_naming_unique_key_convention.go
@@ -26,7 +26,7 @@ type NamingUKConventionAdvisor struct {
}
// Check checks for unique key naming convention.
-func (*NamingUKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingUKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_add_check_not_valid.go b/backend/plugin/advisor/pg/advisor_statement_add_check_not_valid.go
index 3191323afa..ec551128ba 100644
--- a/backend/plugin/advisor/pg/advisor_statement_add_check_not_valid.go
+++ b/backend/plugin/advisor/pg/advisor_statement_add_check_not_valid.go
@@ -24,7 +24,7 @@ type StatementAddCheckNotValidAdvisor struct {
}
// Check checks for to add check not valid.
-func (*StatementAddCheckNotValidAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementAddCheckNotValidAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_add_fk_not_valid.go b/backend/plugin/advisor/pg/advisor_statement_add_fk_not_valid.go
index eca89d681c..e26cb5fcf9 100644
--- a/backend/plugin/advisor/pg/advisor_statement_add_fk_not_valid.go
+++ b/backend/plugin/advisor/pg/advisor_statement_add_fk_not_valid.go
@@ -24,7 +24,7 @@ type StatementAddFKNotValidAdvisor struct {
}
// Check checks for to add check not valid.
-func (*StatementAddFKNotValidAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementAddFKNotValidAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_affected_row_limit.go b/backend/plugin/advisor/pg/advisor_statement_affected_row_limit.go
index a5b53eec9e..fedb56e65c 100644
--- a/backend/plugin/advisor/pg/advisor_statement_affected_row_limit.go
+++ b/backend/plugin/advisor/pg/advisor_statement_affected_row_limit.go
@@ -29,7 +29,7 @@ type StatementAffectedRowLimitAdvisor struct {
}
// Check checks for UPDATE/DELETE affected row limit.
-func (*StatementAffectedRowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementAffectedRowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_check_set_role_variable.go b/backend/plugin/advisor/pg/advisor_statement_check_set_role_variable.go
index 9b0270b58a..9850c52c28 100644
--- a/backend/plugin/advisor/pg/advisor_statement_check_set_role_variable.go
+++ b/backend/plugin/advisor/pg/advisor_statement_check_set_role_variable.go
@@ -19,7 +19,7 @@ func init() {
type StatementCheckSetRoleVariable struct {
}
-func (*StatementCheckSetRoleVariable) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementCheckSetRoleVariable) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_create_specify_schema.go b/backend/plugin/advisor/pg/advisor_statement_create_specify_schema.go
index 5bfc50d610..b5ef6169c3 100644
--- a/backend/plugin/advisor/pg/advisor_statement_create_specify_schema.go
+++ b/backend/plugin/advisor/pg/advisor_statement_create_specify_schema.go
@@ -20,7 +20,7 @@ func init() {
type StatementCreateSpecifySchema struct {
}
-func (*StatementCreateSpecifySchema) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementCreateSpecifySchema) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_add_column_with_default.go b/backend/plugin/advisor/pg/advisor_statement_disallow_add_column_with_default.go
index bcaf5f5166..d7330933b9 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_add_column_with_default.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_add_column_with_default.go
@@ -24,7 +24,7 @@ type StatementDisallowAddColumnWithDefaultAdvisor struct {
}
// Check checks for to disallow add column with default.
-func (*StatementDisallowAddColumnWithDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowAddColumnWithDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_add_not_null.go b/backend/plugin/advisor/pg/advisor_statement_disallow_add_not_null.go
index 0ac48e6d30..7e26019185 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_add_not_null.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_add_not_null.go
@@ -26,7 +26,7 @@ type StatementDisallowAddNotNullAdvisor struct {
}
// Check checks for to disallow add not null.
-func (*StatementDisallowAddNotNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowAddNotNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_commit.go b/backend/plugin/advisor/pg/advisor_statement_disallow_commit.go
index f8e30f4335..68e0f6e7e8 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_commit.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_commit.go
@@ -26,7 +26,7 @@ type StatementDisallowCommitAdvisor struct {
}
// Check checks for to disallow commit.
-func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_ddl.go b/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_ddl.go
index e77f7c911c..cbad7e3264 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_ddl.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_ddl.go
@@ -25,7 +25,7 @@ type StatementDisallowMixInDDLAdvisor struct {
}
// Check checks for disallow mix DDL and DML.
-func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DDL, storepb.PlanCheckRunConfig_SDL, storepb.PlanCheckRunConfig_DDL_GHOST:
default:
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_dml.go b/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_dml.go
index 372a397d9a..a62614638a 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_dml.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_mix_in_dml.go
@@ -25,7 +25,7 @@ type StatementDisallowMixInDMLAdvisor struct {
}
// Check checks for disallow mix DDL and DML.
-func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DML:
default:
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_on_del_cascade.go b/backend/plugin/advisor/pg/advisor_statement_disallow_on_del_cascade.go
index 722f9f76ea..2f669752e2 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_on_del_cascade.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_on_del_cascade.go
@@ -25,7 +25,7 @@ type StatementDisallowOnDelCascadeAdvisor struct {
}
// Check checks for DML dry run.
-func (*StatementDisallowOnDelCascadeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowOnDelCascadeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmt := ctx.Statements
if stmt == "" {
return nil, nil
diff --git a/backend/plugin/advisor/pg/advisor_statement_disallow_rm_tbl_cascade.go b/backend/plugin/advisor/pg/advisor_statement_disallow_rm_tbl_cascade.go
index 7fbfa3111a..81fb629b79 100644
--- a/backend/plugin/advisor/pg/advisor_statement_disallow_rm_tbl_cascade.go
+++ b/backend/plugin/advisor/pg/advisor_statement_disallow_rm_tbl_cascade.go
@@ -25,7 +25,7 @@ type StatementDisallowRemoveTblCascadeAdvisor struct {
}
// Check checks for DML dry run.
-func (*StatementDisallowRemoveTblCascadeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowRemoveTblCascadeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmt := ctx.Statements
if stmt == "" {
return nil, nil
diff --git a/backend/plugin/advisor/pg/advisor_statement_dml_dry_run.go b/backend/plugin/advisor/pg/advisor_statement_dml_dry_run.go
index 4f9ac4b5d5..221e30ca66 100644
--- a/backend/plugin/advisor/pg/advisor_statement_dml_dry_run.go
+++ b/backend/plugin/advisor/pg/advisor_statement_dml_dry_run.go
@@ -29,7 +29,7 @@ type StatementDmlDryRunAdvisor struct {
}
// Check checks for DML dry run.
-func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_maximum_limit_value.go b/backend/plugin/advisor/pg/advisor_statement_maximum_limit_value.go
index a7e8c9f2b0..0810aee263 100644
--- a/backend/plugin/advisor/pg/advisor_statement_maximum_limit_value.go
+++ b/backend/plugin/advisor/pg/advisor_statement_maximum_limit_value.go
@@ -26,7 +26,7 @@ type StatementMaximumLimitValueAdvisor struct {
}
// Check checks for to add check not valid.
-func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_merge_alter_table.go b/backend/plugin/advisor/pg/advisor_statement_merge_alter_table.go
index e8420bf462..ec5055f8ac 100644
--- a/backend/plugin/advisor/pg/advisor_statement_merge_alter_table.go
+++ b/backend/plugin/advisor/pg/advisor_statement_merge_alter_table.go
@@ -27,7 +27,7 @@ type StatementMergeAlterTableAdvisor struct {
}
// Check checks for no redundant ALTER TABLE statements.
-func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_non_transactional.go b/backend/plugin/advisor/pg/advisor_statement_non_transactional.go
index d1b92f7013..c2c7e3a71d 100644
--- a/backend/plugin/advisor/pg/advisor_statement_non_transactional.go
+++ b/backend/plugin/advisor/pg/advisor_statement_non_transactional.go
@@ -20,7 +20,7 @@ func init() {
type NonTransactionalAdvisor struct {
}
-func (*NonTransactionalAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NonTransactionalAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_statement_object_owner_check.go b/backend/plugin/advisor/pg/advisor_statement_object_owner_check.go
index 1aa1d1f4c9..4f99a9378c 100644
--- a/backend/plugin/advisor/pg/advisor_statement_object_owner_check.go
+++ b/backend/plugin/advisor/pg/advisor_statement_object_owner_check.go
@@ -30,7 +30,7 @@ const (
type StatementObjectOwnerCheckAdvisor struct {
}
-func (*StatementObjectOwnerCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementObjectOwnerCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
var adviceList []*storepb.Advice
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
diff --git a/backend/plugin/advisor/pg/advisor_stmt_no_leading_wildcard_like.go b/backend/plugin/advisor/pg/advisor_stmt_no_leading_wildcard_like.go
index 11b98c70fa..faeab10e88 100644
--- a/backend/plugin/advisor/pg/advisor_stmt_no_leading_wildcard_like.go
+++ b/backend/plugin/advisor/pg/advisor_stmt_no_leading_wildcard_like.go
@@ -28,7 +28,7 @@ type NoLeadingWildcardLikeAdvisor struct {
}
// Check checks for no leading wildcard LIKE.
-func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_stmt_no_select_all.go b/backend/plugin/advisor/pg/advisor_stmt_no_select_all.go
index d69f76df2d..25057669b9 100644
--- a/backend/plugin/advisor/pg/advisor_stmt_no_select_all.go
+++ b/backend/plugin/advisor/pg/advisor_stmt_no_select_all.go
@@ -24,7 +24,7 @@ type NoSelectAllAdvisor struct {
}
// Check checks for no "select *".
-func (*NoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_stmt_where_required_select.go b/backend/plugin/advisor/pg/advisor_stmt_where_required_select.go
index 3be5f7d178..c0e678bb9f 100644
--- a/backend/plugin/advisor/pg/advisor_stmt_where_required_select.go
+++ b/backend/plugin/advisor/pg/advisor_stmt_where_required_select.go
@@ -24,7 +24,7 @@ type WhereRequirementForSelectAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_stmt_where_required_update_delete.go b/backend/plugin/advisor/pg/advisor_stmt_where_required_update_delete.go
index b30e9159cc..6087e61ba0 100644
--- a/backend/plugin/advisor/pg/advisor_stmt_where_required_update_delete.go
+++ b/backend/plugin/advisor/pg/advisor_stmt_where_required_update_delete.go
@@ -24,7 +24,7 @@ type WhereRequirementForUpdateDeleteAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_table_comment_convention.go b/backend/plugin/advisor/pg/advisor_table_comment_convention.go
index 02c467724e..67d84fb0d9 100644
--- a/backend/plugin/advisor/pg/advisor_table_comment_convention.go
+++ b/backend/plugin/advisor/pg/advisor_table_comment_convention.go
@@ -24,7 +24,7 @@ func init() {
type TableCommentConventionAdvisor struct {
}
-func (*TableCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_table_disallow_partition.go b/backend/plugin/advisor/pg/advisor_table_disallow_partition.go
index 2d3fb9a6fb..ef278b6f65 100644
--- a/backend/plugin/advisor/pg/advisor_table_disallow_partition.go
+++ b/backend/plugin/advisor/pg/advisor_table_disallow_partition.go
@@ -26,7 +26,7 @@ type TableDisallowPartitionAdvisor struct {
}
// Check checks for disallow table partition.
-func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_table_drop_naming_convention.go b/backend/plugin/advisor/pg/advisor_table_drop_naming_convention.go
index a08ba7f1e4..89957fc130 100644
--- a/backend/plugin/advisor/pg/advisor_table_drop_naming_convention.go
+++ b/backend/plugin/advisor/pg/advisor_table_drop_naming_convention.go
@@ -27,7 +27,7 @@ type TableDropNamingConventionAdvisor struct {
}
// Check checks for table drop with naming convention.
-func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_table_no_fk.go b/backend/plugin/advisor/pg/advisor_table_no_fk.go
index 28eb372c9f..2a0a1a31ed 100644
--- a/backend/plugin/advisor/pg/advisor_table_no_fk.go
+++ b/backend/plugin/advisor/pg/advisor_table_no_fk.go
@@ -24,7 +24,7 @@ type TableNoFKAdvisor struct {
}
// Check checks table disallow foreign key.
-func (*TableNoFKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoFKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/pg/advisor_table_require_pk.go b/backend/plugin/advisor/pg/advisor_table_require_pk.go
index 7d30e1e00e..549311d96d 100644
--- a/backend/plugin/advisor/pg/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/pg/advisor_table_require_pk.go
@@ -25,7 +25,7 @@ type TableRequirePKAdvisor struct {
}
// Check parses the given statement and checks for errors.
-func (*TableRequirePKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmts, ok := ctx.AST.([]ast.Node)
if !ok {
return nil, errors.Errorf("failed to convert to Node")
diff --git a/backend/plugin/advisor/snowflake/advisor_column_maximum_varchar_length.go b/backend/plugin/advisor/snowflake/advisor_column_maximum_varchar_length.go
index c18b8d1476..0947d7ea4c 100644
--- a/backend/plugin/advisor/snowflake/advisor_column_maximum_varchar_length.go
+++ b/backend/plugin/advisor/snowflake/advisor_column_maximum_varchar_length.go
@@ -32,7 +32,7 @@ type ColumnMaximumVarcharLengthAdvisor struct {
}
// Check checks for maximum varchar length.
-func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumVarcharLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_column_no_null.go b/backend/plugin/advisor/snowflake/advisor_column_no_null.go
index 3a98bef45f..1161e6ca4c 100644
--- a/backend/plugin/advisor/snowflake/advisor_column_no_null.go
+++ b/backend/plugin/advisor/snowflake/advisor_column_no_null.go
@@ -27,7 +27,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value.
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_column_require.go b/backend/plugin/advisor/snowflake/advisor_column_require.go
index 9012e08b35..0fd6fdb1fe 100644
--- a/backend/plugin/advisor/snowflake/advisor_column_require.go
+++ b/backend/plugin/advisor/snowflake/advisor_column_require.go
@@ -27,7 +27,7 @@ type ColumnRequireAdvisor struct {
}
// Check checks for column requirement.
-func (*ColumnRequireAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequireAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_migration_compatibility.go b/backend/plugin/advisor/snowflake/advisor_migration_compatibility.go
index 1139fcfbce..d7ecc284dc 100644
--- a/backend/plugin/advisor/snowflake/advisor_migration_compatibility.go
+++ b/backend/plugin/advisor/snowflake/advisor_migration_compatibility.go
@@ -27,7 +27,7 @@ type MigrationCompatibilityAdvisor struct {
}
// Check checks for migration compatibility.
-func (*MigrationCompatibilityAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*MigrationCompatibilityAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_naming_identifier_case.go b/backend/plugin/advisor/snowflake/advisor_naming_identifier_case.go
index aeb23eb068..294f2743da 100644
--- a/backend/plugin/advisor/snowflake/advisor_naming_identifier_case.go
+++ b/backend/plugin/advisor/snowflake/advisor_naming_identifier_case.go
@@ -27,7 +27,7 @@ type NamingIdentifierCaseAdvisor struct {
}
// Check checks for identifier case.
-func (*NamingIdentifierCaseAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierCaseAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_naming_identifier_no_keyword.go b/backend/plugin/advisor/snowflake/advisor_naming_identifier_no_keyword.go
index 388fb1cf7f..7dc52088ac 100644
--- a/backend/plugin/advisor/snowflake/advisor_naming_identifier_no_keyword.go
+++ b/backend/plugin/advisor/snowflake/advisor_naming_identifier_no_keyword.go
@@ -26,7 +26,7 @@ type NamingIdentifierNoKeywordAdvisor struct {
}
// Check checks for identifier naming convention without keyword.
-func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIdentifierNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_naming_table.go b/backend/plugin/advisor/snowflake/advisor_naming_table.go
index a8a52d60b0..416123bf4f 100644
--- a/backend/plugin/advisor/snowflake/advisor_naming_table.go
+++ b/backend/plugin/advisor/snowflake/advisor_naming_table.go
@@ -28,7 +28,7 @@ type NamingTableAdvisor struct {
}
// Check checks for table naming convention.
-func (*NamingTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_naming_table_no_keyword.go b/backend/plugin/advisor/snowflake/advisor_naming_table_no_keyword.go
index 7e569f3e72..421f24beb4 100644
--- a/backend/plugin/advisor/snowflake/advisor_naming_table_no_keyword.go
+++ b/backend/plugin/advisor/snowflake/advisor_naming_table_no_keyword.go
@@ -26,7 +26,7 @@ type NamingTableNoKeywordAdvisor struct {
}
// Check checks for table naming convention without keyword.
-func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableNoKeywordAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_select_no_select_all.go b/backend/plugin/advisor/snowflake/advisor_select_no_select_all.go
index 321018beef..556dbb2591 100644
--- a/backend/plugin/advisor/snowflake/advisor_select_no_select_all.go
+++ b/backend/plugin/advisor/snowflake/advisor_select_no_select_all.go
@@ -23,7 +23,7 @@ type SelectNoSelectAllAdvisor struct {
}
// Check checks for no select all.
-func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*SelectNoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_table_drop_naming_convention.go b/backend/plugin/advisor/snowflake/advisor_table_drop_naming_convention.go
index 379e7c5f66..a36239c9a8 100644
--- a/backend/plugin/advisor/snowflake/advisor_table_drop_naming_convention.go
+++ b/backend/plugin/advisor/snowflake/advisor_table_drop_naming_convention.go
@@ -27,7 +27,7 @@ type TableDropNamingConventionAdvisor struct {
}
// Check checks for table drop with naming convention.
-func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_table_no_foreign_key.go b/backend/plugin/advisor/snowflake/advisor_table_no_foreign_key.go
index e188151dc2..50f8785b8d 100644
--- a/backend/plugin/advisor/snowflake/advisor_table_no_foreign_key.go
+++ b/backend/plugin/advisor/snowflake/advisor_table_no_foreign_key.go
@@ -26,7 +26,7 @@ type TableNoForeignKeyAdvisor struct {
}
// Check checks for table disallow foreign key.
-func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoForeignKeyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_table_require_pk.go b/backend/plugin/advisor/snowflake/advisor_table_require_pk.go
index 6de93bc9e9..fbc844088f 100644
--- a/backend/plugin/advisor/snowflake/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/snowflake/advisor_table_require_pk.go
@@ -26,7 +26,7 @@ type TableRequirePkAdvisor struct {
}
// Check checks for table require primary key.
-func (*TableRequirePkAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePkAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_where_require_select.go b/backend/plugin/advisor/snowflake/advisor_where_require_select.go
index 30ee88440c..660a406f18 100644
--- a/backend/plugin/advisor/snowflake/advisor_where_require_select.go
+++ b/backend/plugin/advisor/snowflake/advisor_where_require_select.go
@@ -23,7 +23,7 @@ type WhereRequireForSelectAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequireForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequireForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/snowflake/advisor_where_require_update_delete.go b/backend/plugin/advisor/snowflake/advisor_where_require_update_delete.go
index 0462e542a7..0adf113bbe 100644
--- a/backend/plugin/advisor/snowflake/advisor_where_require_update_delete.go
+++ b/backend/plugin/advisor/snowflake/advisor_where_require_update_delete.go
@@ -23,7 +23,7 @@ type WhereRequireForUpdateDeleteAdvisor struct {
}
// Check checks for WHERE clause requirement.
-func (*WhereRequireForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequireForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
tree, ok := ctx.AST.(antlr.Tree)
if !ok {
return nil, errors.Errorf("failed to convert to Tree")
diff --git a/backend/plugin/advisor/sql_review.go b/backend/plugin/advisor/sql_review.go
index 9acfd2d721..2ef468e5bc 100644
--- a/backend/plugin/advisor/sql_review.go
+++ b/backend/plugin/advisor/sql_review.go
@@ -592,7 +592,6 @@ func SQLReviewCheck(
ListDatabaseNamesFunc: checkContext.ListDatabaseNamesFunc,
InstanceID: checkContext.InstanceID,
},
- statements,
)
if err != nil {
return nil, errors.Wrap(err, "failed to check statement")
diff --git a/backend/plugin/advisor/tidb/advisor_builtin_prior_backup_check.go b/backend/plugin/advisor/tidb/advisor_builtin_prior_backup_check.go
index 59651e28af..f52cde8cee 100644
--- a/backend/plugin/advisor/tidb/advisor_builtin_prior_backup_check.go
+++ b/backend/plugin/advisor/tidb/advisor_builtin_prior_backup_check.go
@@ -31,7 +31,7 @@ type StatementPriorBackupCheckAdvisor struct {
}
// Check checks for no mixed DDL and DML.
-func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementPriorBackupCheckAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
if ctx.PreUpdateBackupDetail == nil || ctx.ChangeType != storepb.PlanCheckRunConfig_DML {
return nil, nil
}
diff --git a/backend/plugin/advisor/tidb/advisor_charset_allowlist.go b/backend/plugin/advisor/tidb/advisor_charset_allowlist.go
index cf6e047486..8f315a96a3 100644
--- a/backend/plugin/advisor/tidb/advisor_charset_allowlist.go
+++ b/backend/plugin/advisor/tidb/advisor_charset_allowlist.go
@@ -27,7 +27,7 @@ type CharsetAllowlistAdvisor struct {
}
// Check checks for charset allowlist.
-func (*CharsetAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CharsetAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_collation_allowlist.go b/backend/plugin/advisor/tidb/advisor_collation_allowlist.go
index 5b2b81baca..58e8b006de 100644
--- a/backend/plugin/advisor/tidb/advisor_collation_allowlist.go
+++ b/backend/plugin/advisor/tidb/advisor_collation_allowlist.go
@@ -27,7 +27,7 @@ type CollationAllowlistAdvisor struct {
}
// Check checks for collation allowlist.
-func (*CollationAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CollationAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_colum_require_default.go b/backend/plugin/advisor/tidb/advisor_colum_require_default.go
index b0718ece8b..526914b602 100644
--- a/backend/plugin/advisor/tidb/advisor_colum_require_default.go
+++ b/backend/plugin/advisor/tidb/advisor_colum_require_default.go
@@ -28,7 +28,7 @@ type ColumRequireDefaultAdvisor struct {
}
// Check checks for column default requirement.
-func (*ColumRequireDefaultAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumRequireDefaultAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_auto_increment_initial_value.go b/backend/plugin/advisor/tidb/advisor_column_auto_increment_initial_value.go
index 5d2f325154..a5bf7fe43c 100644
--- a/backend/plugin/advisor/tidb/advisor_column_auto_increment_initial_value.go
+++ b/backend/plugin/advisor/tidb/advisor_column_auto_increment_initial_value.go
@@ -26,7 +26,7 @@ type ColumnAutoIncrementInitialValueAdvisor struct {
}
// Check checks for auto-increment column initial value.
-func (*ColumnAutoIncrementInitialValueAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementInitialValueAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_integer.go b/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_integer.go
index 4b5b931fcf..65b1dffffc 100644
--- a/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_integer.go
+++ b/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_integer.go
@@ -28,7 +28,7 @@ type ColumnAutoIncrementMustIntegerAdvisor struct {
}
// Check checks for auto-increment column type.
-func (*ColumnAutoIncrementMustIntegerAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementMustIntegerAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_unsigned.go b/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_unsigned.go
index 88f80f99e2..756fd1d709 100644
--- a/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_unsigned.go
+++ b/backend/plugin/advisor/tidb/advisor_column_auto_increment_must_unsigned.go
@@ -27,7 +27,7 @@ type ColumnAutoIncrementMustUnsignedAdvisor struct {
}
// Check checks for unsigned auto-increment column.
-func (*ColumnAutoIncrementMustUnsignedAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnAutoIncrementMustUnsignedAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_comment_convention.go b/backend/plugin/advisor/tidb/advisor_column_comment_convention.go
index 6413b14e14..91567c612e 100644
--- a/backend/plugin/advisor/tidb/advisor_column_comment_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_column_comment_convention.go
@@ -28,7 +28,7 @@ type ColumnCommentConventionAdvisor struct {
}
// Check checks for column comment convention.
-func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_current_time_count_limit.go b/backend/plugin/advisor/tidb/advisor_column_current_time_count_limit.go
index 5c4981abf7..053c256c33 100644
--- a/backend/plugin/advisor/tidb/advisor_column_current_time_count_limit.go
+++ b/backend/plugin/advisor/tidb/advisor_column_current_time_count_limit.go
@@ -34,7 +34,7 @@ type ColumnCurrentTimeCountLimitAdvisor struct {
}
// Check checks for current time column count limit.
-func (*ColumnCurrentTimeCountLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnCurrentTimeCountLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_disallow_changing.go b/backend/plugin/advisor/tidb/advisor_column_disallow_changing.go
index 1210375a4e..0023aefb66 100644
--- a/backend/plugin/advisor/tidb/advisor_column_disallow_changing.go
+++ b/backend/plugin/advisor/tidb/advisor_column_disallow_changing.go
@@ -26,7 +26,7 @@ type ColumnDisallowChangingAdvisor struct {
}
// Check checks for disallow CHANGE COLUMN statement.
-func (*ColumnDisallowChangingAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_disallow_changing_order.go b/backend/plugin/advisor/tidb/advisor_column_disallow_changing_order.go
index 471c35c298..89c8d01204 100644
--- a/backend/plugin/advisor/tidb/advisor_column_disallow_changing_order.go
+++ b/backend/plugin/advisor/tidb/advisor_column_disallow_changing_order.go
@@ -26,7 +26,7 @@ type ColumnDisallowChangingOrderAdvisor struct {
}
// Check checks for disallow changing column order.
-func (*ColumnDisallowChangingOrderAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingOrderAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_disallow_changing_type.go b/backend/plugin/advisor/tidb/advisor_column_disallow_changing_type.go
index ea4bec4051..9955c5bae5 100644
--- a/backend/plugin/advisor/tidb/advisor_column_disallow_changing_type.go
+++ b/backend/plugin/advisor/tidb/advisor_column_disallow_changing_type.go
@@ -28,7 +28,7 @@ type ColumnDisallowChangingTypeAdvisor struct {
}
// Check checks for disallow changing column type..
-func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowChangingTypeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_disallow_drop_in_index.go b/backend/plugin/advisor/tidb/advisor_column_disallow_drop_in_index.go
index 3f9113edf5..f2f6255ae2 100644
--- a/backend/plugin/advisor/tidb/advisor_column_disallow_drop_in_index.go
+++ b/backend/plugin/advisor/tidb/advisor_column_disallow_drop_in_index.go
@@ -27,7 +27,7 @@ type ColumnDisallowDropInIndexAdvisor struct {
}
// Check checks for disallow Drop COLUMN in index statement.
-func (*ColumnDisallowDropInIndexAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowDropInIndexAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_disallow_set_charset.go b/backend/plugin/advisor/tidb/advisor_column_disallow_set_charset.go
index ec01686363..95143ed9e3 100644
--- a/backend/plugin/advisor/tidb/advisor_column_disallow_set_charset.go
+++ b/backend/plugin/advisor/tidb/advisor_column_disallow_set_charset.go
@@ -26,7 +26,7 @@ type ColumnDisallowSetCharsetAdvisor struct {
}
// Check checks for disallow set column charset.
-func (*ColumnDisallowSetCharsetAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnDisallowSetCharsetAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_maximum_character_length.go b/backend/plugin/advisor/tidb/advisor_column_maximum_character_length.go
index a6387224ad..9399543a92 100644
--- a/backend/plugin/advisor/tidb/advisor_column_maximum_character_length.go
+++ b/backend/plugin/advisor/tidb/advisor_column_maximum_character_length.go
@@ -27,7 +27,7 @@ type ColumnMaximumCharacterLengthAdvisor struct {
}
// Check checks for maximum character length.
-func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnMaximumCharacterLengthAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_no_null.go b/backend/plugin/advisor/tidb/advisor_column_no_null.go
index d61a8b79c2..dec7ee2c2f 100644
--- a/backend/plugin/advisor/tidb/advisor_column_no_null.go
+++ b/backend/plugin/advisor/tidb/advisor_column_no_null.go
@@ -26,7 +26,7 @@ type ColumnNoNullAdvisor struct {
}
// Check checks for column no NULL value.
-func (*ColumnNoNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnNoNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_required.go b/backend/plugin/advisor/tidb/advisor_column_required.go
index 4016d683e8..783acf3bfe 100644
--- a/backend/plugin/advisor/tidb/advisor_column_required.go
+++ b/backend/plugin/advisor/tidb/advisor_column_required.go
@@ -26,7 +26,7 @@ type ColumnRequirementAdvisor struct {
}
// Check checks for the column requirement.
-func (*ColumnRequirementAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnRequirementAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_set_default_for_not_null.go b/backend/plugin/advisor/tidb/advisor_column_set_default_for_not_null.go
index aaf1f945e1..0e562c20d4 100644
--- a/backend/plugin/advisor/tidb/advisor_column_set_default_for_not_null.go
+++ b/backend/plugin/advisor/tidb/advisor_column_set_default_for_not_null.go
@@ -26,7 +26,7 @@ type ColumnSetDefaultForNotNullAdvisor struct {
}
// Check checks for set default value for not null column.
-func (*ColumnSetDefaultForNotNullAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnSetDefaultForNotNullAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_column_type_disallow_list.go b/backend/plugin/advisor/tidb/advisor_column_type_disallow_list.go
index 7bcd9f82fc..18fd30a154 100644
--- a/backend/plugin/advisor/tidb/advisor_column_type_disallow_list.go
+++ b/backend/plugin/advisor/tidb/advisor_column_type_disallow_list.go
@@ -27,7 +27,7 @@ type ColumnTypeDisallowListAdvisor struct {
}
// Check checks for column type restriction.
-func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*ColumnTypeDisallowListAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_database_drop_empty_db.go b/backend/plugin/advisor/tidb/advisor_database_drop_empty_db.go
index 91c10dc8fb..b1ae1e69f5 100644
--- a/backend/plugin/advisor/tidb/advisor_database_drop_empty_db.go
+++ b/backend/plugin/advisor/tidb/advisor_database_drop_empty_db.go
@@ -25,7 +25,7 @@ type DatabaseAllowDropIfEmptyAdvisor struct {
}
// Check checks for drop table naming convention.
-func (*DatabaseAllowDropIfEmptyAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DatabaseAllowDropIfEmptyAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_key_number_limit.go b/backend/plugin/advisor/tidb/advisor_index_key_number_limit.go
index d5abe99cf9..6b36001314 100644
--- a/backend/plugin/advisor/tidb/advisor_index_key_number_limit.go
+++ b/backend/plugin/advisor/tidb/advisor_index_key_number_limit.go
@@ -26,7 +26,7 @@ type IndexKeyNumberLimitAdvisor struct {
}
// Check checks for index key number limit.
-func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexKeyNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_no_duplicate_column.go b/backend/plugin/advisor/tidb/advisor_index_no_duplicate_column.go
index a701cef02e..6e2fef5943 100644
--- a/backend/plugin/advisor/tidb/advisor_index_no_duplicate_column.go
+++ b/backend/plugin/advisor/tidb/advisor_index_no_duplicate_column.go
@@ -26,7 +26,7 @@ type IndexNoDuplicateColumnAdvisor struct {
}
// Check checks for no duplicate columns in index.
-func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexNoDuplicateColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_pk_type.go b/backend/plugin/advisor/tidb/advisor_index_pk_type.go
index 8a81b670b8..b2be26da36 100644
--- a/backend/plugin/advisor/tidb/advisor_index_pk_type.go
+++ b/backend/plugin/advisor/tidb/advisor_index_pk_type.go
@@ -29,7 +29,7 @@ type IndexPkTypeAdvisor struct {
}
// Check checks for correct type of PK.
-func (*IndexPkTypeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexPkTypeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_primary_key_type_allowlist.go b/backend/plugin/advisor/tidb/advisor_index_primary_key_type_allowlist.go
index e8264c238f..f792ba64a6 100644
--- a/backend/plugin/advisor/tidb/advisor_index_primary_key_type_allowlist.go
+++ b/backend/plugin/advisor/tidb/advisor_index_primary_key_type_allowlist.go
@@ -29,7 +29,7 @@ type IndexPrimaryKeyTypeAllowlistAdvisor struct {
}
// Check checks for primary key type allowlist.
-func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexPrimaryKeyTypeAllowlistAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_total_number_limit.go b/backend/plugin/advisor/tidb/advisor_index_total_number_limit.go
index 1997502f44..393404d7df 100644
--- a/backend/plugin/advisor/tidb/advisor_index_total_number_limit.go
+++ b/backend/plugin/advisor/tidb/advisor_index_total_number_limit.go
@@ -28,7 +28,7 @@ type IndexTotalNumberLimitAdvisor struct {
}
// Check checks for index total number limit.
-func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTotalNumberLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_index_type_no_blob.go b/backend/plugin/advisor/tidb/advisor_index_type_no_blob.go
index 85f0ffa041..76d437848e 100644
--- a/backend/plugin/advisor/tidb/advisor_index_type_no_blob.go
+++ b/backend/plugin/advisor/tidb/advisor_index_type_no_blob.go
@@ -30,7 +30,7 @@ type IndexTypeNoBlobAdvisor struct {
}
// Check checks for index type no blob.
-func (*IndexTypeNoBlobAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*IndexTypeNoBlobAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_insert_disallow_order_by_rand.go b/backend/plugin/advisor/tidb/advisor_insert_disallow_order_by_rand.go
index 9994b809ed..0c5e26e608 100644
--- a/backend/plugin/advisor/tidb/advisor_insert_disallow_order_by_rand.go
+++ b/backend/plugin/advisor/tidb/advisor_insert_disallow_order_by_rand.go
@@ -26,7 +26,7 @@ type InsertDisallowOrderByRandAdvisor struct {
}
// Check checks for to disallow order by rand in INSERT statements.
-func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertDisallowOrderByRandAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_insert_must_specify_column.go b/backend/plugin/advisor/tidb/advisor_insert_must_specify_column.go
index 6b601447a2..c9e0ef1e7d 100644
--- a/backend/plugin/advisor/tidb/advisor_insert_must_specify_column.go
+++ b/backend/plugin/advisor/tidb/advisor_insert_must_specify_column.go
@@ -26,7 +26,7 @@ type InsertMustSpecifyColumnAdvisor struct {
}
// Check checks for to enforce column specified.
-func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*InsertMustSpecifyColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_migration_compatibility.go b/backend/plugin/advisor/tidb/advisor_migration_compatibility.go
index 01a5f915fe..9b7799afa3 100644
--- a/backend/plugin/advisor/tidb/advisor_migration_compatibility.go
+++ b/backend/plugin/advisor/tidb/advisor_migration_compatibility.go
@@ -25,7 +25,7 @@ type CompatibilityAdvisor struct {
}
// Check checks schema backward compatibility.
-func (*CompatibilityAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*CompatibilityAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_auto_increment_column.go b/backend/plugin/advisor/tidb/advisor_naming_auto_increment_column.go
index f9171c3760..60f8a11a05 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_auto_increment_column.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_auto_increment_column.go
@@ -27,7 +27,7 @@ type NamingAutoIncrementColumnAdvisor struct {
}
// Check checks for auto-increment naming convention.
-func (*NamingAutoIncrementColumnAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingAutoIncrementColumnAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_column.go b/backend/plugin/advisor/tidb/advisor_naming_column.go
index e1b6f329aa..8dfe3b4a1f 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_column.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_column.go
@@ -25,7 +25,7 @@ type NamingColumnConventionAdvisor struct {
}
// Check checks for column naming convention.
-func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingColumnConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_foreign_key_convention.go b/backend/plugin/advisor/tidb/advisor_naming_foreign_key_convention.go
index 79b5ed08b5..cf83cc58cb 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_foreign_key_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_foreign_key_convention.go
@@ -25,7 +25,7 @@ type NamingFKConventionAdvisor struct {
}
// Check checks for foreign key naming convention.
-func (*NamingFKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingFKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_index_convention.go b/backend/plugin/advisor/tidb/advisor_naming_index_convention.go
index ffd9ddaf15..2dabed7e6d 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_index_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_index_convention.go
@@ -27,7 +27,7 @@ type NamingIndexConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingIndexConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_table.go b/backend/plugin/advisor/tidb/advisor_naming_table.go
index 6e10353862..c6dc439f67 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_table.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_table.go
@@ -25,7 +25,7 @@ type NamingTableConventionAdvisor struct {
}
// Check checks for table naming convention.
-func (*NamingTableConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingTableConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_naming_unique_key_convention.go b/backend/plugin/advisor/tidb/advisor_naming_unique_key_convention.go
index 2e23466571..e0eeab256c 100644
--- a/backend/plugin/advisor/tidb/advisor_naming_unique_key_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_naming_unique_key_convention.go
@@ -26,7 +26,7 @@ type NamingUKConventionAdvisor struct {
}
// Check checks for index naming convention.
-func (*NamingUKConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NamingUKConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_ddl.go b/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_ddl.go
index 9b33f4cff6..91bbedfeb7 100644
--- a/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_ddl.go
+++ b/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_ddl.go
@@ -23,7 +23,7 @@ type StatementDisallowMixInDDLAdvisor struct {
}
// Check checks for no mixed DDL and DML.
-func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDDLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DDL, storepb.PlanCheckRunConfig_SDL, storepb.PlanCheckRunConfig_DDL_GHOST:
default:
diff --git a/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_dml.go b/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_dml.go
index 5f35d58487..aa5135021b 100644
--- a/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_dml.go
+++ b/backend/plugin/advisor/tidb/advisor_statement_disallow_mix_in_dml.go
@@ -23,7 +23,7 @@ type StatementDisallowMixInDMLAdvisor struct {
}
// Check checks for no mixed DDL and DML.
-func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowMixInDMLAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
switch ctx.ChangeType {
case storepb.PlanCheckRunConfig_DML:
default:
diff --git a/backend/plugin/advisor/tidb/advisor_statement_dml_dry_run.go b/backend/plugin/advisor/tidb/advisor_statement_dml_dry_run.go
index ed26000f85..118d8cb5bf 100644
--- a/backend/plugin/advisor/tidb/advisor_statement_dml_dry_run.go
+++ b/backend/plugin/advisor/tidb/advisor_statement_dml_dry_run.go
@@ -29,7 +29,7 @@ type StatementDmlDryRunAdvisor struct {
}
// Check checks for DML dry run.
-func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDmlDryRunAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_statement_maximum_limit_value.go b/backend/plugin/advisor/tidb/advisor_statement_maximum_limit_value.go
index 72ecbb51e6..26cb389901 100644
--- a/backend/plugin/advisor/tidb/advisor_statement_maximum_limit_value.go
+++ b/backend/plugin/advisor/tidb/advisor_statement_maximum_limit_value.go
@@ -27,7 +27,7 @@ type StatementMaximumLimitValueAdvisor struct {
}
// Check checks for LIMIT maximum value in SELECT statements.
-func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMaximumLimitValueAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_statement_merge_alter_table.go b/backend/plugin/advisor/tidb/advisor_statement_merge_alter_table.go
index 2aaf36f049..72a09418f9 100644
--- a/backend/plugin/advisor/tidb/advisor_statement_merge_alter_table.go
+++ b/backend/plugin/advisor/tidb/advisor_statement_merge_alter_table.go
@@ -27,7 +27,7 @@ type StatementMergeAlterTableAdvisor struct {
}
// Check checks for merging ALTER TABLE statements.
-func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementMergeAlterTableAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_disallow_commit.go b/backend/plugin/advisor/tidb/advisor_stmt_disallow_commit.go
index ce2b917de0..5f92c439f1 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_disallow_commit.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_disallow_commit.go
@@ -26,7 +26,7 @@ type StatementDisallowCommitAdvisor struct {
}
// Check checks for index type no blob.
-func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowCommitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_disallow_limit.go b/backend/plugin/advisor/tidb/advisor_stmt_disallow_limit.go
index 14cdba7a19..04880d5af6 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_disallow_limit.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_disallow_limit.go
@@ -26,7 +26,7 @@ type StatementDisallowLimitAdvisor struct {
}
// Check checks for no LIMIT clause in INSERT/UPDATE statement.
-func (*StatementDisallowLimitAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*StatementDisallowLimitAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_disallow_order_by.go b/backend/plugin/advisor/tidb/advisor_stmt_disallow_order_by.go
index 5593c4ceaf..7fba0c3fa6 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_disallow_order_by.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_disallow_order_by.go
@@ -26,7 +26,7 @@ type DisallowOrderByAdvisor struct {
}
// Check checks for no ORDER BY clause in DELETE/UPDATE statements.
-func (*DisallowOrderByAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*DisallowOrderByAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_no_leading_wildcard_like.go b/backend/plugin/advisor/tidb/advisor_stmt_no_leading_wildcard_like.go
index f7b2057e02..7d1d371c72 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_no_leading_wildcard_like.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_no_leading_wildcard_like.go
@@ -29,7 +29,7 @@ type NoLeadingWildcardLikeAdvisor struct {
}
// Check checks for no leading wildcard LIKE.
-func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoLeadingWildcardLikeAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_no_select_all.go b/backend/plugin/advisor/tidb/advisor_stmt_no_select_all.go
index 8c358df37d..6e6a745ed1 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_no_select_all.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_no_select_all.go
@@ -24,7 +24,7 @@ type NoSelectAllAdvisor struct {
}
// Check checks for no "select *".
-func (*NoSelectAllAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*NoSelectAllAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_select.go b/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_select.go
index 016c0698a2..692309c748 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_select.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_select.go
@@ -25,7 +25,7 @@ type WhereRequirementForSelectAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForSelectAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_update_delete.go b/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_update_delete.go
index d767e9011b..e94f2f4a94 100644
--- a/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_update_delete.go
+++ b/backend/plugin/advisor/tidb/advisor_stmt_where_required_for_update_delete.go
@@ -25,7 +25,7 @@ type WhereRequirementForUpdateDeleteAdvisor struct {
}
// Check checks for the WHERE clause requirement.
-func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*WhereRequirementForUpdateDeleteAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_table_comment_convention.go b/backend/plugin/advisor/tidb/advisor_table_comment_convention.go
index 7469f483e0..56e5af07a0 100644
--- a/backend/plugin/advisor/tidb/advisor_table_comment_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_table_comment_convention.go
@@ -27,7 +27,7 @@ type TableCommentConventionAdvisor struct {
}
// Check checks for table comment convention.
-func (*TableCommentConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableCommentConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_table_disallow_partition.go b/backend/plugin/advisor/tidb/advisor_table_disallow_partition.go
index 22263eb40f..e4d3b51f9e 100644
--- a/backend/plugin/advisor/tidb/advisor_table_disallow_partition.go
+++ b/backend/plugin/advisor/tidb/advisor_table_disallow_partition.go
@@ -26,7 +26,7 @@ type TableDisallowPartitionAdvisor struct {
}
// Check checks for disallow table partition.
-func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDisallowPartitionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
stmtList, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_table_drop_naming_convention.go b/backend/plugin/advisor/tidb/advisor_table_drop_naming_convention.go
index 9e3abd4c46..c11cd4441d 100644
--- a/backend/plugin/advisor/tidb/advisor_table_drop_naming_convention.go
+++ b/backend/plugin/advisor/tidb/advisor_table_drop_naming_convention.go
@@ -25,7 +25,7 @@ type TableDropNamingConventionAdvisor struct {
}
// Check checks for drop table naming convention.
-func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableDropNamingConventionAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_table_no_fk.go b/backend/plugin/advisor/tidb/advisor_table_no_fk.go
index 13e621db36..0cf9a7360b 100644
--- a/backend/plugin/advisor/tidb/advisor_table_no_fk.go
+++ b/backend/plugin/advisor/tidb/advisor_table_no_fk.go
@@ -24,7 +24,7 @@ type TableNoFKAdvisor struct {
}
// Check checks table disallow foreign key.
-func (*TableNoFKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableNoFKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")
diff --git a/backend/plugin/advisor/tidb/advisor_table_require_pk.go b/backend/plugin/advisor/tidb/advisor_table_require_pk.go
index 11510e1098..a884e7d6e6 100644
--- a/backend/plugin/advisor/tidb/advisor_table_require_pk.go
+++ b/backend/plugin/advisor/tidb/advisor_table_require_pk.go
@@ -30,7 +30,7 @@ type TableRequirePKAdvisor struct {
}
// Check checks table requires PK.
-func (*TableRequirePKAdvisor) Check(ctx advisor.Context, _ string) ([]*storepb.Advice, error) {
+func (*TableRequirePKAdvisor) Check(ctx advisor.Context) ([]*storepb.Advice, error) {
root, ok := ctx.AST.([]ast.StmtNode)
if !ok {
return nil, errors.Errorf("failed to convert to StmtNode")