This commit is contained in:
oneao committed 2025-08-13 22:00:31 +08:00
1 parent 01ea998605
commit d1b1aafc57
9 files changed
+82 -35

No files matched your search

@@ -8,6 +8,7 @@ import (
)
func Test(c *router.Context) {
dbClient := db.NewClient(c)
if dbClient == nil {
return
@@ -16,7 +17,7 @@ func Test(c *router.Context) {
sqlStr := "SELECT id, name FROM user"
rows, err := dbClient.QueryRows(sqlStr)
if err != nil {
panic(err)
c.AddError(err)
return
}