mysql2

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

*

  • @api post mysql2. *
  • User: yunshengzhu
  • Date: 2022/5/7
  • Time: 11:43 PM

Index

Constants

This section is empty.

Variables

View Source
var ErrRecordNotFound = gorm.ErrRecordNotFound

Functions

func Close

func Close(name string)

func Get

func Get(name string) *gorm.DB

func New

func New(name string, dns string, options ...MysqlOption) error

Types

type MySqlGorm

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

type MysqlOption

type MysqlOption func(db *MySqlGorm)

func WithMaxIdle

func WithMaxIdle(maxIdle int) MysqlOption

func WithMaxOpen

func WithMaxOpen(maxOpen int) MysqlOption

func WithSlowTime

func WithSlowTime(duration time.Duration) MysqlOption

Jump to

Keyboard shortcuts

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