Skip to content

Commit

Permalink
chore:Move TypeTiDBAuditLog to the enterprise edition
Browse files Browse the repository at this point in the history
  • Loading branch information
taolx0 committed Nov 1, 2024
1 parent 31891ff commit 83fe70a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 207 deletions.
7 changes: 0 additions & 7 deletions sqle/server/auditplan/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const (
TypeAliRdsMySQLAuditLog = "ali_rds_mysql_audit_log"
TypeHuaweiRdsMySQLSlowLog = "huawei_rds_mysql_slow_log"
TypeOracleTopSQL = "oracle_top_sql"
TypeTiDBAuditLog = scannerCmd.TypeTiDBAuditLog
TypeAllAppExtract = "all_app_extract"
TypeBaiduRdsMySQLSlowLog = "baidu_rds_mysql_slow_log"
TypeSQLFile = scannerCmd.TypeSQLFile
Expand Down Expand Up @@ -117,11 +116,6 @@ var MetaBuilderList = []MetaBuilder{
Desc: locale.ApMetaAllAppExtract,
TaskHandlerFn: NewDefaultTaskV2Fn(),
},
{
Type: TypeTiDBAuditLog,
Desc: locale.ApMetaTiDBAuditLog,
TaskHandlerFn: NewTiDBAuditLogTaskV2Fn(),
},
}

var MetaMap = map[string]Meta{}
Expand Down Expand Up @@ -182,7 +176,6 @@ func GetMeta(typ string) (Meta, error) {

var supportedCmdTypeList = map[string]struct{}{
TypeMySQLSlowLog: {},
TypeTiDBAuditLog: {},
TypeAllAppExtract: {},
}

Expand Down
14 changes: 0 additions & 14 deletions sqle/server/auditplan/task_test.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
package auditplan

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestTidbCompletionSchema(t *testing.T) {
// https://github.com/actiontech/sqle-ee/issues/395
sql := "INSERT INTO t1(a1,a2,a3,a4) VALUES('','','Y',CURRENT_DATE)"
newSQL, err := tidbCompletionSchema(sql, "test")
assert.NoError(t, err)
assert.Equal(t, "INSERT INTO `test`.`t1` (`a1`,`a2`,`a3`,`a4`) VALUES ('','','Y',CURRENT_DATE())", newSQL)
}

// func TestMergeSQLsByFingerprint(t *testing.T) {
// tests := []struct {
// sqls []SqlFromAliCloud
Expand Down
186 changes: 0 additions & 186 deletions sqle/server/auditplan/task_type_tidb_audit_log.go

This file was deleted.

0 comments on commit 83fe70a

Please sign in to comment.