会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Οo白麒麟оΟ
每天逼着自己写点东西,终有一天会为自己的变化而感动,这是一个潜移默化的过程,每天坚持编编故事,自己不知不觉就会拥有故事人物的特质。 Explicit is better than implicit.(清楚优于含糊)
博客园
首页
新随笔
联系
管理
订阅
2021年10月30日
gorm连接mysql数据库
摘要: 一.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)
编辑
公告