package
0.0.408
Repository: https://github.com/juetun/base-wrapper.git
Documentation: pkg.go.dev

# Functions

NewSubTreasuryBase 初始化数据模型.
NewSubTreasuryTime 初始化数据模型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubTreasuryTimeTableNumber 表后缀格式.
No description provided by the author

# Structs

SubTreasuryBase 分库分表实现 可通过自定义 GetDbFunc GetTableFunc 数据数据库和表的算法实现 如果不传递方法,则默认使用数值(字符串取每个字符的assi码值之和)取余数作为数据库和表的定位.
SubTreasuryTime 分库分表实现(按照时间维度) 可通过自定义 GetDbFunc GetTableFunc 数据数据库和表的算法实现 如果不传递方法,则默认使用数值(字符串取每个字符的assi码值之和)取余数作为数据库和表的定位.

# Type aliases

GetDbFunc 自定义操作哪个数据库算法实现的操作方法.
GetDbWithTimeFunc 自定义操作哪个数据库算法实现的操作方法(按时间).
GetTableFunc 自定义操作哪个table实现的操作方法.
GetTableWithTimeFunc 自定义操作哪个table实现的操作方法(按时间).
HandlerGetTables 根据数据库名返回数据对应的表名.
SubTreasuryBaseOption 调用分布式数据库操作的对象结构体参数.
SubTreasuryTimeOption 调用分布式数据库操作的对象结构体参数.