github.com/wfusion/gofusion@v1.1.14/db/callbacks/stubs.go (about) 1 package callbacks 2 3 import ( 4 "database/sql" 5 6 "gorm.io/gorm" 7 8 _ "unsafe" 9 ) 10 11 //go:linkname createClauses gorm.io/gorm/callbacks.createClauses 12 var createClauses []string 13 14 //go:linkname updateClauses gorm.io/gorm/callbacks.updateClauses 15 var updateClauses []string 16 17 //go:linkname deleteClauses gorm.io/gorm/callbacks.deleteClauses 18 var deleteClauses []string 19 20 //go:linkname checkVersion gorm.io/driver/mysql.checkVersion 21 func checkVersion(newVersion, oldVersion string) bool 22 23 //go:linkname hasReturning gorm.io/gorm/callbacks.hasReturning 24 func hasReturning(tx *gorm.DB, supportReturning bool) (bool, gorm.ScanMode) 25 26 //go:linkname convertAssignRows database/sql.convertAssignRows 27 func convertAssignRows(dest, src any, rows *sql.Rows) error