github.com/HXSecurity/DongTai-agent-go@v0.4.2/run/gorm/hookGorm.go (about)

     1  package gorm
     2  
     3  import (
     4  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBExec"
     5  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBGroup"
     6  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBHaving"
     7  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBOrder"
     8  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBPluck"
     9  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBRaw"
    10  	_ "github.com/HXSecurity/DongTai-agent-go/core/gorm/gormDBSelect"
    11  	"github.com/HXSecurity/DongTai-agent-go/global"
    12  	"github.com/HXSecurity/DongTai-agent-go/hook"
    13  )
    14  
    15  func init() {
    16  	g := new(hook.Gorm)
    17  	global.AllHooks = append(global.AllHooks, g)
    18  	g.HookAll()
    19  }