You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/pkg/database/sql
Felix Hao d9cee15ef6
doc and example (#267)
5 years ago
..
CHANGELOG.md use real ip in trace and metrics. 5 years ago
README.md Merge remote-tracking branch 'origin/master' 6 years ago
metrics.go user new prometheus. 6 years ago
mysql.go user new prometheus. 6 years ago
sql.go doc and example (#267) 5 years ago

README.md

database/sql

项目简介

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

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

依赖包
  1. Go-MySQL-Driver