# Functions
Add 添加实体.
AddMeta register entity meta.
AddOrUpdate 添加或者更新实体(如果id已经存在),只支持MySql.
Del 根据ID删除实体.
DelByCondition 根据条件删除.
Get 根据ID查询实体.
MetaOf parse meta.
NewDBError 构建数据库操作错误.
NewDBErrorf 使用fmt.Sprintf构建.
NewMySQLDBPool build mysql db pool from config.
NewSimpleDBService build simple db service.
NewSimpleShardDBService create.
Query 根据条件查询实体.
QueryColumns 根据条件查询columns指定的字段.
QueryColumnsForDestSlice 根据条件查询数据,结果保存到destSlicePtr.
QueryCount 根据条件查询条数.
Update 更新实体.
UpdateColumns 更新列.
UpdateExcludeColumns 更新除columns之外的字段.
UpdateReplace 更新实体.
# Structs
BaseShardEntity 基础的分片实体.
DBConfig 数据库配置.
DBError 数据库操作错误.
DBShardConfig db shard config.
EntityShardConfig entity shad config.
EntityShardRuleConfig 实体的shard规则.
HashRule hash规则.
NamedRule 指定命名.
NumRangeRule 数字区间.
OneRule 选择一个.
Op 数据库操作接口,与sql.DB对应,封装了事务等.
Pool 数据库连接池.
ReplColumn replace column.
SimpleDBService implements DBService interface.
SimpleShardDBService implements DBService interface.
# Interfaces
DBConfigurer DB配置器.
DBService is the service that supply DBOper.
DBShardConfigurer db shard configurer.
Entity 实体接口.
EntityShardConfigurer entity shard configurer.
Meta meta.
OpCreator Op.
ShardDBService 支持分库,分表的DBService.
ShardEntity 支持按表分片实体的接口.
ShardRule 分片规则的实现.
# Type aliases
EntitySlice type for slice of EntityInterface.
NullTime null time.
OpTxFunc 在事务中处理的函数.
PoolFunc the func to crate db pool.
ShardHandler 分片处理.
ShardPolicy 分片规则.