Versions in this module Expand all Collapse all v1 v1.0.1 Mar 4, 2024 Changes in this version + type Engine struct + func NewEngine(driver, source string) (e *Engine, err error) + func NewEngineWithConfig(config *server.Config) (e *Engine, err error) + func (e *Engine) AddDB(tableName string, config *server.Config) + func (e *Engine) AddDBWithShard(tableName, shardType, segName string, config *server.Config) + func (engine *Engine) AddSpliter(split spliter.Split) + func (engine *Engine) AddSpliterMap(splitMap map[string]spliter.Split) + func (engine *Engine) AddUserSplitter() + func (engine *Engine) Close() + func (engine *Engine) NewSession() *session.Session + func (engine *Engine) Transaction(f TxFunc) (result interface{}, err error) + type TxFunc func(*session.Session) (interface{}, error)