database

package module
v1.0.0 Latest Latest
Warning

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

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

README

go-postgresql-init

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(
	host string,
	port int64,
	user string,
	name string,
	pass string,
	appName string,
	connTimeout int64,
	connMaxIdleTime int64,
	connMaxOpenConn int64,
	logSlowQueryThresholdInSec int64,
	logLevel logger.LogLevel,
) (*gorm.DB, error)

InitDB initializes postgres driver with configured performance parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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