postgres

package
Version: v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SqlDb *sql.DB
View Source
var SqlDbORM *gorm.DB

Functions

func ConnPostgres

func ConnPostgres(dbHost, dbUser, dbPass, dbName, dbPort, dbSSL, dbTimeZone string, maxIdle, maxConn int) (*sql.DB, error)

ConnPostgres - create connection database postgresSQL

func ConnPostgresORM

func ConnPostgresORM(dbHost, dbUser, dbPass, dbName, dbPort, dbSSL, dbTimeZone string, maxIdle, maxConn int) (*gorm.DB, error)

ConnPostgresORM - create connection database postgresSQL ORM

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL