MCPcopy Index your code
hub / github.com/YouChenJun/Keydd / WriteDataToDatabase

Function WriteDataToDatabase

engine_db/sql.go:43–49  ·  view source on GitHub ↗
(data *consts.Keyinfo)

Source from the content-addressed store, hash-verified

41
42}
43func WriteDataToDatabase(data *consts.Keyinfo) error {
44 logger.Info.Println("检测到敏感信息:", data.Key_text)
45 if InsertData(db, data) {
46 notify.TaskBeginSendmsg(data)
47 }
48 return nil
49}
50
51// 插入数据-存在true -不存在false
52func InsertData(db *sql.DB, data *consts.Keyinfo) bool {

Callers 1

MatchRulesFunction · 0.92

Calls 2

TaskBeginSendmsgFunction · 0.92
InsertDataFunction · 0.85

Tested by

no test coverage detected