升级 wrapper_db_client, 支持表结构缓存以及定时同步

This commit is contained in:
2024-08-21 16:01:48 +08:00
parent c854f0ebeb
commit 0098405793
4 changed files with 127 additions and 13 deletions

18
define/table.go Normal file
View File

@ -0,0 +1,18 @@
// Package define ...
//
// Description : define ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2024-08-21 14:56
package define
// CacheTableStructureConfig 缓存表结构的配置
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 14:56 2024/8/21
type CacheTableStructureConfig struct {
Enable bool `json:"enable"` // 是否启用表结构缓存
SyncTimeInterval int `json:"sync_time_interval"` // 开启的情况向, 多久同步一次表结构, 默认值 3600, 单位 : s
}