Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySqlDataSource ¶
type MySqlDataSource struct {
// contains filtered or unexported fields
}
func NewMysqlDataSource ¶
func NewMysqlDataSource(configuration abstractions.IConfiguration) *MySqlDataSource
NewMysqlDataSource 初始化MySQL数据源
func (*MySqlDataSource) Close ¶
func (datasource *MySqlDataSource) Close()
func (*MySqlDataSource) GetConnectionString ¶
func (datasource *MySqlDataSource) GetConnectionString() string
func (*MySqlDataSource) GetName ¶
func (datasource *MySqlDataSource) GetName() string
func (*MySqlDataSource) Open ¶
func (datasource *MySqlDataSource) Open() (conn interface{}, put func(), err error)
func (*MySqlDataSource) Ping ¶
func (datasource *MySqlDataSource) Ping() bool
type RedisDataSource ¶
type RedisDataSource struct {
// contains filtered or unexported fields
}
func NewRedis ¶
func NewRedis(configuration abstractions.IConfiguration) *RedisDataSource
NewMysqlDataSource 初始化MySQL数据源
func (*RedisDataSource) Close ¶
func (datasource *RedisDataSource) Close()
func (*RedisDataSource) GetConnectionString ¶
func (datasource *RedisDataSource) GetConnectionString() string
func (*RedisDataSource) GetName ¶
func (datasource *RedisDataSource) GetName() string
func (*RedisDataSource) Open ¶
func (datasource *RedisDataSource) Open() (conn interface{}, put func(), err error)
func (*RedisDataSource) Ping ¶
func (datasource *RedisDataSource) Ping() bool
Click to show internal directories.
Click to hide internal directories.