mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
17 lines
411 B
Go
17 lines
411 B
Go
package main
|
|
|
|
import (
|
|
"github.com/injoyai/logs"
|
|
"github.com/injoyai/tdx"
|
|
)
|
|
|
|
func main() {
|
|
_, err := tdx.NewManageMysql(
|
|
tdx.WithClients(2),
|
|
tdx.WithCodesDatabase("root:root@tcp(192.168.1.105:3306)/stock?charset=utf8mb4&parseTime=True&loc=Local"),
|
|
tdx.WithWorkdayDatabase("root:root@tcp(192.168.1.105:3306)/stock?charset=utf8mb4&parseTime=True&loc=Local"),
|
|
)
|
|
logs.PanicErr(err)
|
|
logs.Debug("done")
|
|
}
|