spring_boot_gorm

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gorm

type Gorm struct {
	Config *GormConfig `autowire:""`
	*gorm.DB
}

type GormConfig

type GormConfig struct {
	DatabaseType    string `value:"${gorm.database:=postgres}"`
	Url             string `value:"${gorm.url:=host=127.0.0.1 user=postgres dbname=postgres sslmode=disable password=123456}"`
	MaxOpenConns    int    `value:"${gorm.max_open_conns:=10}"`
	MaxIdleConns    int    `value:"${gorm.max_idle_conns:=1}"`
	ConnMaxLifetime int    `value:"${gorm.conn_max_life_time_s:=0}"`
	EnableLog       bool   `value:"${gorm.enable_log:=false}"`
}

Jump to

Keyboard shortcuts

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