1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/pkg/database/sql
shunza d09f8e2d51 1. delete database/sql changelog file.
2. delete database/sql config addr param.
3. add stat/metric business metric help.
2019-08-15 11:21:37 +08:00
..
metrics.go user new prometheus. 2019-07-20 19:38:44 +08:00
mysql.go 1. delete database/sql changelog file. 2019-08-15 11:21:37 +08:00
README.md Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
sql.go doc and example (#267) 2019-08-15 11:08:58 +08:00

database/sql

项目简介

MySQL数据库驱动,进行封装加入了链路追踪和统计。

如果需要SQL级别的超时管理 可以在业务代码里面使用context.WithDeadline实现 推荐超时配置放到application.toml里面 方便热加载

依赖包
  1. Go-MySQL-Driver