zhengtao ef2b4c33f4 更新数据统计 11 meses atrás
..
README.md b20bfb08e7 new 11 meses atrás
component.go b20bfb08e7 new 11 meses atrás
go.mod ef2b4c33f4 更新数据统计 11 meses atrás
go.sum b20bfb08e7 new 11 meses atrás
gorm_logger.go b20bfb08e7 new 11 meses atrás

README.md

gorm组件

  • 基于gorm实现多数据实例管理

Install

Prerequisites

  • GO >= 1.17

Using go get

go get github.com/mhaya/components/gorm@latest

Quick Start

import mhayaGORM "github.com/mhaya/components/gorm"

example

  • 请查看 examples/demo_gorm

Update

  • 数据库配置信息中添加dsn属性,未填写该属性时使用默认的dsn连接字符串