gorm

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMigrateModel

func RegisterMigrateModel(model interface{})

RegisterMigrateModel 注册用于数据库迁移的数据库模型

Types

type Client

type Client struct {
	*gorm.DB
	// contains filtered or unexported fields
}

func NewClient

func NewClient(driverName, dsn string, enableMigrate, enableTrace, enableMetrics bool, gormCfg *gorm.Config) *Client

func (*Client) Error

func (c *Client) Error() error

Jump to

Keyboard shortcuts

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