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

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连接字符串