- update fun

master v1.0.38
李光春 2 years ago
parent 37f574b436
commit a184e64f15

@ -1,3 +1,3 @@
package dorm
const Version = "1.0.37"
const Version = "1.0.38"

@ -12,6 +12,10 @@ import (
// GormClientFun *GormClient 驱动
type GormClientFun func() *GormClient
// GormClientTableFun *GormClient 驱动
// string 表名
type GormClientTableFun func() (*GormClient, string)
type ConfigGormClient struct {
Dns string // 地址
LogStatus bool // 日志 - 状态

@ -9,9 +9,14 @@ import (
)
// MongoClientFun *MongoClient 驱动
// databaseName string 库名
// string 库名
type MongoClientFun func() (*MongoClient, string)
// MongoClientCollectionFun *MongoClient 驱动
// string 库名
// string 集合
type MongoClientCollectionFun func() (*MongoClient, string, string)
type ConfigMongoClient struct {
Dns string // 地址
Opts *options.ClientOptions

Loading…
Cancel
Save