option

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	DSN string
	//打开数据库连接的最大数量,默认DefaultMaxOpenConns
	MaxOpenConns int
	//空闲连接池中连接的最大数量,默认DefaultMaxIdleConns
	MaxIdleConns int
	//连接可复用的最大时间。单位分钟,默认DefaultConnMaxLifetime
	ConnMaxLifetime int
	//QueryFields executes the SQL query with all fields of the table
	QueryFields bool
	//数据源类型:MySql
	Type string
}

Jump to

Keyboard shortcuts

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