摘要:
gorm 相互关联 // Config GORM config type Config struct { Dialector callbacks *callbacks cacheStore *sync.Map } // DB GORM DB definition type DB struct { * 阅读全文
posted @ 2023-12-20 22:19
codestacklinuxer
阅读(48)
评论(0)
推荐(0)
摘要:
创建orm db handle 后, 对schema migrate // Migrate the schema dot1xDb.AutoMigrate(&dot1xDataItem{}) 初始化创建open orm时;一开始dot1xDb的clone变量为1 tmp := sqlite.Open( 阅读全文
posted @ 2023-12-20 11:40
codestacklinuxer
阅读(96)
评论(0)
推荐(0)

浙公网安备 33010602011771号