laitianxu
laitianxu
是否提供有可以重置该对象的方法
> 使用姿势不对, goroutine或者任何其他情况, 都要避免重复使用db对象. > 这是为了上下文做的一个取舍 > 当然也可以调用 db.Reset()来重置 重置了也不行,这个是框架的问题
> 使用姿势不对, goroutine或者任何其他情况, 都要避免重复使用db对象. > 这是为了上下文做的一个取舍 > 当然也可以调用 db.Reset()来重置 var engin *gorose.Engin func DB() gorose.IOrm { orm := engin.NewOrm() return orm } 就是调用了框架的方法,没有特别的,所以没贴
hi Use TdApi.DownloadFile to download images to directory photos, Under what circumstances are images in the directory deleted,Is it the capacity of photos or the number of images,Is there any...