1 Star 1 Fork 2

kristas / booting-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
def.go 414 Bytes
一键复制 编辑 原始数据 按行查看 历史
kristas 提交于 2021-12-17 22:24 . feat: rebuild db init flow
package datasource
import (
"gitee.com/kristas/booting-go/framework/core/bean"
)
const PropertiesPath = "application.datasource"
type DB interface{}
type DataSource interface {
bean.Bean
DB() DB
}
type DataSourceDriver interface {
bean.Bean
Type() string
Driver() string
Open(properties *DataSourceProperties) (DB, error)
}
type BeanDBAware interface {
bean.Bean
DataSource() string
SetDB(db DB)
}
Go
1
https://gitee.com/kristas/booting-go.git
git@gitee.com:kristas/booting-go.git
kristas
booting-go
booting-go
v1.4.4

搜索帮助

53164aa7 5694891 3bd8fe86 5694891