orm

package
v0.0.0-...-04961f1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN          string
	MaxOpenConns int
	MaxIdleConns int
	MaxLifetime  int
}

type CustomePlugin

type CustomePlugin struct{}

func NewCustomePlugin

func NewCustomePlugin() *CustomePlugin

func (*CustomePlugin) Initialize

func (p *CustomePlugin) Initialize(db *gorm.DB) error

func (*CustomePlugin) Name

func (p *CustomePlugin) Name() string

type DB

type DB struct {
	*gorm.DB
}

func MustNewMysql

func MustNewMysql(conf *Config) *DB

func NewMysql

func NewMysql(conf *Config) (*DB, error)

Jump to

Keyboard shortcuts

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