Documentation
¶
Index ¶
- func AddDriver(driver string, cm ConfigMaker)
- func SupportDrivers() []string
- type Applyer
- type Config
- type ConfigMaker
- type ConfigMakerBase
- func (cm *ConfigMakerBase) AddKey(kind reflect.Kind, key string, morekeys ...string)
- func (cm *ConfigMakerBase) Apply(data map[string]interface{}, key string, value interface{}) bool
- func (cm *ConfigMakerBase) Init(data map[string]interface{})
- func (cm *ConfigMakerBase) SetDefault(key string, value interface{})
- func (cm *ConfigMakerBase) TemplateString() string
- type DBPool
- type Database
- type Rows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDriver ¶
func AddDriver(driver string, cm ConfigMaker)
func SupportDrivers ¶
func SupportDrivers() []string
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ConnectionString ¶
func (*Config) OpenDirect ¶
type ConfigMaker ¶
type ConfigMakerBase ¶
type ConfigMakerBase struct {
// contains filtered or unexported fields
}
func (*ConfigMakerBase) AddKey ¶
func (cm *ConfigMakerBase) AddKey(kind reflect.Kind, key string, morekeys ...string)
func (*ConfigMakerBase) Apply ¶
func (cm *ConfigMakerBase) Apply(data map[string]interface{}, key string, value interface{}) bool
func (*ConfigMakerBase) Init ¶
func (cm *ConfigMakerBase) Init(data map[string]interface{})
func (*ConfigMakerBase) SetDefault ¶
func (cm *ConfigMakerBase) SetDefault(key string, value interface{})
func (*ConfigMakerBase) TemplateString ¶
func (cm *ConfigMakerBase) TemplateString() string
type DBPool ¶
type DBPool struct { PostConnect []string IsForceUTF8 bool // contains filtered or unexported fields }
func CreateDBPool ¶
func (*DBPool) AddPostConnect ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) MutipleQuery ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.