spliter

package
v0.0.0-...-3c93513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Split

type Split struct {
	TableName        string `json:"tableName" form:"tableName" `               // 分表的表名
	AppServerVersion string `json:"appServerVersion" form:"appServerVersion" ` // 应用服务器版本
	TableShardType   string `json:"tableShardType" form:"tableShardType" `     // 分表类型  (%1 表示取模  %m 表示按照月份分表  %d 表示按照天分表  %w 表示按照周分表 %h 表示按照小时分表 %y 表示按照年分表)
	TableSegName     string `json:"tableSegName" form:"tableSegName" `         // 分表字段
	TataSourceID     string `json:"dataSourceID" form:"dataSourceID" `         // 数据源ID
	DriverClass      string `json:"driverClass" form:"driverClass" `           // 驱动类
	JdbcUrl          string `json:"jdbcUrl" form:"jdbcUrl" `                   // 数据库连接地址
	Username         string `json:"username" form:"username" `                 // 用户名
	Password         string `json:"password" form:"password" `                 // 密码
}

Split 数据库分表的信息 分表的类型和对应的表名 例如 %1 对应的表名为 user_1 %m 对应的表名为 user_202001 %d 对应的表名为 user_20200101 %w 对应的表名为 user_20200101 %h 对应的表名为 user_2020010101 %y 对应的表名为 user_2020

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL