mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
19 lines
352 B
Go
19 lines
352 B
Go
package application
|
|
|
|
import (
|
|
"mayfly-go/internal/db/infrastructure/persistence"
|
|
)
|
|
|
|
var (
|
|
dbApp Db = newDbApp(persistence.GetDbRepo(), persistence.GetDbSqlRepo())
|
|
dbSqlExecApp DbSqlExec = newDbSqlExecApp(persistence.GetDbSqlExecRepo())
|
|
)
|
|
|
|
func GetDbApp() Db {
|
|
return dbApp
|
|
}
|
|
|
|
func GetDbSqlExecApp() DbSqlExec {
|
|
return dbSqlExecApp
|
|
}
|