摘要: 一.gorm连接mysql数据库 gorm支持多种数据库,这里主要介绍mysql,连接mysql主要有两个步骤: 配置DSN (Data Source Name) 使用gorm.Open连接数据库 1. 配置DSN (Data Source Name) gorm库使用dsn作为连接数据库的参数,ds 阅读全文
posted @ 2021-10-30 10:41 Οo白麒麟оΟ 阅读(5348) 评论(0) 推荐(2) 编辑