Created
July 16, 2024 01:20
-
-
Save BK1031/a1175241fca80b9247bac39aca739c99 to your computer and use it in GitHub Desktop.
singlestore-go-bookstore add reset table function to main service test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func ResetBookTable() { | |
database.DB.Where("1 = 1").Delete(&model.Book{}) | |
} | |
func ResetOrderTable() { | |
database.DB.Where("1 = 1").Delete(&model.Order{}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment