restructure
This commit is contained in:
11
utils/db/db.go
Normal file
11
utils/db/db.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func TruncateTable(db *gorm.DB, table string) {
|
||||
db.Exec(fmt.Sprintf("TRUNCATE TABLE %s", table))
|
||||
}
|
||||
Reference in New Issue
Block a user