mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
572 B
23 lines
572 B
package busi
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/dtm-labs/dtm/dtmutil"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// Startup startup the busi's grpc and http service
|
|
func Startup() *gin.Engine {
|
|
GrpcStartup()
|
|
return BaseAppStartup()
|
|
}
|
|
|
|
// PopulateDB populate example mysql data
|
|
func PopulateDB(skipDrop bool) {
|
|
resetXaData()
|
|
file := fmt.Sprintf("%s/busi.%s.sql", dtmutil.GetSqlDir(), BusiConf.Driver)
|
|
dtmutil.RunSQLScript(BusiConf, file, skipDrop)
|
|
file = fmt.Sprintf("%s/dtmcli.barrier.%s.sql", dtmutil.GetSqlDir(), BusiConf.Driver)
|
|
dtmutil.RunSQLScript(BusiConf, file, skipDrop)
|
|
}
|
|
|