📌 📄 内容摘要:
zen (@zen67060) 在 请大佬给个xorm操作MySQL问题的排查思路 中发帖
[image]
代码如下
func TestConnectAndInit(t *testing.T) {
mysql.SetMysql()
err := mysql.GetMysql().Sync(model.File{})
if err != nil {
return
} else {
t.Log("success")
}
//oneline := new(model.File)
//oneline.Channel = "of.Channel"
//oneline.FileId = 3
//oneline.Tag = "of.Tag"
//oneline.Subtag = "of.Subtag"
//oneline.Filename = "of.FileName"
//oneline.Offset = 1
//oneline.Capacity =...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/310543/1 ─────────────────────────────
📢 来源:LINUX DO