infrastructures

package
v0.0.0-...-6821e7c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPgSQL

func NewPgSQL() sql.DBFactory

NewPgSQL returns a newly initialized PgInfrastructure struct that implements the sql.DBFactory interface.

Types

type PgInfrastructure

type PgInfrastructure struct {
	*sql.DB
}

PgInfrastructure returns a newly initialized sql.DB struct that implements the sql.DBFactory interface.

func (*PgInfrastructure) GetDB

func (s *PgInfrastructure) GetDB() (*sql.DB, error)

GetDB gets database connection

func (*PgInfrastructure) OpenConnection

func (s *PgInfrastructure) OpenConnection(connString string, retry, timeout, concurrent int)

OpenConnection gets a handle for a database

Jump to

Keyboard shortcuts

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