Skip to content

gf model layer operation mysql's information_schema.tables related issues #4288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sandy1219 opened this issue May 23, 2025 · 0 comments
Open
Labels

Comments

@sandy1219
Copy link

What do you want to ask?

m := g.DB().Model("information_schema.tables").Safe(false)
m = m.Where("table_schema = database()")
m = m.WhereNotLike("table_name", "sys_gen_%")
m = m.WhereNotIn("table_name", "(select table_name from sys_gen_table)")

if req.TableName != "" {
m = m.WhereLike("table_name", "%"+req.TableName+"%")
}
if req.TableComment != "" {
m = m.WhereLike("table_comment", "%"+req.TableComment+"%")
}
if len(req.DateRange) >= 2 {
m = m.WhereBetween("create_time", req.DateRange[0], req.DateRange[1])
}
err = g.Try(ctx, func(ctx context.Context) {
res.Total, err = m.Count()
libErr.ErrIsNil(ctx, err, "获取列表失败")
err = m.Page(req.PageNum, req.PageSize).Scan(&res.Tables)
libErr.ErrIsNil(ctx, err, "获取列表失败")
})

会报以下错误
2025-05-23T10:00:32.465+08:00 [ERRO] {3881084a7b0542189423b14f546d90b0} [ 10 ms] [default] [goframe_admin_dev] [rows:0 ] SHOW FULL COLUMNS FROM tables
Error: Error 1146 (42S02): Table 'goframe_admin_dev.tables' doesn't exist
Stack:

  1. github.com/gogf/gf/v2/database/gdb.(*Core).writeSqlToLogger
    G:/goframe/gf/database/gdb/gdb_core.go:718
  2. github.com/gogf/gf/v2/database/gdb.(*Core).DoCommit
    G:/goframe/gf/database/gdb/gdb_core_underlying.go:297
  3. github.com/gogf/gf/v2/database/gdb.(*Core).DoQuery
    G:/goframe/gf/database/gdb/gdb_core_underlying.go:73
  4. github.com/gogf/gf/v2/database/gdb.(*Core).DoSelect
    G:/goframe/gf/database/gdb/gdb_core.go:160
  5. github.com/gogf/gf/contrib/drivers/mysql/v2.(*Driver).TableFields
    G:/goframe/gf/contrib/drivers/mysql/mysql_table_fields.go:77
  6. github.com/gogf/gf/v2/database/gdb.(*DriverWrapperDB).TableFields.func1
    G:/goframe/gf/database/gdb/gdb_driver_wrapper_db.go:81
  7. github.com/gogf/gf/v2/os/gcache.(*memoryData).SetWithLock
    G:/goframe/gf/os/gcache/gcache_adapter_memory_data.go:199
  8. github.com/gogf/gf/v2/os/gcache.(*AdapterMemory).doSetWithLockCheck
    G:/goframe/gf/os/gcache/gcache_adapter_memory.go:387
  9. github.com/gogf/gf/v2/os/gcache.(*AdapterMemory).GetOrSetFuncLock
    G:/goframe/gf/os/gcache/gcache_adapter_memory.go:260
  10. github.com/gogf/gf/v2/database/gdb.(*DriverWrapperDB).TableFields
    G:/goframe/gf/database/gdb/gdb_driver_wrapper_db.go:88
  11. github.com/gogf/gf/v2/database/gdb.(*Model).TableFields
    G:/goframe/gf/database/gdb/gdb_model_utility.go:49
  12. github.com/gogf/gf/v2/database/gdb.(*Model).mappingAndFilterToTableFields
    G:/goframe/gf/database/gdb/gdb_model_utility.go:78
  13. github.com/gogf/gf/v2/database/gdb.(*Model).filterFieldsFrom
    G:/goframe/gf/database/gdb/gdb_model_fields.go:251
  14. github.com/gogf/gf/v2/database/gdb.(*Model).Fields
    G:/goframe/gf/database/gdb/gdb_model_fields.go:31
  15. github.com/gogf/gf/v2/database/gdb.(*Model).doStructs
    G:/goframe/gf/database/gdb/gdb_model_select.go:242
  16. github.com/gogf/gf/v2/database/gdb.(*Model).Scan
    G:/goframe/gf/database/gdb/gdb_model_select.go:290
  17. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList.func1.1
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:59
  18. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  19. github.com/gogf/gf/v2/frame/g.Try
    G:/goframe/gf/frame/g/g_func.go:87
  20. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList.func1
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:56
  21. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  22. github.com/gogf/gf/v2/frame/g.Try
    G:/goframe/gf/frame/g/g_func.go:87
  23. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:33
  24. github.com/goframe_admin/internal/controller/gen_table.(*ControllerV1).GetList
    G:/goframe_admin/internal/controller/gen_table/gen_table_v1_get_list.go:11
  25. github.com/gogf/gf/v2/net/ghttp.createRouterFunc.func1
    G:/goframe/gf/net/ghttp/ghttp_server_service_handler.go:266
  26. github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:130
  27. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  28. github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:129
  29. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:75
  30. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  31. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  32. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  33. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).Auth
    G:/goframe_admin/internal/logic/middleware/middleware.go:72
  34. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  35. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  36. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  37. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  38. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  39. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  40. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).Ctx
    G:/goframe_admin/internal/logic/middleware/middleware.go:46
  41. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  42. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  43. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  44. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  45. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  46. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  47. github.com/goframe_admin/internal/logic/sys_token.(*sSysToken).authMiddleware
    G:/goframe_admin/internal/logic/sys_token/token.go:350
  48. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  49. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  50. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  51. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  52. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  53. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  54. github.com/gogf/gf/v2/net/ghttp.MiddlewareHandlerResponse
    G:/goframe/gf/net/ghttp/ghttp_middleware_handler_response.go:37
  55. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  56. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  57. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  58. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  59. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  60. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  61. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).MiddlewareCORS
    G:/goframe_admin/internal/logic/middleware/middleware.go:28
  62. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  63. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  64. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  65. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  66. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  67. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  68. github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing
    G:/goframe/gf/net/ghttp/ghttp_middleware_tracing.go:74
  69. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:96
  70. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  71. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:95
  72. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  73. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  74. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  75. github.com/gogf/gf/v2/net/ghttp.(*Server).ServeHTTP
    G:/goframe/gf/net/ghttp/ghttp_server_handler.go:88

2025-05-23T10:00:32.481+08:00 [ERRO] {64a3094b7b0542189523b14f734af9c8} [ 10 ms] [default] [goframe_admin_dev] [rows:0 ] SHOW FULL COLUMNS FROM tables
Error: Error 1146 (42S02): Table 'goframe_admin_dev.tables' doesn't exist
Stack:

  1. github.com/gogf/gf/v2/database/gdb.(*Core).writeSqlToLogger
    G:/goframe/gf/database/gdb/gdb_core.go:718
  2. github.com/gogf/gf/v2/database/gdb.(*Core).DoCommit
    G:/goframe/gf/database/gdb/gdb_core_underlying.go:297
  3. github.com/gogf/gf/v2/database/gdb.(*Core).DoQuery
    G:/goframe/gf/database/gdb/gdb_core_underlying.go:73
  4. github.com/gogf/gf/v2/database/gdb.(*Core).DoSelect
    G:/goframe/gf/database/gdb/gdb_core.go:160
  5. github.com/gogf/gf/contrib/drivers/mysql/v2.(*Driver).TableFields
    G:/goframe/gf/contrib/drivers/mysql/mysql_table_fields.go:77
  6. github.com/gogf/gf/v2/database/gdb.(*DriverWrapperDB).TableFields.func1
    G:/goframe/gf/database/gdb/gdb_driver_wrapper_db.go:81
  7. github.com/gogf/gf/v2/os/gcache.(*memoryData).SetWithLock
    G:/goframe/gf/os/gcache/gcache_adapter_memory_data.go:199
  8. github.com/gogf/gf/v2/os/gcache.(*AdapterMemory).doSetWithLockCheck
    G:/goframe/gf/os/gcache/gcache_adapter_memory.go:387
  9. github.com/gogf/gf/v2/os/gcache.(*AdapterMemory).GetOrSetFuncLock
    G:/goframe/gf/os/gcache/gcache_adapter_memory.go:260
  10. github.com/gogf/gf/v2/database/gdb.(*DriverWrapperDB).TableFields
    G:/goframe/gf/database/gdb/gdb_driver_wrapper_db.go:88
  11. github.com/gogf/gf/v2/database/gdb.(*Model).TableFields
    G:/goframe/gf/database/gdb/gdb_model_utility.go:49
  12. github.com/gogf/gf/v2/database/gdb.(*softTimeMaintainer).getSoftFieldNameAndType.func1
    G:/goframe/gf/database/gdb/gdb_model_soft_time.go:200
  13. github.com/gogf/gf/v2/os/gcache.(*AdapterMemory).GetOrSetFunc
    G:/goframe/gf/os/gcache/gcache_adapter_memory.go:231
  14. github.com/gogf/gf/v2/database/gdb.(*softTimeMaintainer).getSoftFieldNameAndType
    G:/goframe/gf/database/gdb/gdb_model_soft_time.go:223
  15. github.com/gogf/gf/v2/database/gdb.(*softTimeMaintainer).GetFieldNameAndTypeForDelete
    G:/goframe/gf/database/gdb/gdb_model_soft_time.go:181
  16. github.com/gogf/gf/v2/database/gdb.(*softTimeMaintainer).GetWhereConditionForDelete
    G:/goframe/gf/database/gdb/gdb_model_soft_time.go:287
  17. github.com/gogf/gf/v2/database/gdb.(*Model).formatCondition
    G:/goframe/gf/database/gdb/gdb_model_select.go:851
  18. github.com/gogf/gf/v2/database/gdb.(*Model).getFormattedSqlAndArgs
    G:/goframe/gf/database/gdb/gdb_model_select.go:724
  19. github.com/gogf/gf/v2/database/gdb.(*Model).doGetAll
    G:/goframe/gf/database/gdb/gdb_model_select.go:666
  20. github.com/gogf/gf/v2/database/gdb.(*Model).All
    G:/goframe/gf/database/gdb/gdb_model_select.go:31
  21. github.com/gogf/gf/v2/database/gdb.(*Model).doStructs
    G:/goframe/gf/database/gdb/gdb_model_select.go:249
  22. github.com/gogf/gf/v2/database/gdb.(*Model).Scan
    G:/goframe/gf/database/gdb/gdb_model_select.go:290
  23. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList.func1.1
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:59
  24. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  25. github.com/gogf/gf/v2/frame/g.Try
    G:/goframe/gf/frame/g/g_func.go:87
  26. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList.func1
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:56
  27. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  28. github.com/gogf/gf/v2/frame/g.Try
    G:/goframe/gf/frame/g/g_func.go:87
  29. github.com/goframe_admin/internal/logic/sys_gen_table.(*sSysGenTable).GetList
    G:/goframe_admin/internal/logic/sys_gen_table/sys_gen_table.go:33
  30. github.com/goframe_admin/internal/controller/gen_table.(*ControllerV1).GetList
    G:/goframe_admin/internal/controller/gen_table/gen_table_v1_get_list.go:11
  31. github.com/gogf/gf/v2/net/ghttp.createRouterFunc.func1
    G:/goframe/gf/net/ghttp/ghttp_server_service_handler.go:266
  32. github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:130
  33. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  34. github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:129
  35. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:75
  36. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  37. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  38. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  39. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).Auth
    G:/goframe_admin/internal/logic/middleware/middleware.go:72
  40. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  41. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  42. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  43. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  44. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  45. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  46. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).Ctx
    G:/goframe_admin/internal/logic/middleware/middleware.go:46
  47. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  48. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  49. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  50. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  51. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  52. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  53. github.com/goframe_admin/internal/logic/sys_token.(*sSysToken).authMiddleware
    G:/goframe_admin/internal/logic/sys_token/token.go:350
  54. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  55. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  56. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  57. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  58. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  59. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  60. github.com/gogf/gf/v2/net/ghttp.MiddlewareHandlerResponse
    G:/goframe/gf/net/ghttp/ghttp_middleware_handler_response.go:37
  61. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  62. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  63. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  64. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  65. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  66. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  67. github.com/goframe_admin/internal/logic/middleware.(*sMiddleware).MiddlewareCORS
    G:/goframe_admin/internal/logic/middleware/middleware.go:28
  68. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:55
  69. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  70. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:54
  71. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  72. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  73. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  74. github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing
    G:/goframe/gf/net/ghttp/ghttp_middleware_tracing.go:74
  75. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:96
  76. github.com/gogf/gf/v2/net/ghttp.niceCallFunc
    G:/goframe/gf/net/ghttp/ghttp_func.go:61
  77. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:95
  78. github.com/gogf/gf/v2/util/gutil.Try
    G:/goframe/gf/util/gutil/gutil_try_catch.go:36
  79. github.com/gogf/gf/v2/util/gutil.TryCatch
    G:/goframe/gf/util/gutil/gutil_try_catch.go:49
  80. github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
    G:/goframe/gf/net/ghttp/ghttp_request_middleware.go:49
  81. github.com/gogf/gf/v2/net/ghttp.(*Server).ServeHTTP
    G:/goframe/gf/net/ghttp/ghttp_server_handler.go:88

请问一下 正确的操作是怎么样的

@Issues-translate-bot Issues-translate-bot changed the title gf model层操作 mysql的information_schema.tables 相关问题 gf model layer operation mysql's information_schema.tables related issues May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant