gorm

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client gorm client

func NewClient

func NewClient(config *ConfigDefinition) (client *Client, err error)

NewClient new redis client

type ConfigDefinition

type ConfigDefinition struct {
	// 用户名称
	UserName string
	// 密码
	Password string
	// 数据库名
	Database string
	// 地址
	Url string
	// 相关参数
	Param string
}

ConfigDefinition gorm配置信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL