Documentation ¶ Index ¶ func NewDB(c Config) xsql.DBItf func NewORM(c Config) xorm.ORMItf type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDB ¶ func NewDB(c Config) xsql.DBItf NewDB Deprecated func NewORM ¶ func NewORM(c Config) xorm.ORMItf Types ¶ type Config ¶ type Config struct { Driver string `mapstructure:"driver"` Source string `mapstructure:"source"` Idle int `mapstructure:"idle"` Open int `mapstructure:"open"` IdleTime time.Duration `mapstructure:"idle_time"` } Source Files ¶ View all Source files config.go xmysql.go Click to show internal directories. Click to hide internal directories.